Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.lobobrowser.js.AbstractScriptableDelegate
org.lobobrowser.html.domimpl.NodeImpl
org.lobobrowser.html.domimpl.ElementImpl
org.lobobrowser.html.domimpl.HTMLElementImpl
org.lobobrowser.html.domimpl.HTMLOptionElementImpl
Field Summary |
Fields inherited from class org.lobobrowser.html.domimpl.ElementImpl | |
attributes |
Fields inherited from class org.lobobrowser.html.domimpl.NodeImpl | |
document , logger , nodeList , notificationsSuspended , parentNode , treeLock , uiNode |
Constructor Summary | |
|
Method Summary | |
boolean |
|
boolean |
|
HTMLFormElement |
|
int |
|
String |
|
boolean |
|
String |
|
String |
|
void |
|
void |
|
void |
|
void |
|
void |
|
String |
|
Methods inherited from class org.lobobrowser.js.AbstractScriptableDelegate | |
getScriptable , setScriptable |
public boolean getDefaultSelected()
Represents the value of the HTML selected attribute. The value of this attribute does not change if the state of the corresponding form control, in an interactive user agent, changes. See the selected attribute definition in HTML 4.01.
- Specified by:
- getDefaultSelected in interface HTMLOptionElement
Version: DOM Level 2
public boolean getDisabled()
The control is unavailable in this context. See the disabled attribute definition in HTML 4.01.
- Specified by:
- getDisabled in interface HTMLOptionElement
public HTMLFormElement getForm()
Returns theFORM
element containing this control. Returnsnull
if this control is not within the context of a form.
- Specified by:
- getForm in interface HTMLOptionElement
public int getIndex()
The index of thisOPTION
in its parentSELECT
, starting from 0.
- Specified by:
- getIndex in interface HTMLOptionElement
Version: DOM Level 2
public String getLabel()
Option label for use in hierarchical menus. See the label attribute definition in HTML 4.01.
- Specified by:
- getLabel in interface HTMLOptionElement
public boolean getSelected()
Represents the current state of the corresponding form control, in an interactive user agent. Changing this attribute changes the state of the form control, but does not change the value of the HTML selected attribute of the element.
- Specified by:
- getSelected in interface HTMLOptionElement
public String getText()
The text contained within the option element.
- Specified by:
- getText in interface HTMLOptionElement
public String getValue()
The current form control value. See the value attribute definition in HTML 4.01.
- Specified by:
- getValue in interface HTMLOptionElement
public void setDefaultSelected(boolean defaultSelected)
Represents the value of the HTML selected attribute. The value of this attribute does not change if the state of the corresponding form control, in an interactive user agent, changes. See the selected attribute definition in HTML 4.01.
- Specified by:
- setDefaultSelected in interface HTMLOptionElement
Version: DOM Level 2
public void setDisabled(boolean disabled)
The control is unavailable in this context. See the disabled attribute definition in HTML 4.01.
- Specified by:
- setDisabled in interface HTMLOptionElement
public void setLabel(String label)
Option label for use in hierarchical menus. See the label attribute definition in HTML 4.01.
- Specified by:
- setLabel in interface HTMLOptionElement
public void setSelected(boolean selected)
Represents the current state of the corresponding form control, in an interactive user agent. Changing this attribute changes the state of the form control, but does not change the value of the HTML selected attribute of the element.
- Specified by:
- setSelected in interface HTMLOptionElement
public void setValue(String value)
The current form control value. See the value attribute definition in HTML 4.01.
- Specified by:
- setValue in interface HTMLOptionElement