/** * get the Object for the given propertyName * @param propertyName - the name of the property to get * @return the Object for the property */ public Object get( String propertyName ) { if (propertyName.equals( "target" )) { return getTarget(); } else if (propertyName.equals( "action" )) { return getAction(); } else if (propertyName.equals( "length" )) { return new Integer(getFormControls().length); } else { final FormParameter parameter = getParameter( propertyName ); if (parameter != UNKNOWN_PARAMETER) return parameter.getScriptableObject(); FormControl control = getControlWithID( propertyName ); return control == null ? super.get( propertyName ) : control.getScriptingHandler(); } }
/** * get the Object for the given propertyName * @param propertyName - the name of the property to get * @return the Object for the property */ public Object get( String propertyName ) { if (propertyName.equals( "target" )) { return getTarget(); } else if (propertyName.equals( "action" )) { return getAction(); } else if (propertyName.equals( "length" )) { return new Integer(getFormControls().length); } else { final FormParameter parameter = getParameter( propertyName ); if (parameter != UNKNOWN_PARAMETER) return parameter.getScriptableObject(); FormControl control = getControlWithID( propertyName ); return control == null ? super.get( propertyName ) : control.getScriptingHandler(); } }
/** * get the Object for the given propertyName * @param propertyName - the name of the property to get * @return the Object for the property */ public Object get( String propertyName ) { if (propertyName.equals( "target" )) { return getTarget(); } else if (propertyName.equals( "action" )) { return getAction(); } else if (propertyName.equals( "length" )) { return new Integer(getFormControls().length); } else { final FormParameter parameter = getParameter( propertyName ); if (parameter != UNKNOWN_PARAMETER) return parameter.getScriptableObject(); FormControl control = getControlWithID( propertyName ); return control == null ? super.get( propertyName ) : control.getScriptingHandler(); } }