Top Fields Constructors Methods
org.apache.html.dom

public Class HTMLOptionElementImpl

extends HTMLElementImpl
implements HTMLOptionElement
Class Inheritance
All Implemented Interfaces
org.w3c.dom.html.HTMLOptionElement, org.w3c.dom.html.HTMLElement, org.w3c.dom.Element, org.w3c.dom.Node
Imports
org.w3c.dom.Node, .NodeList, .Text, org.w3c.dom.html.HTMLElement, .HTMLOptionElement, .HTMLSelectElement

Author
Assaf Arkin
Version
$Revision: 1029415 $ $Date: 2010-10-31 22:32:22 +0530 (Sun, 31 Oct 2010) $
See Also
org.w3c.dom.html.HTMLOptionElement, org.apache.xerces.dom.ElementImpl

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
HTMLOptionElementImpl(HTMLDocumentImpl
The owner HTML document
owner
,
String name)

Constructor requires owner document.

Method Summary

Modifier and TypeMethod and Description
public boolean
getDefaultSelected()

Implements org.w3c.dom.html.HTMLOptionElement.getDefaultSelected.

Represents the value of the HTML selected attribute.
public boolean
getDisabled()

Implements org.w3c.dom.html.HTMLOptionElement.getDisabled.

The control is unavailable in this context.
public int
getIndex()

Implements org.w3c.dom.html.HTMLOptionElement.getIndex.

The index of this OPTION in its parent SELECT , starting from 0.
public String
getLabel()

Implements org.w3c.dom.html.HTMLOptionElement.getLabel.

Option label for use in hierarchical menus.
public boolean
getSelected()

Implements org.w3c.dom.html.HTMLOptionElement.getSelected.

Represents the current state of the corresponding form control, in an interactive user agent.
public String
getText()

Implements org.w3c.dom.html.HTMLOptionElement.getText.

The text contained within the option element.
public String
getValue()

Implements org.w3c.dom.html.HTMLOptionElement.getValue.

The current form control value.
public void
public void
public void
setIndex(int index)

public void
public void
public void
public void
Inherited from org.apache.html.dom.HTMLElementImpl:
capitalizegetAttributegetAttributeNodegetAttributeNodeNSgetAttributeNSgetBinarygetCapitalizedgetClassNamegetDirgetElementsByTagNamegetElementsByTagNameNSgetFormgetIdgetIntegergetLanggetTitlesetAttributesetClassNamesetDirsetIdsetLangsetTitle

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.apache.html.dom.HTMLElementImpl.serialVersionUID.

Constructor Detail

HTMLOptionElementImplback to summary
public HTMLOptionElementImpl(HTMLDocumentImpl owner, String name)

Constructor requires owner document.

Parameters
owner:HTMLDocumentImpl

The owner HTML document

Method Detail

getDefaultSelectedback to summary
public boolean getDefaultSelected()

Implements org.w3c.dom.html.HTMLOptionElement.getDefaultSelected.

Doc from org.w3c.dom.html.HTMLOptionElement.getDefaultSelected.

Represents the value of the HTML selected attribute. The value of this attribute does not change if the state of the corresponding form control, in an interactive user agent, changes. Changing defaultSelected , however, resets the state of the form control. See the selected attribute definition in HTML 4.0.

getDisabledback to summary
public boolean getDisabled()

Implements org.w3c.dom.html.HTMLOptionElement.getDisabled.

Doc from org.w3c.dom.html.HTMLOptionElement.getDisabled.

The control is unavailable in this context. See the disabled attribute definition in HTML 4.0.

getIndexback to summary
public int getIndex()

Implements org.w3c.dom.html.HTMLOptionElement.getIndex.

Doc from org.w3c.dom.html.HTMLOptionElement.getIndex.

The index of this OPTION in its parent SELECT , starting from 0.

getLabelback to summary
public String getLabel()

Implements org.w3c.dom.html.HTMLOptionElement.getLabel.

Doc from org.w3c.dom.html.HTMLOptionElement.getLabel.

Option label for use in hierarchical menus. See the label attribute definition in HTML 4.0.

getSelectedback to summary
public boolean getSelected()

Implements org.w3c.dom.html.HTMLOptionElement.getSelected.

Doc from org.w3c.dom.html.HTMLOptionElement.getSelected.

Represents the current state of the corresponding form control, in an interactive user agent. Changing this attribute changes the state of the form control, but does not change the value of the HTML selected attribute of the element.

getTextback to summary
public String getText()

Implements org.w3c.dom.html.HTMLOptionElement.getText.

Doc from org.w3c.dom.html.HTMLOptionElement.getText.

The text contained within the option element.

getValueback to summary
public String getValue()

Implements org.w3c.dom.html.HTMLOptionElement.getValue.

Doc from org.w3c.dom.html.HTMLOptionElement.getValue.

The current form control value. See the value attribute definition in HTML 4.0.

setDefaultSelectedback to summary
public void setDefaultSelected(boolean defaultSelected)

Implements org.w3c.dom.html.HTMLOptionElement.setDefaultSelected.

setDisabledback to summary
public void setDisabled(boolean disabled)

Implements org.w3c.dom.html.HTMLOptionElement.setDisabled.

setIndexback to summary
public void setIndex(int index)
setLabelback to summary
public void setLabel(String label)

Implements org.w3c.dom.html.HTMLOptionElement.setLabel.

setSelectedback to summary
public void setSelected(boolean selected)

Implements org.w3c.dom.html.HTMLOptionElement.setSelected.

setTextback to summary
public void setText(String text)
setValueback to summary
public void setValue(String value)

Implements org.w3c.dom.html.HTMLOptionElement.setValue.