\section{DOM::HTMLOption\-Element Class Reference}
\label{classDOM_1_1HTMLOptionElement}\index{DOM::HTMLOptionElement@{DOM::HTMLOptionElement}}
A selectable choice.  


{\tt \#include $<$html\_\-form.h$>$}

Inheritance diagram for DOM::HTMLOption\-Element:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=87pt]{classDOM_1_1HTMLOptionElement__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for DOM::HTMLOption\-Element:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=87pt]{classDOM_1_1HTMLOptionElement__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf HTMLOption\-Element} (const {\bf HTMLOption\-Element} \&other)\label{classDOM_1_1HTMLOptionElement_a1}

\item 
{\bf HTMLOption\-Element} (const {\bf Node} \&other)\label{classDOM_1_1HTMLOptionElement_a2}

\item 
{\bf HTMLOption\-Element} \& {\bf operator=} (const {\bf HTMLOption\-Element} \&other)\label{classDOM_1_1HTMLOptionElement_a3}

\item 
{\bf HTMLOption\-Element} \& {\bf operator=} (const {\bf Node} \&other)\label{classDOM_1_1HTMLOptionElement_a4}

\item 
{\bf HTMLForm\-Element} {\bf form} () const 
\item 
bool {\bf default\-Selected} () const 
\item 
void {\bf set\-Default\-Selected} (bool)
\item 
{\bf DOMString} {\bf text} () const 
\item 
long {\bf index} () const 
\item 
void {\bf set\-Index} (long)
\item 
bool {\bf disabled} () const 
\item 
void {\bf set\-Disabled} (bool)
\item 
{\bf DOMString} {\bf label} () const 
\item 
void {\bf set\-Label} (const {\bf DOMString} \&)
\item 
bool {\bf selected} () const 
\item 
void {\bf set\-Selected} (bool)
\item 
{\bf DOMString} {\bf value} () const 
\item 
void {\bf set\-Value} (const {\bf DOMString} \&)
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
{\bf HTMLOption\-Element} (HTMLOption\-Element\-Impl $\ast$impl)\label{classDOM_1_1HTMLOptionElement_b0}

\end{CompactItemize}


\subsection{Detailed Description}
A selectable choice. 

See the {\tt OPTION element definition } in HTML 4.0. 



Definition at line 1157 of file html\_\-form.h.

\subsection{Member Function Documentation}
\index{DOM::HTMLOptionElement@{DOM::HTMLOption\-Element}!form@{form}}
\index{form@{form}!DOM::HTMLOptionElement@{DOM::HTMLOption\-Element}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf HTMLForm\-Element} HTMLOption\-Element::form () const}\label{classDOM_1_1HTMLOptionElement_a6}


\#\#\# {\bf KDE} 4.0: remove 



Reimplemented from {\bf DOM::Element} {\rm (p.\,\pageref{classDOM_1_1Element_a26})}.

Definition at line 1087 of file html\_\-form.cpp.

References DOM::Element::form().\index{DOM::HTMLOptionElement@{DOM::HTMLOption\-Element}!defaultSelected@{defaultSelected}}
\index{defaultSelected@{defaultSelected}!DOM::HTMLOptionElement@{DOM::HTMLOption\-Element}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool HTMLOption\-Element::default\-Selected () const}\label{classDOM_1_1HTMLOptionElement_a7}


Stores the initial value of the {\tt selected} attribute. 



Definition at line 1092 of file html\_\-form.cpp.

References DOM::Element::get\-Attribute(), and DOM::DOMString::is\-Null().\index{DOM::HTMLOptionElement@{DOM::HTMLOption\-Element}!setDefaultSelected@{setDefaultSelected}}
\index{setDefaultSelected@{setDefaultSelected}!DOM::HTMLOptionElement@{DOM::HTMLOption\-Element}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void HTMLOption\-Element::set\-Default\-Selected (bool)}\label{classDOM_1_1HTMLOptionElement_a8}


see default\-Selected 



Definition at line 1098 of file html\_\-form.cpp.\index{DOM::HTMLOptionElement@{DOM::HTMLOption\-Element}!text@{text}}
\index{text@{text}!DOM::HTMLOptionElement@{DOM::HTMLOption\-Element}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DOMString} HTMLOption\-Element::text () const}\label{classDOM_1_1HTMLOptionElement_a9}


The text contained within the option element. 



Definition at line 1103 of file html\_\-form.cpp.\index{DOM::HTMLOptionElement@{DOM::HTMLOption\-Element}!index@{index}}
\index{index@{index}!DOM::HTMLOptionElement@{DOM::HTMLOption\-Element}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}long HTMLOption\-Element::index () const}\label{classDOM_1_1HTMLOptionElement_a10}


The index of this {\tt OPTION} in its parent {\tt SELECT} . 



Reimplemented from {\bf DOM::Node} {\rm (p.\,\pageref{classDOM_1_1Node})}.

Definition at line 1109 of file html\_\-form.cpp.\index{DOM::HTMLOptionElement@{DOM::HTMLOption\-Element}!setIndex@{setIndex}}
\index{setIndex@{setIndex}!DOM::HTMLOptionElement@{DOM::HTMLOption\-Element}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void HTMLOption\-Element::set\-Index (long)}\label{classDOM_1_1HTMLOptionElement_a11}


see index 

This function is obsolete - the index property is actually supposed to be read-only ({\tt http://www.w3.org/DOM/updates/REC-DOM-Level-1-19981001-errata.html}) 

Definition at line 1115 of file html\_\-form.cpp.\index{DOM::HTMLOptionElement@{DOM::HTMLOption\-Element}!disabled@{disabled}}
\index{disabled@{disabled}!DOM::HTMLOptionElement@{DOM::HTMLOption\-Element}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool HTMLOption\-Element::disabled () const}\label{classDOM_1_1HTMLOptionElement_a12}


The control is unavailable in this context. 

See the {\tt disabled attribute definition } in HTML 4.0. 

Definition at line 1120 of file html\_\-form.cpp.

References DOM::DOMString::is\-Null().\index{DOM::HTMLOptionElement@{DOM::HTMLOption\-Element}!setDisabled@{setDisabled}}
\index{setDisabled@{setDisabled}!DOM::HTMLOptionElement@{DOM::HTMLOption\-Element}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void HTMLOption\-Element::set\-Disabled (bool)}\label{classDOM_1_1HTMLOptionElement_a13}


see disabled 



Definition at line 1126 of file html\_\-form.cpp.\index{DOM::HTMLOptionElement@{DOM::HTMLOption\-Element}!label@{label}}
\index{label@{label}!DOM::HTMLOptionElement@{DOM::HTMLOption\-Element}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DOMString} HTMLOption\-Element::label () const}\label{classDOM_1_1HTMLOptionElement_a14}


Option label for use in hierarchical menus. 

See the {\tt label attribute definition } in HTML 4.0. 

Definition at line 1131 of file html\_\-form.cpp.\index{DOM::HTMLOptionElement@{DOM::HTMLOption\-Element}!setLabel@{setLabel}}
\index{setLabel@{setLabel}!DOM::HTMLOptionElement@{DOM::HTMLOption\-Element}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void HTMLOption\-Element::set\-Label (const {\bf DOMString} \&)}\label{classDOM_1_1HTMLOptionElement_a15}


see label 



Definition at line 1137 of file html\_\-form.cpp.

References value().\index{DOM::HTMLOptionElement@{DOM::HTMLOption\-Element}!selected@{selected}}
\index{selected@{selected}!DOM::HTMLOptionElement@{DOM::HTMLOption\-Element}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool HTMLOption\-Element::selected () const}\label{classDOM_1_1HTMLOptionElement_a16}


Means that this option is initially selected. 

See the {\tt selected attribute definition } in HTML 4.0. 

Definition at line 1142 of file html\_\-form.cpp.\index{DOM::HTMLOptionElement@{DOM::HTMLOption\-Element}!setSelected@{setSelected}}
\index{setSelected@{setSelected}!DOM::HTMLOptionElement@{DOM::HTMLOption\-Element}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void HTMLOption\-Element::set\-Selected (bool)}\label{classDOM_1_1HTMLOptionElement_a17}


see selected 



Definition at line 1148 of file html\_\-form.cpp.\index{DOM::HTMLOptionElement@{DOM::HTMLOption\-Element}!value@{value}}
\index{value@{value}!DOM::HTMLOptionElement@{DOM::HTMLOption\-Element}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DOMString} HTMLOption\-Element::value () const}\label{classDOM_1_1HTMLOptionElement_a18}


The current form control value. 

See the {\tt value attribute definition } in HTML 4.0. 

Definition at line 1153 of file html\_\-form.cpp.

Referenced by set\-Label(), and set\-Value().\index{DOM::HTMLOptionElement@{DOM::HTMLOption\-Element}!setValue@{setValue}}
\index{setValue@{setValue}!DOM::HTMLOptionElement@{DOM::HTMLOption\-Element}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void HTMLOption\-Element::set\-Value (const {\bf DOMString} \&)}\label{classDOM_1_1HTMLOptionElement_a19}


see value 



Definition at line 1159 of file html\_\-form.cpp.

References DOM::DOMString::implementation(), and value().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
html\_\-form.h\item 
html\_\-form.cpp\end{CompactItemize}
