|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xhtmlrenderer.simple.xhtml.controls.AbstractControl
public abstract class AbstractControl
| Constructor Summary | |
|---|---|
AbstractControl(XhtmlForm form,
Element e)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractControl(XhtmlForm form,
Element e)
| Method Detail |
|---|
protected void fireChanged()
protected void fireSuccessful()
protected void fireEnabled()
public void addFormControlListener(FormControlListener listener)
addFormControlListener in interface FormControlpublic void removeFormControlListener(FormControlListener listener)
removeFormControlListener in interface FormControlpublic Element getElement()
getElement in interface FormControlpublic XhtmlForm getForm()
getForm in interface FormControlpublic String getName()
getName in interface FormControlpublic String getInitialValue()
getInitialValue in interface FormControlprotected void setInitialValue(String value)
public String getValue()
getValue in interface FormControlnull if isMultiple
returns truepublic void setValue(String value)
FormControl
setValue in interface FormControlpublic String[] getMultipleValues()
getMultipleValues in interface FormControlnull if isMultiple
returns falsepublic void setMultipleValues(String[] values)
FormControl
setMultipleValues in interface FormControlpublic boolean isHidden()
public boolean isEnabled()
FormControl
isEnabled in interface FormControltrue if this control is enabledpublic boolean isSuccessful()
FormControl
isSuccessful in interface FormControltrue if this control is successful and its
name-value pair should be submitted, false
otherwise.public boolean isMultiple()
isMultiple in interface FormControltrue if this control accepts multiple values,
false otherwisepublic void setSuccessful(boolean successful)
FormControl
setSuccessful in interface FormControlpublic void setEnabled(boolean enabled)
FormControl
setEnabled in interface FormControlpublic void reset()
FormControl
reset in interface FormControlpublic static String collectText(Element e)
public static int getIntAttribute(Element e,
String attribute,
int def)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||