public interface FormControl
| Modifier and Type | Method and Description |
|---|---|
void |
addFormControlListener(FormControlListener listener) |
Element |
getElement() |
XhtmlForm |
getForm() |
String |
getInitialValue() |
String[] |
getMultipleValues() |
String |
getName() |
String |
getValue() |
boolean |
isEnabled()
Is this control enabled?
|
boolean |
isMultiple() |
boolean |
isSuccessful()
Is this control successful?
|
void |
removeFormControlListener(FormControlListener listener) |
void |
reset()
Reset the control to it's initial state
|
void |
setEnabled(boolean enabled)
Enable/disable this control
|
void |
setMultipleValues(String[] values)
Sets the control's current values (when isMultiple returns true).
|
void |
setSuccessful(boolean successful)
Sets this control's successful state.
|
void |
setValue(String value)
Sets the control's current value.
|
Element getElement()
XhtmlForm getForm()
void addFormControlListener(FormControlListener listener)
void removeFormControlListener(FormControlListener listener)
String getName()
boolean isEnabled()
true if this control is enabledvoid setEnabled(boolean enabled)
enabled - String getInitialValue()
boolean isSuccessful()
true if this control is successful and its
name-value pair should be submitted, false
otherwise.boolean isMultiple()
true if this control accepts multiple values,
false otherwisevoid setSuccessful(boolean successful)
successful - String getValue()
null if isMultiple
returns truevoid setValue(String value)
value - String[] getMultipleValues()
null if isMultiple
returns falsevoid setMultipleValues(String[] values)
values - void reset()
Copyright © 2011-2013. All Rights Reserved.