|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jolene.dom.HTMLElement
net.sf.jolene.dom.Select
public final class Select
A Select in an html document.
Constructor Summary | |
---|---|
Select()
Default constructor. |
|
Select(java.lang.String name)
Construct a select with the specified name. |
Method Summary | |
---|---|
int |
addOption(Option option)
This method adds a new option to the available options for the select object. |
void |
clearOptions()
Clears the list of options on the select. |
Select |
clone()
Returns a clone of the select object. |
java.lang.String |
getValue()
Gets the value of the select object. |
boolean |
isMultiple()
Indicates if the select is a multiple select. |
Option |
options(int index)
Returns the specified option object by the numeric index. |
void |
setMultiple(boolean multiple)
Sets if this select is a multiple select. |
void |
setName(java.lang.String name)
Set the name of the select object. |
void |
setValue(java.lang.String value)
Sets the value for the select object. |
void |
sortOptions()
Sort the options on the select. |
java.lang.String |
toString()
Renders the select. |
Methods inherited from class net.sf.jolene.dom.HTMLElement |
---|
clear, getAfterText, getAttribute, getBeforeText, getContent, getName, getStyle, getTag, hasAttribute, hasStyle, isChecked, isDisabled, isReadonly, isRenderable, keySet, removeAttribute, removeStyle, resetStyles, resetStyles, setAfterText, setAttribute, setBeforeText, setChecked, setContent, setDisabled, setReadonly, setRenderable, setStyle, setStyles, setStyles, swapWith |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Select()
public Select(java.lang.String name)
name
- name of the select.Method Detail |
---|
public int addOption(Option option)
option
- An option object to add to the select list
public void clearOptions()
public Select clone()
clone
in class HTMLElement
DocumentFactory
public Option options(int index)
index
- the index of the option to retrive
public java.lang.String getValue()
getValue
in class HTMLElement
public boolean isMultiple()
public void setName(java.lang.String name)
setName
in class HTMLElement
name
- name of the select object.public void setMultiple(boolean multiple)
multiple
- boolean.public void setValue(java.lang.String value)
setValue
in class HTMLElement
value
- String value to set.public void sortOptions()
public java.lang.String toString()
toString
in class HTMLElement
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |