.TH "DOM::HTMLSelectElement" kde3 "11 Jun 2005" "Version Version 3.4.1" "khtml Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
DOM::HTMLSelectElement \- The select element allows the selection of an option.  

.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 "\fBHTMLSelectElement\fP (const \fBHTMLSelectElement\fP &other)"
.br
.ti -1c
.RI "\fBHTMLSelectElement\fP (const \fBNode\fP &other)"
.br
.ti -1c
.RI "\fBHTMLSelectElement\fP & \fBoperator=\fP (const \fBHTMLSelectElement\fP &other)"
.br
.ti -1c
.RI "\fBHTMLSelectElement\fP & \fBoperator=\fP (const \fBNode\fP &other)"
.br
.ti -1c
.RI "\fBDOMString\fP \fBtype\fP () const "
.br
.ti -1c
.RI "long \fBselectedIndex\fP () const "
.br
.ti -1c
.RI "void \fBsetSelectedIndex\fP (long)"
.br
.ti -1c
.RI "\fBDOMString\fP \fBvalue\fP () const "
.br
.ti -1c
.RI "void \fBsetValue\fP (const \fBDOMString\fP &)"
.br
.ti -1c
.RI "long \fBlength\fP () const "
.br
.ti -1c
.RI "\fBHTMLFormElement\fP \fBform\fP () const "
.br
.ti -1c
.RI "\fBHTMLCollection\fP \fBoptions\fP () const "
.br
.ti -1c
.RI "bool \fBdisabled\fP () const "
.br
.ti -1c
.RI "void \fBsetDisabled\fP (bool)"
.br
.ti -1c
.RI "bool \fBmultiple\fP () const "
.br
.ti -1c
.RI "void \fBsetMultiple\fP (bool)"
.br
.ti -1c
.RI "\fBDOMString\fP \fBname\fP () const "
.br
.ti -1c
.RI "void \fBsetName\fP (const \fBDOMString\fP &)"
.br
.ti -1c
.RI "long \fBsize\fP () const "
.br
.ti -1c
.RI "void \fBsetSize\fP (long)"
.br
.ti -1c
.RI "long \fBtabIndex\fP () const "
.br
.ti -1c
.RI "void \fBsetTabIndex\fP (long)"
.br
.ti -1c
.RI "void \fBadd\fP (const \fBHTMLElement\fP &element, const \fBHTMLElement\fP &before)"
.br
.ti -1c
.RI "void \fBremove\fP (long index)"
.br
.ti -1c
.RI "void \fBblur\fP ()"
.br
.ti -1c
.RI "void \fBfocus\fP ()"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "\fBHTMLSelectElement\fP (HTMLSelectElementImpl *impl)"
.br
.in -1c
.SH "Detailed Description"
.PP 
The select element allows the selection of an option. 

The contained options can be directly accessed through the select element as a collection. See the \fCSELECT element definition \fP in HTML 4.0. 
.PP
Definition at line 810 of file html_form.h.
.SH "Member Function Documentation"
.PP 
.SS "\fBDOMString\fP HTMLSelectElement::type () const"
.PP
The type of control created. 
.PP
Definition at line 754 of file html_form.cpp.
.SS "long HTMLSelectElement::selectedIndex () const"
.PP
The ordinal index of the selected option. 
.PP
The value -1 is returned if no element is selected. If multiple options are selected, the index of the first selected option is returned. 
.PP
Definition at line 760 of file html_form.cpp.
.SS "void HTMLSelectElement::setSelectedIndex (long)"
.PP
see selectedIndex 
.PP
Definition at line 766 of file html_form.cpp.
.SS "\fBDOMString\fP HTMLSelectElement::value () const"
.PP
The current form control value. 
.PP
Definition at line 772 of file html_form.cpp.
.PP
Referenced by setName(), setSize(), and setValue().
.SS "void HTMLSelectElement::setValue (const \fBDOMString\fP &)"
.PP
see value 
.PP
Definition at line 778 of file html_form.cpp.
.PP
References DOM::DOMString::implementation(), DOM::DOMString::isNull(), and value().
.SS "long HTMLSelectElement::length () const"
.PP
The number of options in this \fCSELECT\fP . 
.PP
Definition at line 784 of file html_form.cpp.
.PP
References DOM::DOMString::length().
.SS "\fBHTMLFormElement\fP HTMLSelectElement::form () const"
.PP
### \fBKDE\fP 4.0: remove. 
.PP
Reimplemented from \fBDOM::Element\fP.
.PP
Definition at line 790 of file html_form.cpp.
.PP
References DOM::Element::form().
.SS "\fBHTMLCollection\fP HTMLSelectElement::options () const"
.PP
The collection of \fCOPTION\fP elements contained by this element. 
.PP
Definition at line 795 of file html_form.cpp.
.SS "bool HTMLSelectElement::disabled () const"
.PP
The control is unavailable in this context. 
.PP
See the \fCdisabled attribute definition \fP in HTML 4.0. 
.PP
Definition at line 801 of file html_form.cpp.
.PP
References DOM::HTMLCollection::isNull().
.SS "void HTMLSelectElement::setDisabled (bool)"
.PP
see disabled 
.PP
Definition at line 807 of file html_form.cpp.
.SS "bool HTMLSelectElement::multiple () const"
.PP
If true, multiple \fCOPTION\fP elements may be selected in this \fCSELECT\fP . 
.PP
See the \fCmultiple attribute definition \fP in HTML 4.0. 
.PP
Definition at line 813 of file html_form.cpp.
.PP
References DOM::HTMLCollection::isNull().
.SS "void HTMLSelectElement::setMultiple (bool)"
.PP
see multiple 
.PP
Definition at line 819 of file html_form.cpp.
.SS "\fBDOMString\fP HTMLSelectElement::name () const"
.PP
Form control or object name when submitted with a form. 
.PP
See the \fCname attribute definition \fP in HTML 4.0. 
.PP
Definition at line 824 of file html_form.cpp.
.SS "void HTMLSelectElement::setName (const \fBDOMString\fP &)"
.PP
see name 
.PP
Definition at line 830 of file html_form.cpp.
.PP
References value().
.SS "long HTMLSelectElement::size () const"
.PP
Number of visible rows. 
.PP
See the \fCsize attribute definition \fP in HTML 4.0. 
.PP
Definition at line 835 of file html_form.cpp.
.PP
References DOM::DOMString::toInt().
.SS "void HTMLSelectElement::setSize (long)"
.PP
see size 
.PP
Definition at line 841 of file html_form.cpp.
.PP
References value().
.SS "long HTMLSelectElement::tabIndex () const"
.PP
Index that represents the element's position in the tabbing order. 
.PP
See the \fCtabindex attribute definition \fP in HTML 4.0. 
.PP
Definition at line 850 of file html_form.cpp.
.SS "void HTMLSelectElement::setTabIndex (long)"
.PP
see tabIndex 
.PP
Definition at line 856 of file html_form.cpp.
.SS "void HTMLSelectElement::add (const \fBHTMLElement\fP & element, const \fBHTMLElement\fP & before)"
.PP
Add a new element to the collection of \fCOPTION\fP elements for this \fCSELECT\fP . 
.PP
\fBParameters:\fP
.RS 4
\fIelement\fP The element to add.
.br
\fIbefore\fP The element to insert before, or 0 for the tail of the list. 
.RE
.PP

.PP
Definition at line 862 of file html_form.cpp.
.SS "void HTMLSelectElement::remove (long index)"
.PP
Remove an element from the collection of \fCOPTION\fP elements for this \fCSELECT\fP . 
.PP
Does nothing if no element has the given index.
.PP
\fBParameters:\fP
.RS 4
\fIindex\fP The index of the item to remove. 
.RE
.PP

.PP
Definition at line 873 of file html_form.cpp.
.PP
References DOM::DOMString::remove().
.SS "void HTMLSelectElement::blur ()"
.PP
Removes keyboard focus from this element. 
.PP
Definition at line 878 of file html_form.cpp.
.SS "void HTMLSelectElement::focus ()"
.PP
Gives keyboard focus to this element. 
.PP
Definition at line 884 of file html_form.cpp.

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