public class SelectControl extends AbstractControl
| 构造器和说明 |
|---|
SelectControl(XhtmlForm form,
Element e) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 FormControlisMultiple 在类中 AbstractControltrue if this control accepts multiple values,
false otherwisepublic Map getOptions()
public void setValue(String value)
FormControlsetValue 在接口中 FormControlsetValue 在类中 AbstractControlpublic String[] getMultipleValues()
getMultipleValues 在接口中 FormControlgetMultipleValues 在类中 AbstractControlnull if isMultiple
returns falsepublic void setMultipleValues(String[] values)
FormControlsetMultipleValues 在接口中 FormControlsetMultipleValues 在类中 AbstractControlpublic void reset()
FormControlreset 在接口中 FormControlreset 在类中 AbstractControlCopyright © 2019. All Rights Reserved.