<HTML> <HEAD> <TITLE>class HTMLOptionElement</TITLE> <META NAME="Generator" CONTENT="KDOC "> </HEAD> <BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff"> <TABLE WIDTH="100%" BORDER="0"> <TR> <TD> <TABLE BORDER="0"> <TR><TD valign="top" align="left" cellspacing="10"> <h1>class HTMLOptionElement</h1> </TD> <TD valign="top" align="right" colspan="1"> A selectable choice. <small><A HREF="#longdesc">More...</A></small></TD></TR> </TABLE> <HR> <TABLE BORDER="0"> <TR><TH>Full name</TH><TD><code><A HREF="DOM.html">DOM</A>::HTMLOptionElement</code></TD></TR> <TR><TH>Definition</TH><TD><code>#include <<A HREF="html__form_h.html">html_form.h</A>></code></TD></TR> <TR><TH>Inherits</TH><TD><A HREF="DOM__HTMLElement.html">DOM::HTMLElement</A> <small>[public ]</small></TD></TR> <TR><TH><A HREF="full-list-DOM__HTMLOptionElement.html">List of all Methods</A></TH></TR> </TABLE> </TD> <TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</A></small></TD></TR> <TR><TD><small><A HREF="header-list.html">Files</A></small></TD></TR> <TR><TD><small><A HREF="all-globals.html">Globals</A></small></TD></TR> <TR><TD><small><A HREF="hier.html">Hierarchy</A></small></TD></TR> <TR><TD><small><A HREF="index.html">Index</A></small></TD></TR> </TABLE></TD></TR></TABLE> <h4>Public Methods</h4><ul><LI> <b><A HREF="#ref1">HTMLOptionElement</A></b> () </LI> <LI> <b><A HREF="#ref2">HTMLOptionElement</A></b> (const HTMLOptionElement &other) </LI> <LI> <b><A HREF="#ref3">HTMLOptionElement</A></b> (const Node &other) </LI> <LI>HTMLOptionElement & <b><A HREF="#ref5">operator = </A></b> (const HTMLOptionElement &other) </LI> <LI>HTMLOptionElement & <b><A HREF="#ref6">operator = </A></b> (const Node &other) </LI> <LI> <b><A HREF="#ref7">~HTMLOptionElement</A></b> () </LI> <LI>HTMLFormElement <b><A HREF="#ref8">form</A></b> () const </LI> <LI>bool <b><A HREF="#ref9">defaultSelected</A></b> () const </LI> <LI>void <b><A HREF="#ref10">setDefaultSelected</A></b> ( bool ) </LI> <LI>DOMString <b><A HREF="#ref11">text</A></b> () const </LI> <LI>long <b><A HREF="#ref12">index</A></b> () const </LI> <LI>void <b><A HREF="#ref13">setIndex</A></b> ( long ) </LI> <LI>bool <b><A HREF="#ref14">disabled</A></b> () const </LI> <LI>void <b><A HREF="#ref15">setDisabled</A></b> ( bool ) </LI> <LI>DOMString <b><A HREF="#ref16">label</A></b> () const </LI> <LI>void <b><A HREF="#ref17">setLabel</A></b> ( const DOMString & ) </LI> <LI>bool <b><A HREF="#ref18">selected</A></b> () const </LI> <LI>void <b><A HREF="#ref19">setSelected</A></b> ( bool ) </LI> <LI>DOMString <b><A HREF="#ref20">value</A></b> () const </LI> <LI>void <b><A HREF="#ref21">setValue</A></b> ( const DOMString & ) </LI> </ul><h4>Protected Methods</h4><ul><LI> <b><A HREF="#ref4">HTMLOptionElement</A></b> (HTMLOptionElementImpl *impl) </LI> </ul><HR><H2><A NAME="longdesc">Detailed Description</A></H2><p> 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. </p> <p> </p> <A NAME="HTMLOptionElement"></A><A NAME="ref1"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>HTMLOptionElement</strong> () <br></td><td align="right"><h3><strong>HTMLOptionElement</strong></h3></td></tr></table><p></p><A NAME="HTMLOptionElement"></A><A NAME="ref2"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>HTMLOptionElement</strong> (const HTMLOptionElement &other) <br></td><td align="right"><h3><strong>HTMLOptionElement</strong></h3></td></tr></table><p></p><A NAME="HTMLOptionElement"></A><A NAME="ref3"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>HTMLOptionElement</strong> (const Node &other) <br></td><td align="right"><h3><strong>HTMLOptionElement</strong></h3></td></tr></table><p></p><A NAME="HTMLOptionElement"></A><A NAME="ref4"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>HTMLOptionElement</strong> (HTMLOptionElementImpl *impl) <br></td><td align="right"><h3><strong>HTMLOptionElement</strong></h3></td></tr></table><p> <small>[protected]</small></p><A NAME="operator%20=%20"></A><A NAME="ref5"></A><table width="100%"><tr bgcolor="#eeeeee"><td>HTMLOptionElement & <strong>operator = </strong> (const HTMLOptionElement &other) <br></td><td align="right"><h3><strong>operator = </strong></h3></td></tr></table><p></p><p>Reimplemented from <A HREF="DOM__HTMLElement.html#operator%20=%20">HTMLElement</A>.</p> <A NAME="operator%20=%20"></A><A NAME="ref6"></A><table width="100%"><tr bgcolor="#eeeeee"><td>HTMLOptionElement & <strong>operator = </strong> (const Node &other) <br></td><td align="right"><h3><strong>operator = </strong></h3></td></tr></table><p></p><p>Reimplemented from <A HREF="DOM__HTMLElement.html#operator%20=%20">HTMLElement</A>.</p> <A NAME="~HTMLOptionElement"></A><A NAME="ref7"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>~HTMLOptionElement</strong> () <br></td><td align="right"><h3><strong>~HTMLOptionElement</strong></h3></td></tr></table><p></p><A NAME="form"></A><A NAME="ref8"></A><table width="100%"><tr bgcolor="#eeeeee"><td>HTMLFormElement <strong>form</strong> () <br></td><td align="right"><h3><strong>form</strong></h3></td></tr></table><p> <small>[const]</small></p><p> Returns the <code> FORM </code> element containing this control. Returns null if this control is not within the context of a form. </p> <p> </p> <A NAME="defaultSelected"></A><A NAME="ref9"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool <strong>defaultSelected</strong> () <br></td><td align="right"><h3><strong>defaultSelected</strong></h3></td></tr></table><p> <small>[const]</small></p><p> Stores the initial value of the <code> selected </code> attribute. </p> <p> </p> <A NAME="setDefaultSelected"></A><A NAME="ref10"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>setDefaultSelected</strong> ( bool ) <br></td><td align="right"><h3><strong>setDefaultSelected</strong></h3></td></tr></table><p></p><p> see <A HREF="DOM__HTMLOptionElement.html#defaultSelected">defaultSelected</A> </p> <A NAME="text"></A><A NAME="ref11"></A><table width="100%"><tr bgcolor="#eeeeee"><td>DOMString <strong>text</strong> () <br></td><td align="right"><h3><strong>text</strong></h3></td></tr></table><p> <small>[const]</small></p><p> The text contained within the option element. </p> <p> </p> <A NAME="index"></A><A NAME="ref12"></A><table width="100%"><tr bgcolor="#eeeeee"><td>long <strong>index</strong> () <br></td><td align="right"><h3><strong>index</strong></h3></td></tr></table><p> <small>[const]</small></p><p> The index of this <code> OPTION </code> in its parent <code> SELECT </code> . </p> <p> </p> <p>Reimplemented from <A HREF="DOM__Node.html#index">Node</A>.</p> <A NAME="setIndex"></A><A NAME="ref13"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>setIndex</strong> ( long ) <br></td><td align="right"><h3><strong>setIndex</strong></h3></td></tr></table><p></p><p> see <A HREF="DOM__HTMLOptionElement.html#index">index</A> </p> <p> 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) </p> <A NAME="disabled"></A><A NAME="ref14"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool <strong>disabled</strong> () <br></td><td align="right"><h3><strong>disabled</strong></h3></td></tr></table><p> <small>[const]</small></p><p> 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. </p> <p> </p> <A NAME="setDisabled"></A><A NAME="ref15"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>setDisabled</strong> ( bool ) <br></td><td align="right"><h3><strong>setDisabled</strong></h3></td></tr></table><p></p><p> see <A HREF="DOM__HTMLOptionElement.html#disabled">disabled</A> </p> <A NAME="label"></A><A NAME="ref16"></A><table width="100%"><tr bgcolor="#eeeeee"><td>DOMString <strong>label</strong> () <br></td><td align="right"><h3><strong>label</strong></h3></td></tr></table><p> <small>[const]</small></p><p> 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. </p> <p> </p> <A NAME="setLabel"></A><A NAME="ref17"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>setLabel</strong> ( const DOMString & ) <br></td><td align="right"><h3><strong>setLabel</strong></h3></td></tr></table><p></p><p> see <A HREF="DOM__HTMLOptionElement.html#label">label</A> </p> <A NAME="selected"></A><A NAME="ref18"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool <strong>selected</strong> () <br></td><td align="right"><h3><strong>selected</strong></h3></td></tr></table><p> <small>[const]</small></p><p> 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. </p> <p> </p> <A NAME="setSelected"></A><A NAME="ref19"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>setSelected</strong> ( bool ) <br></td><td align="right"><h3><strong>setSelected</strong></h3></td></tr></table><p></p><p> see <A HREF="DOM__HTMLOptionElement.html#selected">selected</A> </p> <A NAME="value"></A><A NAME="ref20"></A><table width="100%"><tr bgcolor="#eeeeee"><td>DOMString <strong>value</strong> () <br></td><td align="right"><h3><strong>value</strong></h3></td></tr></table><p> <small>[const]</small></p><p> 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. </p> <p> </p> <A NAME="setValue"></A><A NAME="ref21"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>setValue</strong> ( const DOMString & ) <br></td><td align="right"><h3><strong>setValue</strong></h3></td></tr></table><p></p><p> see <A HREF="DOM__HTMLOptionElement.html#value">value</A> </p> <HR> <table> <tr><td><small>Generated by: qateam on updates.mandrakesoft.com on Mon Dec 30 16:09:31 2002, using kdoc 2.0a53.</small></td></tr> </table> </BODY> </HTML>