public class SelectControl extends AbstractControl
| Constructor and Description |
|---|
SelectControl(XhtmlForm form,
Element e) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getMultipleValues() |
Map |
getOptions() |
int |
getSize() |
boolean |
isMultiple() |
void |
reset()
Reset the control to it's initial state
|
void |
setMultipleValues(String[] values)
Sets the control's current values (when isMultiple returns true).
|
void |
setValue(String value)
Sets the control's current value.
|
addFormControlListener, collectText, fireChanged, fireEnabled, fireSuccessful, getElement, getForm, getInitialValue, getIntAttribute, getName, getValue, isEnabled, isHidden, isSuccessful, removeFormControlListener, setEnabled, setInitialValue, setSuccessfulpublic int getSize()
public boolean isMultiple()
isMultiple in interface FormControlisMultiple in class AbstractControltrue if this control accepts multiple values,
false otherwisepublic Map getOptions()
public void setValue(String value)
FormControlsetValue in interface FormControlsetValue in class AbstractControlpublic String[] getMultipleValues()
getMultipleValues in interface FormControlgetMultipleValues in class AbstractControlnull if isMultiple
returns falsepublic void setMultipleValues(String[] values)
FormControlsetMultipleValues in interface FormControlsetMultipleValues in class AbstractControlpublic void reset()
FormControlreset in interface FormControlreset in class AbstractControlCopyright © 2021. All rights reserved.