|
||||||||||
| 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,
org.w3c.dom.Element e)
|
|
| Method Summary | |
|---|---|
void |
addFormControlListener(FormControlListener listener)
|
static java.lang.String |
collectText(org.w3c.dom.Element e)
|
protected void |
fireChanged()
|
protected void |
fireEnabled()
|
protected void |
fireSuccessful()
|
org.w3c.dom.Element |
getElement()
|
XhtmlForm |
getForm()
|
java.lang.String |
getInitialValue()
|
static int |
getIntAttribute(org.w3c.dom.Element e,
java.lang.String attribute,
int def)
|
java.lang.String[] |
getMultipleValues()
|
java.lang.String |
getName()
|
java.lang.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(java.lang.String value)
|
void |
setMultipleValues(java.lang.String[] values)
Sets the control's current values (when isMultiple returns true). |
void |
setSuccessful(boolean successful)
Sets this control's successful state. |
void |
setValue(java.lang.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,
org.w3c.dom.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 org.w3c.dom.Element getElement()
getElement in interface FormControlpublic XhtmlForm getForm()
getForm in interface FormControlpublic java.lang.String getName()
getName in interface FormControlpublic java.lang.String getInitialValue()
getInitialValue in interface FormControlprotected void setInitialValue(java.lang.String value)
public java.lang.String getValue()
getValue in interface FormControlnull if isMultiple
returns truepublic void setValue(java.lang.String value)
FormControl
setValue in interface FormControlpublic java.lang.String[] getMultipleValues()
getMultipleValues in interface FormControlnull if isMultiple
returns falsepublic void setMultipleValues(java.lang.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 java.lang.String collectText(org.w3c.dom.Element e)
public static int getIntAttribute(org.w3c.dom.Element e,
java.lang.String attribute,
int def)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||