Method Summary |
|
abstract void | addValues(ParameterProcessor processor, String characterSet) |
void | claimRequiredValues(List values) Remove any required values for this control from the list, throwing an exception if they are missing. |
void | claimUniqueValue(List values) Sets this control to the next compatible value from the list, removing it from the list. |
void | claimUploadSpecification(List files) Specifies a file to be uploaded via this control. |
void | claimValue(List values) Sets this control to the next compatible value from the list, removing it from the list. |
final protected void | claimValueIsRequired(List values, String value) Removes the specified required value from the list of values, throwing an exception if it is missing. |
static String[] | getControlElementTags() |
Object | getDelegate() Returns either a single delegate object or potentially an array of delegates as needed, given the form control. |
String[] | getDisplayedOptions() Returns the list of values displayed by this control, if any. |
final protected WebForm | getForm() |
public String[] | getOptionValues() Returns the values permitted in this control. |
protected ScriptableDelegate | getParentDelegate() |
abstract public String | getType() Return the type of the control, as seen from JavaScript. |
protected String | getValueAttribute() Returns the default value of this control in the form. |
abstract String[] | getValues() Returns the current value(s) associated with this control. |
boolean | isDisabled() Returns true if this control is disabled, meaning that it will not send a value to the server as part of a request. |
boolean | isExclusive() Returns true if only one control of this kind with this name can have a value. |
boolean | isFileParameter() Returns true if this control accepts a file for upload. |
boolean | isHidden() Returns true if this control is hidden. |
boolean | isMultiValued() Returns true if a single control can have multiple values. |
boolean | isReadOnly() Returns true if this control is read-only. |
boolean | isTextControl() Returns true if this control accepts free-form text. |
static FormControl | newFormParameter(WebForm form, Node node) |
protected ScriptableDelegate | newScriptable() Creates and returns a scriptable object for this control. |
static ScriptableDelegate | newSelectionOption() |
void | reset() Resets this control to its initial value. |
protected void | sendOnChangeEvent() Performs the 'onChange' event defined for this control. |
protected void | sendOnClickEvent() Performs the 'onClick' event defined for this control. |
void | setDisabled(boolean disabled) |
public void | setState(boolean state) Sets the state of this boolean control. |
public void | toggle() Toggles the value of this control. |