Class SelectControl
java.lang.Object
org.xhtmlrenderer.simple.xhtml.controls.AbstractControl
org.xhtmlrenderer.simple.xhtml.controls.SelectControl
- All Implemented Interfaces:
FormControl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal String[]intgetSize()booleanvoidreset()Reset the control to it's initial statevoidsetMultipleValues(String[] values) Sets the control's current values (when isMultiple returns true).voidSets the control's current value.Methods inherited from class org.xhtmlrenderer.simple.xhtml.controls.AbstractControl
addFormControlListener, collectText, fireChanged, fireEnabled, fireSuccessful, getElement, getForm, getInitialValue, getIntAttribute, getName, getValue, isEnabled, isHidden, isSuccessful, removeFormControlListener, setEnabled, setInitialValue, setSuccessful
-
Constructor Details
-
SelectControl
-
-
Method Details
-
getSize
public int getSize() -
isMultiple
public boolean isMultiple()- Specified by:
isMultiplein interfaceFormControl- Overrides:
isMultiplein classAbstractControl- Returns:
trueif this control accepts multiple values,falseotherwise
-
getOptions
-
setValue
Description copied from interface:FormControlSets the control's current value. This has no effect when isMultiple returns true.- Specified by:
setValuein interfaceFormControl- Overrides:
setValuein classAbstractControl
-
getMultipleValues
- Specified by:
getMultipleValuesin interfaceFormControl- Overrides:
getMultipleValuesin classAbstractControl- Returns:
- the control's current values or
nullif isMultiple returns false
-
setMultipleValues
Description copied from interface:FormControlSets the control's current values (when isMultiple returns true). This has no effect when isMultiple returns false.- Specified by:
setMultipleValuesin interfaceFormControl- Overrides:
setMultipleValuesin classAbstractControl
-
reset
public void reset()Description copied from interface:FormControlReset the control to it's initial state- Specified by:
resetin interfaceFormControl- Overrides:
resetin classAbstractControl
-