.TH "DOM::HTMLOptionElement" 3 "28 Jan 2004" "khtml Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
DOM::HTMLOptionElement \- A selectable choice.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <html_form.h>\fP
.PP
Inherits \fBDOM::HTMLElement\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBHTMLOptionElement\fP (const  \fBHTMLOptionElement\fP &other)"
.br
.ti -1c
.RI "\fBHTMLOptionElement\fP (const  \fBNode\fP &other)"
.br
.ti -1c
.RI "\fBHTMLOptionElement\fP & \fBoperator=\fP (const  \fBHTMLOptionElement\fP &other)"
.br
.ti -1c
.RI "\fBHTMLOptionElement\fP & \fBoperator=\fP (const  \fBNode\fP &other)"
.br
.ti -1c
.RI "\fBHTMLFormElement\fP \fBform\fP () const "
.br
.RI "\fI\fBThis class or method is obsolete, it is provided for compatibility only.\fP. \fP"
.ti -1c
.RI "bool \fBdefaultSelected\fP () const "
.br
.RI "\fIStores the initial value of the \fC selected \fP attribute. \fP"
.ti -1c
.RI "void \fBsetDefaultSelected\fP (bool)"
.br
.RI "\fIsee \fBdefaultSelected\fP \fP"
.ti -1c
.RI "\fBDOMString\fP \fBtext\fP () const "
.br
.RI "\fIThe text contained within the option element. \fP"
.ti -1c
.RI "long \fBindex\fP () const "
.br
.RI "\fIThe index of this \fC OPTION \fP in its parent \fC SELECT \fP . \fP"
.ti -1c
.RI "void \fBsetIndex\fP (long)"
.br
.RI "\fIsee \fBKDE HTML widget\fP \fP"
.ti -1c
.RI "bool \fBdisabled\fP () const "
.br
.RI "\fIThe control is unavailable in this context. \fP"
.ti -1c
.RI "void \fBsetDisabled\fP (bool)"
.br
.RI "\fIsee \fBdisabled\fP \fP"
.ti -1c
.RI "\fBDOMString\fP \fBlabel\fP () const "
.br
.RI "\fIOption label for use in hierarchical menus. \fP"
.ti -1c
.RI "void \fBsetLabel\fP (const  \fBDOMString\fP &)"
.br
.RI "\fIsee \fBlabel\fP \fP"
.ti -1c
.RI "bool \fBselected\fP () const "
.br
.RI "\fIMeans that this option is initially selected. \fP"
.ti -1c
.RI "void \fBsetSelected\fP (bool)"
.br
.RI "\fIsee \fBselected\fP \fP"
.ti -1c
.RI "\fBDOMString\fP \fBvalue\fP () const "
.br
.RI "\fIThe current form control value. \fP"
.ti -1c
.RI "void \fBsetValue\fP (const  \fBDOMString\fP &)"
.br
.RI "\fIsee \fBvalue\fP \fP"
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "\fBHTMLOptionElement\fP (HTMLOptionElementImpl *impl)"
.br
.in -1c
.SH "Detailed Description"
.PP 
A selectable choice. 

See the \fCOPTION element definition \fP in HTML 4.0. 
.PP
Definition at line 1156 of file html_form.h.
.SH "Member Function Documentation"
.PP 
.SS "\fBHTMLFormElement\fP HTMLOptionElement::form () const"
.PP
\fBThis class or method is obsolete, it is provided for compatibility only.\fP. ### \fBKDE\fP 4.0: remove Reimplemented from \fBDOM::Element\fP.
.PP
Definition at line 1091 of file html_form.cpp.
.SS "bool HTMLOptionElement::defaultSelected () const"
.PP
Stores the initial value of the \fC selected \fP attribute. Definition at line 1096 of file html_form.cpp.
.SS "void HTMLOptionElement::setDefaultSelected (bool)"
.PP
see \fBdefaultSelected\fP Definition at line 1102 of file html_form.cpp.
.SS "\fBDOMString\fP HTMLOptionElement::text () const"
.PP
The text contained within the option element. Definition at line 1107 of file html_form.cpp.
.SS "long HTMLOptionElement::index () const"
.PP
The index of this \fC OPTION \fP in its parent \fC SELECT \fP . Reimplemented from \fBDOM::Node\fP.
.PP
Definition at line 1113 of file html_form.cpp.
.SS "void HTMLOptionElement::setIndex (long)"
.PP
see \fBKDE HTML widget\fP 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) Definition at line 1119 of file html_form.cpp.
.SS "bool HTMLOptionElement::disabled () const"
.PP
The control is unavailable in this context. See the \fCdisabled attribute definition \fP in HTML 4.0. Definition at line 1124 of file html_form.cpp.
.SS "void HTMLOptionElement::setDisabled (bool)"
.PP
see \fBdisabled\fP Definition at line 1130 of file html_form.cpp.
.SS "\fBDOMString\fP HTMLOptionElement::label () const"
.PP
Option label for use in hierarchical menus. See the \fClabel attribute definition \fP in HTML 4.0. Definition at line 1135 of file html_form.cpp.
.SS "void HTMLOptionElement::setLabel (const \fBDOMString\fP &)"
.PP
see \fBlabel\fP Definition at line 1141 of file html_form.cpp.
.SS "bool HTMLOptionElement::selected () const"
.PP
Means that this option is initially selected. See the \fCselected attribute definition \fP in HTML 4.0. Definition at line 1146 of file html_form.cpp.
.SS "void HTMLOptionElement::setSelected (bool)"
.PP
see \fBselected\fP Definition at line 1152 of file html_form.cpp.
.SS "\fBDOMString\fP HTMLOptionElement::value () const"
.PP
The current form control value. See the \fCvalue attribute definition \fP in HTML 4.0. Definition at line 1157 of file html_form.cpp.
.SS "void HTMLOptionElement::setValue (const \fBDOMString\fP &)"
.PP
see \fBvalue\fP Definition at line 1163 of file html_form.cpp.
.PP
References DOM::DOMString::implementation().

.SH "Author"
.PP 
Generated automatically by Doxygen for khtml Library from the source code.
