All Packages Class Hierarchy This Package Previous Next Index
Interface org.w3c.dom.html.HTMLOptionElement
- public interface HTMLOptionElement
- extends HTMLElement
A selectable choice. See the OPTION element definition in HTML 4.0.
-
getDefaultSelected()
- Stores the initial value of the selected attribute.
-
getDisabled()
- The control is unavailable in this context.
-
getForm()
- Returns the FORM element containing this control.
-
getIndex()
- The index of this OPTION in its parent SELECT.
-
getLabel()
- Option label for use in hierarchical menus.
-
getSelected()
- Means that this option is initially selected.
-
getText()
- The text contained within the option element.
-
getValue()
- The current form control value.
-
setDefaultSelected(boolean)
-
-
setDisabled(boolean)
-
-
setIndex(int)
-
-
setLabel(String)
-
-
setValue(String)
-
getForm
public abstract HTMLFormElement getForm()
- Returns the FORM element containing this control.
Returns null if this control is not within the context of a form.
getDefaultSelected
public abstract boolean getDefaultSelected()
- Stores the initial value of the selected attribute.
setDefaultSelected
public abstract void setDefaultSelected(boolean defaultSelected)
getText
public abstract String getText()
- The text contained within the option element.
getIndex
public abstract int getIndex()
- The index of this OPTION in its parent SELECT.
setIndex
public abstract void setIndex(int index)
getDisabled
public abstract boolean getDisabled()
- The control is unavailable in this context. See the disabled attribute definition in HTML 4.0.
setDisabled
public abstract void setDisabled(boolean disabled)
getLabel
public abstract String getLabel()
- Option label for use in hierarchical menus. See the label attribute definition in HTML 4.0.
setLabel
public abstract void setLabel(String label)
getSelected
public abstract boolean getSelected()
- Means that this option is initially selected. See the selected attribute definition in HTML 4.0.
getValue
public abstract String getValue()
- The current form control value. See the value attribute definition in HTML 4.0.
setValue
public abstract void setValue(String value)
All Packages Class Hierarchy This Package Previous Next Index