• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KHTML

  • DOM
  • HTMLOptionElement
Public Member Functions | Protected Member Functions

DOM::HTMLOptionElement Class Reference

A selectable choice. More...

#include <html_form.h>

Inheritance diagram for DOM::HTMLOptionElement:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 HTMLOptionElement ()
 HTMLOptionElement (const HTMLOptionElement &other)
 HTMLOptionElement (const Node &other)
 ~HTMLOptionElement ()
bool defaultSelected () const
bool disabled () const
HTMLFormElement form () const
long index () const
DOMString label () const
HTMLOptionElement & operator= (const HTMLOptionElement &other)
HTMLOptionElement & operator= (const Node &other)
bool selected () const
void setDefaultSelected (bool)
void setDisabled (bool)
void setIndex (long)
void setLabel (const DOMString &)
void setSelected (bool)
void setValue (const DOMString &)
DOMString text () const
DOMString value () const

Protected Member Functions

 HTMLOptionElement (HTMLOptionElementImpl *impl)

Detailed Description

A selectable choice.

See the OPTION element definition in HTML 4.0.

Definition at line 1262 of file html_form.h.


Constructor & Destructor Documentation

HTMLOptionElement::HTMLOptionElement ( )

Definition at line 1158 of file html_form.cpp.

HTMLOptionElement::HTMLOptionElement ( const HTMLOptionElement &  other)

Definition at line 1162 of file html_form.cpp.

DOM::HTMLOptionElement::HTMLOptionElement ( const Node &  other) [inline]

Definition at line 1267 of file html_form.h.

HTMLOptionElement::HTMLOptionElement ( HTMLOptionElementImpl *  impl) [protected]

Definition at line 1166 of file html_form.cpp.

HTMLOptionElement::~HTMLOptionElement ( )

Definition at line 1182 of file html_form.cpp.


Member Function Documentation

bool HTMLOptionElement::defaultSelected ( ) const

Stores the initial value of the selected attribute.

Definition at line 1191 of file html_form.cpp.

bool HTMLOptionElement::disabled ( ) const

The control is unavailable in this context.

See the disabled attribute definition in HTML 4.0.

Definition at line 1219 of file html_form.cpp.

HTMLFormElement HTMLOptionElement::form ( ) const

### KDE 4.0: remove

Reimplemented from DOM::Element.

Definition at line 1186 of file html_form.cpp.

long HTMLOptionElement::index ( ) const

The index of this OPTION in its parent SELECT .

Reimplemented from DOM::Node.

Definition at line 1208 of file html_form.cpp.

DOMString HTMLOptionElement::label ( ) const

Option label for use in hierarchical menus.

See the label attribute definition in HTML 4.0.

Definition at line 1230 of file html_form.cpp.

HTMLOptionElement & HTMLOptionElement::operator= ( const Node &  other)

Reimplemented from DOM::HTMLElement.

Definition at line 1170 of file html_form.cpp.

HTMLOptionElement & HTMLOptionElement::operator= ( const HTMLOptionElement &  other)

Definition at line 1176 of file html_form.cpp.

bool HTMLOptionElement::selected ( ) const

Means that this option is initially selected.

See the selected attribute definition in HTML 4.0.

Definition at line 1241 of file html_form.cpp.

void HTMLOptionElement::setDefaultSelected ( bool  _defaultSelected)

see defaultSelected

Definition at line 1197 of file html_form.cpp.

void HTMLOptionElement::setDisabled ( bool  _disabled)

see disabled

Definition at line 1225 of file html_form.cpp.

void HTMLOptionElement::setIndex ( long  )

see index

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 1214 of file html_form.cpp.

void HTMLOptionElement::setLabel ( const DOMString &  value)

see label

Definition at line 1236 of file html_form.cpp.

void HTMLOptionElement::setSelected ( bool  _selected)

see selected

Definition at line 1247 of file html_form.cpp.

void HTMLOptionElement::setValue ( const DOMString &  value)

see value

Definition at line 1258 of file html_form.cpp.

DOMString HTMLOptionElement::text ( ) const

The text contained within the option element.

Definition at line 1202 of file html_form.cpp.

DOMString HTMLOptionElement::value ( ) const

The current form control value.

See the value attribute definition in HTML 4.0.

Definition at line 1252 of file html_form.cpp.


The documentation for this class was generated from the following files:
  • html_form.h
  • html_form.cpp

KHTML

Skip menu "KHTML"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal