public abstract class AbstractControl extends Object implements FormControl
| 构造器和说明 |
|---|
AbstractControl(XhtmlForm form,
Element e) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addFormControlListener(FormControlListener listener) |
static String |
collectText(Element e) |
protected void |
fireChanged() |
protected void |
fireEnabled() |
protected void |
fireSuccessful() |
Element |
getElement() |
XhtmlForm |
getForm() |
String |
getInitialValue() |
static int |
getIntAttribute(Element e,
String attribute,
int def) |
String[] |
getMultipleValues() |
String |
getName() |
String |
getValue() |
boolean |
isEnabled()
Is this control enabled?
|
boolean |
isHidden() |
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
|
protected void |
setInitialValue(String value) |
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.
|
protected void fireChanged()
protected void fireSuccessful()
protected void fireEnabled()
public void addFormControlListener(FormControlListener listener)
addFormControlListener 在接口中 FormControlpublic void removeFormControlListener(FormControlListener listener)
removeFormControlListener 在接口中 FormControlpublic Element getElement()
getElement 在接口中 FormControlpublic XhtmlForm getForm()
getForm 在接口中 FormControlpublic String getName()
getName 在接口中 FormControlpublic String getInitialValue()
getInitialValue 在接口中 FormControlprotected void setInitialValue(String value)
public String getValue()
getValue 在接口中 FormControlnull if isMultiple
returns truepublic void setValue(String value)
FormControlsetValue 在接口中 FormControlpublic String[] getMultipleValues()
getMultipleValues 在接口中 FormControlnull if isMultiple
returns falsepublic void setMultipleValues(String[] values)
FormControlsetMultipleValues 在接口中 FormControlpublic boolean isHidden()
public boolean isEnabled()
FormControlisEnabled 在接口中 FormControltrue if this control is enabledpublic boolean isSuccessful()
FormControlisSuccessful 在接口中 FormControltrue if this control is successful and its
name-value pair should be submitted, false
otherwise.public boolean isMultiple()
isMultiple 在接口中 FormControltrue if this control accepts multiple values,
false otherwisepublic void setSuccessful(boolean successful)
FormControlsetSuccessful 在接口中 FormControlpublic void setEnabled(boolean enabled)
FormControlsetEnabled 在接口中 FormControlpublic void reset()
FormControlreset 在接口中 FormControlCopyright © 2019. All Rights Reserved.