class HTMLOptionElement

A selectable choice. More...

Full nameDOM::HTMLOptionElement
Definition#include <html_form.h>
InheritsDOM::HTMLElement [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods


Detailed Description

A selectable choice. See the <a href="http://www.w3.org/TR/REC-html40/interact/forms.html#edef-OPTION"> OPTION element definition </a> in HTML 4.0.

 HTMLOptionElement ()

HTMLOptionElement

 HTMLOptionElement (const HTMLOptionElement &other)

HTMLOptionElement

 HTMLOptionElement (const Node &other)

HTMLOptionElement

 HTMLOptionElement (HTMLOptionElementImpl *impl)

HTMLOptionElement

[protected]

HTMLOptionElement &  operator = (const HTMLOptionElement &other)

operator =

Reimplemented from HTMLElement.

HTMLOptionElement &  operator = (const Node &other)

operator =

Reimplemented from HTMLElement.

 ~HTMLOptionElement ()

~HTMLOptionElement

HTMLFormElement  form ()

form

[const]

Returns the <code> FORM </code> element containing this control. Returns null if this control is not within the context of a form.

bool  defaultSelected ()

defaultSelected

[const]

Stores the initial value of the <code> selected </code> attribute.

void  setDefaultSelected ( bool )

setDefaultSelected

see defaultSelected

DOMString  text ()

text

[const]

The text contained within the option element.

long  index ()

index

[const]

The index of this <code> OPTION </code> in its parent <code> SELECT </code> .

Reimplemented from Node.

void  setIndex ( long )

setIndex

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)

bool  disabled ()

disabled

[const]

The control is unavailable in this context. See the <a href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-disabled"> disabled attribute definition </a> in HTML 4.0.

void  setDisabled ( bool )

setDisabled

see disabled

DOMString  label ()

label

[const]

Option label for use in hierarchical menus. See the <a href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-label-OPTION"> label attribute definition </a> in HTML 4.0.

void  setLabel ( const DOMString & )

setLabel

see label

bool  selected ()

selected

[const]

Means that this option is initially selected. See the <a href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-selected"> selected attribute definition </a> in HTML 4.0.

void  setSelected ( bool )

setSelected

see selected

DOMString  value ()

value

[const]

The current form control value. See the <a href="http://www.w3.org/TR/REC-html40/interact/forms.html#adef-value-OPTION"> value attribute definition </a> in HTML 4.0.

void  setValue ( const DOMString & )

setValue

see value


Generated by: root@daffy.perf.redhat.com on Mon Jul 14 13:28:10 2003, using kdoc 2.0a53.