org.kde.koala
Class HTMLOptionElement

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.HTMLOptionElement
All Implemented Interfaces:
org.kde.qt.QtSupport

public class HTMLOptionElement
extends HTMLElement

A selectable choice. See the OPTION element definition in HTML 4.0.


Constructor Summary
  HTMLOptionElement()
           
protected HTMLOptionElement(java.lang.Class dummy)
           
  HTMLOptionElement(HTMLOptionElement other)
           
  HTMLOptionElement(Node other)
           
 
Method Summary
 boolean defaultSelected()
          Stores the initial value of the selected attribute.
 boolean disabled()
          The control is unavailable in this context.
 HTMLFormElement formElement()
          ### KDE 4.0: remove
 long index()
          The index of this OPTION in its parent SELECT .
 java.lang.String label()
          Option label for use in hierarchical menus.
 boolean selected()
          Means that this option is initially selected.
 void setDefaultSelected(boolean arg1)
          see defaultSelected
 void setDisabled(boolean arg1)
          see disabled
 void setIndex(long arg1)
          see index This function is obsolete - the index property is actually supposed to be read-only (http://www.w3.org/DOM/updates/REC-DOM-Level-1-19981001-errata.html)
 void setLabel(java.lang.String arg1)
          see label
 void setSelected(boolean arg1)
          see selected
 void setValue(java.lang.String arg1)
          see value
 java.lang.String text()
          The text contained within the option element.
 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, 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

HTMLOptionElement

protected HTMLOptionElement(java.lang.Class dummy)

HTMLOptionElement

public HTMLOptionElement()

HTMLOptionElement

public HTMLOptionElement(HTMLOptionElement other)

HTMLOptionElement

public HTMLOptionElement(Node other)
Method Detail

formElement

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


defaultSelected

public boolean defaultSelected()
Stores the initial value of the selected attribute.


setDefaultSelected

public void setDefaultSelected(boolean arg1)
see defaultSelected


text

public java.lang.String text()
The text contained within the option element.


index

public long index()
The index of this OPTION in its parent SELECT .

Overrides:
index in class Node

setIndex

public void setIndex(long arg1)
see index This function is obsolete - the index property is actually supposed to be read-only (http://www.w3.org/DOM/updates/REC-DOM-Level-1-19981001-errata.html)


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


label

public java.lang.String label()
Option label for use in hierarchical menus. See the label attribute definition in HTML 4.0.


setLabel

public void setLabel(java.lang.String arg1)
see label


selected

public boolean selected()
Means that this option is initially selected. See the selected attribute definition in HTML 4.0.


setSelected

public void setSelected(boolean arg1)
see selected


value

public java.lang.String value()
The current form control value. See the value attribute definition in HTML 4.0.


setValue

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