Class HTMLSelectElementImpl

All Implemented Interfaces:
Cloneable, HTMLFormControl, Element, EventTarget, org.w3c.dom.html.HTMLElement, org.w3c.dom.html.HTMLSelectElement, Node, NodeList, TypeInfo

public class HTMLSelectElementImpl extends HTMLElementImpl implements org.w3c.dom.html.HTMLSelectElement, HTMLFormControl
See Also:
  • Field Details

    • options_

      private org.w3c.dom.html.HTMLCollection options_
  • Constructor Details

    • HTMLSelectElementImpl

      public HTMLSelectElementImpl(HTMLDocumentImpl owner, String name)
      Constructor requires owner document.
      Parameters:
      owner - The owner HTML document
  • Method Details

    • getType

      public String getType()
      Specified by:
      getType in interface org.w3c.dom.html.HTMLSelectElement
    • getValue

      public String getValue()
      Specified by:
      getValue in interface org.w3c.dom.html.HTMLSelectElement
    • setValue

      public void setValue(String value)
      Specified by:
      setValue in interface org.w3c.dom.html.HTMLSelectElement
    • getSelectedIndex

      public int getSelectedIndex()
      Specified by:
      getSelectedIndex in interface org.w3c.dom.html.HTMLSelectElement
    • setSelectedIndex

      public void setSelectedIndex(int selectedIndex)
      Specified by:
      setSelectedIndex in interface org.w3c.dom.html.HTMLSelectElement
    • getOptions

      public org.w3c.dom.html.HTMLCollection getOptions()
      Specified by:
      getOptions in interface org.w3c.dom.html.HTMLSelectElement
    • getLength

      public int getLength()
      Description copied from class: ParentNode
      NodeList method: Count the immediate children of this node

      By default we do not have any children, ParentNode overrides this. NodeList method: Count the immediate children of this node

      Specified by:
      getLength in interface org.w3c.dom.html.HTMLSelectElement
      Specified by:
      getLength in interface NodeList
      Overrides:
      getLength in class ParentNode
      Returns:
      int
    • getDisabled

      public boolean getDisabled()
      Specified by:
      getDisabled in interface org.w3c.dom.html.HTMLSelectElement
    • setDisabled

      public void setDisabled(boolean disabled)
      Specified by:
      setDisabled in interface org.w3c.dom.html.HTMLSelectElement
    • getMultiple

      public boolean getMultiple()
      Specified by:
      getMultiple in interface org.w3c.dom.html.HTMLSelectElement
    • setMultiple

      public void setMultiple(boolean multiple)
      Specified by:
      setMultiple in interface org.w3c.dom.html.HTMLSelectElement
    • getName

      public String getName()
      Specified by:
      getName in interface org.w3c.dom.html.HTMLSelectElement
    • setName

      public void setName(String name)
      Specified by:
      setName in interface org.w3c.dom.html.HTMLSelectElement
    • getSize

      public int getSize()
      Specified by:
      getSize in interface org.w3c.dom.html.HTMLSelectElement
    • setSize

      public void setSize(int size)
      Specified by:
      setSize in interface org.w3c.dom.html.HTMLSelectElement
    • getTabIndex

      public int getTabIndex()
      Specified by:
      getTabIndex in interface org.w3c.dom.html.HTMLSelectElement
    • setTabIndex

      public void setTabIndex(int tabIndex)
      Specified by:
      setTabIndex in interface org.w3c.dom.html.HTMLSelectElement
    • add

      public void add(org.w3c.dom.html.HTMLElement element, org.w3c.dom.html.HTMLElement before)
      Specified by:
      add in interface org.w3c.dom.html.HTMLSelectElement
    • remove

      public void remove(int index)
      Specified by:
      remove in interface org.w3c.dom.html.HTMLSelectElement
    • blur

      public void blur()
      Specified by:
      blur in interface org.w3c.dom.html.HTMLSelectElement
    • focus

      public void focus()
      Specified by:
      focus in interface org.w3c.dom.html.HTMLSelectElement
    • getChildNodes

      public NodeList getChildNodes()
      Explicit implementation of getChildNodes() to avoid problems with overriding the getLength() method hidden in the super class.
      Specified by:
      getChildNodes in interface Node
      Overrides:
      getChildNodes in class ParentNode
    • cloneNode

      public Node cloneNode(boolean deep)
      Explicit implementation of cloneNode() to ensure that cache used for getOptions() gets cleared.
      Specified by:
      cloneNode in interface Node
      Overrides:
      cloneNode in class ElementImpl
      See Also: