\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=94pt]{classDOM_1_1HTMLOptionElement__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for DOM::HTMLOption\-Element:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=94pt]{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 
\begin{CompactList}\small\item\em {\bf This class or method is obsolete, it is provided for compatibility only.}. \item\end{CompactList}\item 
bool {\bf default\-Selected} () const 
\begin{CompactList}\small\item\em Stores the initial value of the {\tt  selected } attribute. \item\end{CompactList}\item 
void {\bf set\-Default\-Selected} (bool)
\begin{CompactList}\small\item\em see {\bf default\-Selected}{\rm (p.\,\pageref{classDOM_1_1HTMLOptionElement_a7})} \item\end{CompactList}\item 
{\bf DOMString} {\bf text} () const 
\begin{CompactList}\small\item\em The text contained within the option element. \item\end{CompactList}\item 
long {\bf index} () const 
\begin{CompactList}\small\item\em The index of this {\tt  OPTION } in its parent {\tt  SELECT } . \item\end{CompactList}\item 
void {\bf set\-Index} (long)
\begin{CompactList}\small\item\em see {\bf KDE HTML widget}{\rm (p.\,\pageref{index_index})} \item\end{CompactList}\item 
bool {\bf disabled} () const 
\begin{CompactList}\small\item\em The control is unavailable in this context. \item\end{CompactList}\item 
void {\bf set\-Disabled} (bool)
\begin{CompactList}\small\item\em see {\bf disabled}{\rm (p.\,\pageref{classDOM_1_1HTMLOptionElement_a12})} \item\end{CompactList}\item 
{\bf DOMString} {\bf label} () const 
\begin{CompactList}\small\item\em Option label for use in hierarchical menus. \item\end{CompactList}\item 
void {\bf set\-Label} (const  {\bf DOMString} \&)
\begin{CompactList}\small\item\em see {\bf label}{\rm (p.\,\pageref{classDOM_1_1HTMLOptionElement_a14})} \item\end{CompactList}\item 
bool {\bf selected} () const 
\begin{CompactList}\small\item\em Means that this option is initially selected. \item\end{CompactList}\item 
void {\bf set\-Selected} (bool)
\begin{CompactList}\small\item\em see {\bf selected}{\rm (p.\,\pageref{classDOM_1_1HTMLOptionElement_a16})} \item\end{CompactList}\item 
{\bf DOMString} {\bf value} () const 
\begin{CompactList}\small\item\em The current form control value. \item\end{CompactList}\item 
void {\bf set\-Value} (const  {\bf DOMString} \&)
\begin{CompactList}\small\item\em see {\bf value}{\rm (p.\,\pageref{classDOM_1_1HTMLOptionElement_a18})} \item\end{CompactList}\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 1156 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 This class or method is obsolete, it is provided for compatibility only.}. 

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

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

Definition at line 1091 of file html\_\-form.cpp.\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 1096 of file html\_\-form.cpp.\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 {\bf default\-Selected}{\rm (p.\,\pageref{classDOM_1_1HTMLOptionElement_a7})} 



Definition at line 1102 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 1107 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 1113 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 {\bf KDE HTML widget}{\rm (p.\,\pageref{index_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 1119 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 1124 of file html\_\-form.cpp.\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 {\bf disabled}{\rm (p.\,\pageref{classDOM_1_1HTMLOptionElement_a12})} 



Definition at line 1130 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 1135 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 {\bf label}{\rm (p.\,\pageref{classDOM_1_1HTMLOptionElement_a14})} 



Definition at line 1141 of file html\_\-form.cpp.\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 1146 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 {\bf selected}{\rm (p.\,\pageref{classDOM_1_1HTMLOptionElement_a16})} 



Definition at line 1152 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 1157 of file html\_\-form.cpp.\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 {\bf value}{\rm (p.\,\pageref{classDOM_1_1HTMLOptionElement_a18})} 



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

References DOM::DOMString::implementation().

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