All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface org.w3c.dom.html.HTMLSelectElement

public interface HTMLSelectElement
extends HTMLElement
The select element allows the selection of an option. The contained options can be directly accessed through the select element as a collection. See the SELECT element definition in HTML 4.0.


Method Index

 o add(HTMLElement, HTMLElement)
Add a new element to the collection of OPTION elements for this SELECT.
 o blur()
Removes keyboard focus from this element.
 o focus()
Gives keyboard focus to this element.
 o getDisabled()
The control is unavailable in this context.
 o getForm()
Returns the FORM element containing this control.
 o getLength()
The number of options in this SELECT.
 o getMultiple()
If true, multiple OPTION elements may be selected in this SELECT.
 o getName()
Form control or object name when submitted with a form.
 o getOptions()
The collection of OPTION elements contained by this element.
 o getSelectedIndex()
The ordinal index of the selected option.
 o getSize()
Number of visible rows.
 o getTabIndex()
Index that represents the element's position in the tabbing order.
 o getType()
The type of control created.
 o getValue()
The current form control value.
 o remove(int)
Remove an element from the collection of OPTION elements for this SELECT.
 o setDisabled(boolean)
 o setLength(int)
 o setMultiple(boolean)
 o setName(String)
 o setSelectedIndex(int)
 o setSize(int)
 o setTabIndex(int)
 o setValue(String)

Methods

 o getType
 public abstract String getType()
The type of control created.

 o getSelectedIndex
 public abstract int getSelectedIndex()
The ordinal index of the selected option. The value -1 is returned if no element is selected. If multiple options are selected, the index of the first selected option is returned.

 o setSelectedIndex
 public abstract void setSelectedIndex(int selectedIndex)
 o getValue
 public abstract String getValue()
The current form control value.

 o setValue
 public abstract void setValue(String value)
 o getLength
 public abstract int getLength()
The number of options in this SELECT.

 o setLength
 public abstract void setLength(int length)
 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 getOptions
 public abstract HTMLCollection getOptions()
The collection of OPTION elements contained by this element.

 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 getMultiple
 public abstract boolean getMultiple()
If true, multiple OPTION elements may be selected in this SELECT. See the multiple attribute definition in HTML 4.0.

 o setMultiple
 public abstract void setMultiple(boolean multiple)
 o getName
 public abstract String getName()
Form control or object name when submitted with a form. See the name attribute definition in HTML 4.0.

 o setName
 public abstract void setName(String name)
 o getSize
 public abstract int getSize()
Number of visible rows. See the size attribute definition in HTML 4.0.

 o setSize
 public abstract void setSize(int size)
 o getTabIndex
 public abstract int getTabIndex()
Index that represents the element's position in the tabbing order. See the tabindex attribute definition in HTML 4.0.

 o setTabIndex
 public abstract void setTabIndex(int tabIndex)
 o add
 public abstract void add(HTMLElement element,
                          HTMLElement before)
Add a new element to the collection of OPTION elements for this SELECT.

Parameters:
element - The element to add.
before - The element to insert before, or NULL for the head of the list.
 o remove
 public abstract void remove(int index)
Remove an element from the collection of OPTION elements for this SELECT. Does nothing if no element has the given index.

Parameters:
index - The index of the item to remove.
 o blur
 public abstract void blur()
Removes keyboard focus from this element.

 o focus
 public abstract void focus()
Gives keyboard focus to this element.


All Packages  Class Hierarchy  This Package  Previous  Next  Index