API Overview API Index Package Overview Direct link to this page
JDK 1.6
  org.w3c.dom.html. HTMLSelectElement View Source
Author(s)
Since
Version
Serial
Hierarchy
 Node
      Element
          HTMLElement
              HTMLSelectElement
Subinterfaces
Description
public interface HTMLSelectElement
  The select element allows the selection of an option.
See also:   
Methods
Hide/Show inherited methods
public void add (HTMLElement element, HTMLElement before) throws DOMException
  Add a new element to the collection of OPTION elements for this SELECT .
public void blur ()
Removes keyboard focus from this element.
public void focus ()
Gives keyboard focus to this element.
public boolean getDisabled ()
  The control is unavailable in this context.
public HTMLFormElement getForm ()
  Returns the FORM element containing this control.
public int getLength ()
The number of options in this SELECT .
public boolean getMultiple ()
  If true, multiple OPTION elements may be selected in this SELECT .
public String getName ()
  Form control or object name when submitted with a form.
public HTMLCollection getOptions ()
The collection of OPTION elements contained by this element.
public int getSelectedIndex ()
  The ordinal index of the selected option, starting from 0.
public int getSize ()
  Number of visible rows.
public int getTabIndex ()
  Index that represents the element's position in the tabbing order.
public String getType ()
  The type of this form control.
public String getValue ()
The current form control value.
public void remove (int index)
  Remove an element from the collection of OPTION elements for this SELECT .
public void setDisabled (boolean disabled)
public void setMultiple (boolean multiple)
public void setName (String name)
public void setSelectedIndex (int selectedIndex)
public void setSize (int size)
public void setTabIndex (int tabIndex)
public void setValue (String value)
Fields
Hide/Show inherited fields
publicfinalstatic short ATTRIBUTE_NODE = "2" [Inherited From HTMLElement]
The node is an Attr.
publicfinalstatic short CDATA_SECTION_NODE = "4" [Inherited From HTMLElement]
The node is a CDATASection.
publicfinalstatic short COMMENT_NODE = "8" [Inherited From HTMLElement]
The node is a Comment.
publicfinalstatic short DOCUMENT_FRAGMENT_NODE = "11" [Inherited From HTMLElement]
The node is a DocumentFragment.
publicfinalstatic short DOCUMENT_NODE = "9" [Inherited From HTMLElement]
The node is a Document.
publicfinalstatic short DOCUMENT_POSITION_CONTAINED_BY = "16" [Inherited From HTMLElement]
  The node is contained by the reference node.
publicfinalstatic short DOCUMENT_POSITION_CONTAINS = "8" [Inherited From HTMLElement]
  The node contains the reference node.
publicfinalstatic short DOCUMENT_POSITION_DISCONNECTED = "1" [Inherited From HTMLElement]
  The two nodes are disconnected.
publicfinalstatic short DOCUMENT_POSITION_FOLLOWING = "4" [Inherited From HTMLElement]
The node follows the reference node.
publicfinalstatic short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = "32" [Inherited From HTMLElement]
The determination of preceding versus following is implementation-specific.
publicfinalstatic short DOCUMENT_POSITION_PRECEDING = "2" [Inherited From HTMLElement]
The second node precedes the reference node.
publicfinalstatic short DOCUMENT_TYPE_NODE = "10" [Inherited From HTMLElement]
The node is a DocumentType.
publicfinalstatic short ELEMENT_NODE = "1" [Inherited From HTMLElement]
The node is an Element.
publicfinalstatic short ENTITY_NODE = "6" [Inherited From HTMLElement]
The node is an Entity.
publicfinalstatic short ENTITY_REFERENCE_NODE = "5" [Inherited From HTMLElement]
The node is an EntityReference.
publicfinalstatic short NOTATION_NODE = "12" [Inherited From HTMLElement]
The node is a Notation.
publicfinalstatic short PROCESSING_INSTRUCTION_NODE = "7" [Inherited From HTMLElement]
The node is a ProcessingInstruction.
publicfinalstatic short TEXT_NODE = "3" [Inherited From HTMLElement]
The node is a Text node.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar