org.kde.koala
Class HTMLSelectElement

java.lang.Object
  extended by org.kde.koala.Node
      extended by org.kde.koala.Element
          extended by org.kde.koala.HTMLElement
              extended by org.kde.koala.HTMLSelectElement
All Implemented Interfaces:
org.kde.qt.QtSupport

public class 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.


Constructor Summary
  HTMLSelectElement()
           
protected HTMLSelectElement(java.lang.Class dummy)
           
  HTMLSelectElement(HTMLSelectElement other)
           
  HTMLSelectElement(Node other)
           
 
Method Summary
 void add(HTMLElement element, HTMLElement before)
          Add a new element to the collection of OPTION elements for this SELECT .
 void blur()
          Removes keyboard focus from this element.
 boolean disabled()
          The control is unavailable in this context.
 void focus()
          Gives keyboard focus to this element.
 HTMLFormElement formElement()
          ### KDE 4.0: remove.
 long length()
          The number of options in this SELECT .
 boolean multiple()
          If true, multiple OPTION elements may be selected in this SELECT .
 java.lang.String name()
          Form control or object name when submitted with a form.
 HTMLCollection options()
          The collection of OPTION elements contained by this element.
 void remove(long index)
          Remove an element from the collection of OPTION elements for this SELECT .
 long selectedIndex()
          The ordinal index of the selected option.
 void setDisabled(boolean arg1)
          see disabled
 void setMultiple(boolean arg1)
          see multiple
 void setName(java.lang.String arg1)
          see name
 void setSelectedIndex(long arg1)
          see selectedIndex
 void setSize(long arg1)
          see size
 void setTabIndex(long arg1)
          see tabIndex
 void setValue(java.lang.String arg1)
          see value
 long size()
          Number of visible rows.
 long tabIndex()
          Index that represents the element's position in the tabbing order.
 java.lang.String type()
          The type of control created.
 java.lang.String value()
          The current form control value.
 
Methods inherited from class org.kde.koala.HTMLElement
addCSSProperty, all, assignOther, children, className, dir, id, innerHTML, innerText, lang, removeCSSProperty, setClassName, setDir, setId, setInnerHTML, setInnerText, setLang, setTitle, title
 
Methods inherited from class org.kde.koala.Element
contentEditable, form, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, hasAttribute, hasAttributeNS, isHTMLElement, khtmlMalformedPrefix, khtmlMalformedQualifiedName, khtmlValidAttrName, khtmlValidPrefix, khtmlValidQualifiedName, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setContentEditable, style, tagName
 
Methods inherited from class org.kde.koala.Node
addEventListener, appendChild, applyChanges, attributes, childNodes, cloneNode, dispatchEvent, elementId, firstChild, getRect, hasAttributes, hasChildNodes, index, insertBefore, isNull, isSupported, lastChild, localName, namespaceURI, nextSibling, nodeName, nodeType, nodeValue, normalize, op_equals, op_not_equals, ownerDocument, parentNode, prefix, previousSibling, removeChild, removeEventListener, replaceChild, setNodeValue, setPrefix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLSelectElement

protected HTMLSelectElement(java.lang.Class dummy)

HTMLSelectElement

public HTMLSelectElement()

HTMLSelectElement

public HTMLSelectElement(HTMLSelectElement other)

HTMLSelectElement

public HTMLSelectElement(Node other)
Method Detail

type

public java.lang.String type()
The type of control created.


selectedIndex

public long selectedIndex()
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.


setSelectedIndex

public void setSelectedIndex(long arg1)
see selectedIndex


value

public java.lang.String value()
The current form control value.


setValue

public void setValue(java.lang.String arg1)
see value


length

public long length()
The number of options in this SELECT .


formElement

public HTMLFormElement formElement()
### KDE 4.0: remove.


options

public HTMLCollection options()
The collection of OPTION elements contained by this element.


disabled

public boolean disabled()
The control is unavailable in this context. See the disabled attribute definition in HTML 4.0.


setDisabled

public void setDisabled(boolean arg1)
see disabled


multiple

public boolean multiple()
If true, multiple OPTION elements may be selected in this SELECT . See the multiple attribute definition in HTML 4.0.


setMultiple

public void setMultiple(boolean arg1)
see multiple


name

public java.lang.String name()
Form control or object name when submitted with a form. See the name attribute definition in HTML 4.0.


setName

public void setName(java.lang.String arg1)
see name


size

public long size()
Number of visible rows. See the size attribute definition in HTML 4.0.


setSize

public void setSize(long arg1)
see size


tabIndex

public long tabIndex()
Index that represents the element's position in the tabbing order. See the tabindex attribute definition in HTML 4.0.


setTabIndex

public void setTabIndex(long arg1)
see tabIndex


add

public 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 0 for the tail of the list.

remove

public void remove(long 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.

blur

public void blur()
Removes keyboard focus from this element.


focus

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