|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pushtotest.tool.parser.html.FormElementWrapper
public abstract class FormElementWrapper
An adapter class that implements the basics of the FormElement interface to make implementing FormElements easier.
| Constructor Summary | |
|---|---|
FormElementWrapper()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getId()
Gets the id parameter of this form element. |
java.lang.String |
getLabel()
Gets the label value for this element. |
java.lang.String |
getName()
Gets the name parameter of this form element if there is one. |
HTMLForm |
getParentForm()
Returns the Form object that this element is a part of. |
abstract java.lang.String |
getType()
The type of this element. |
abstract java.lang.String |
getValueAsString()
The value parameter as a string. |
void |
isXhtml(boolean xhtml)
Is this an XHTML form? |
void |
setId(java.lang.String id)
Gets the id parameter of this form element. |
void |
setLabel(java.lang.String label)
Sets the label value for this element. |
void |
setName(java.lang.String name)
Sets the name of this form. |
void |
setParentForm(HTMLForm parent)
Sets the parent HTMLFrom of this element. |
abstract void |
setValueAsString(java.lang.String value)
Sets the value of this element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FormElementWrapper()
| Method Detail |
|---|
public abstract java.lang.String getType()
getType in interface FormElementpublic abstract java.lang.String getValueAsString()
getValueAsString in interface FormElementpublic abstract void setValueAsString(java.lang.String value)
setValueAsString in interface FormElementvalue - The value of the form element as a string.public java.lang.String getId()
getId in interface FormElementpublic java.lang.String getLabel()
getLabel in interface FormElementpublic java.lang.String getName()
getName in interface FormElementpublic HTMLForm getParentForm()
getParentForm in interface FormElementpublic void isXhtml(boolean xhtml)
isXhtml in interface FormElementxhtml - Whether this is XHTML or not.public void setId(java.lang.String id)
setId in interface FormElementid - The id parameter or null if none exists.public void setLabel(java.lang.String label)
setLabel in interface FormElementlabel - The label to set.public void setName(java.lang.String name)
setName in interface FormElementname - The name parameter.public void setParentForm(HTMLForm parent)
setParentForm in interface FormElementparent - The Parent {#link com.pushtotest.tool.protocolhandler.html.HTMLForm HTMLForm}
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||