|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pushtotest.tool.parser.html.FormElementWrapper
com.pushtotest.tool.parser.html.SelectElement
public class SelectElement
This form element represents a Select element.
| Constructor Summary | |
|---|---|
SelectElement()
|
|
| Method Summary | |
|---|---|
void |
addOption(OptionElement element)
Adds an option form element to this select. |
java.util.List |
getOptions()
Gets the list of options for this select. |
java.lang.String |
getType()
The type of this element. |
java.lang.String |
getValueAsString()
The value parameter as a string. |
java.util.List |
getValues()
Returns a list of all of the selected options in this select element. |
boolean |
isSelected()
Is this element selected, checked, etc. |
void |
select(boolean select)
Sets the selection value of this element. |
void |
setMultiple(boolean multiple)
Sets the multiple value to a boolean. |
void |
setValueAsString(java.lang.String value)
Sets the value of this form element as a string representation. |
boolean |
supportsMultiple()
Does this form element support multiple selections. |
java.lang.String |
toString()
A string representation of this select element. |
| Methods inherited from class com.pushtotest.tool.parser.html.FormElementWrapper |
|---|
getId, getLabel, getName, getParentForm, isXhtml, setId, setLabel, setName, setParentForm |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SelectElement()
| Method Detail |
|---|
public java.lang.String getType()
getType in interface FormElementgetType in class FormElementWrapperpublic java.lang.String getValueAsString()
getValueAsString in interface FormElementgetValueAsString in class FormElementWrapperpublic java.util.List getValues()
public void setValueAsString(java.lang.String value)
setValueAsString in interface FormElementsetValueAsString in class FormElementWrappervalue - The value of the form element as a string.
java.lang.IllegalArgumentException - If the value can not be parsed into a valid value.public void addOption(OptionElement element)
element - The Option element to add to this select.public java.util.List getOptions()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isSelected()
isSelected in interface Selectablepublic void select(boolean select)
true will cause them to
possibly unselect other values.
This is ignored in the select element.
select in interface Selectableselect - Whether or not this element should be selected.public void setMultiple(boolean multiple)
setMultiple in interface Selectablemultiple - Sets the multiple value.public boolean supportsMultiple()
supportsMultiple in interface Selectable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||