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.


Method Index

 o getDefaultSelected()
Stores the initial value of the selected attribute.
 o getDisabled()
The control is unavailable in this context.
 o getForm()
Returns the FORM element containing this control.
 o getIndex()
The index of this OPTION in its parent SELECT.
 o getLabel()
Option label for use in hierarchical menus.
 o getSelected()
Means that this option is initially selected.
 o getText()
The text contained within the option element.
 o getValue()
The current form control value.
 o setDefaultSelected(boolean)
 o setDisabled(boolean)
 o setIndex(int)
 o setLabel(String)
 o setValue(String)

Methods

 o 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.

 o getDefaultSelected
 public abstract boolean getDefaultSelected()
Stores the initial value of the selected attribute.

 o setDefaultSelected
 public abstract void setDefaultSelected(boolean defaultSelected)
 o getText
 public abstract String getText()
The text contained within the option element.

 o getIndex
 public abstract int getIndex()
The index of this OPTION in its parent SELECT.

 o setIndex
 public abstract void setIndex(int index)
 o getDisabled
 public abstract boolean getDisabled()
The control is unavailable in this context. See the disabled attribute definition in HTML 4.0.

 o setDisabled
 public abstract void setDisabled(boolean disabled)
 o getLabel
 public abstract String getLabel()
Option label for use in hierarchical menus. See the label attribute definition in HTML 4.0.

 o setLabel
 public abstract void setLabel(String label)
 o getSelected
 public abstract boolean getSelected()
Means that this option is initially selected. See the selected attribute definition in HTML 4.0.

 o getValue
 public abstract String getValue()
The current form control value. See the value attribute definition in HTML 4.0.

 o setValue
 public abstract void setValue(String value)

All Packages  Class Hierarchy  This Package  Previous  Next  Index