org.apache.html.dom

Class HTMLOptionElementImpl

Implemented Interfaces:
Cloneable, org.w3c.dom.Element, org.w3c.dom.events.EventTarget, org.w3c.dom.html.HTMLElement, org.w3c.dom.html.HTMLOptionElement, Serializable, TypeInfo, org.w3c.dom.Node, org.w3c.dom.NodeList

public class HTMLOptionElementImpl
extends HTMLElementImpl
implements org.w3c.dom.html.HTMLOptionElement

Version:
$Revision: 1.6 $ $Date: 2003/05/08 20:13:09 $

Author:
Assaf Arkin

See Also:
org.w3c.dom.html.HTMLOptionElement, org.apache.xerces.dom.ElementImpl

Field Summary

Fields inherited from class org.apache.xerces.dom.ElementImpl

attributes, name

Fields inherited from class org.apache.xerces.dom.ParentNode

fNodeListCache, firstChild, ownerDocument

Fields inherited from class org.apache.xerces.dom.ChildNode

nextSibling, previousSibling

Fields inherited from class org.apache.xerces.dom.NodeImpl

DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, HASSTRING, ID, IGNORABLEWS, NORMALIZED, OWNED, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODE, flags, ownerNode

Fields inherited from interface org.w3c.dom.Node

ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE

Constructor Summary

HTMLOptionElementImpl(HTMLDocumentImpl owner, String name)
Constructor requires owner document.

Method Summary

boolean
getDefaultSelected()
boolean
getDisabled()
int
getIndex()
String
getLabel()
boolean
getSelected()
String
getText()
String
getValue()
void
setDefaultSelected(boolean defaultSelected)
void
setDisabled(boolean disabled)
void
setIndex(int index)
void
setLabel(String label)
void
setSelected(boolean selected)
void
setText(String text)
void
setValue(String value)

Methods inherited from class org.apache.html.dom.HTMLElementImpl

getAttribute, getAttributeNS, getAttributeNode, getAttributeNodeNS, getClassName, getDir, getElementsByTagName, getElementsByTagNameNS, getForm, getId, getLang, getTitle, setClassName, setDir, setId, setLang, setTitle

Methods inherited from class org.apache.xerces.dom.ElementImpl

cloneNode, getAttribute, getAttributeNS, getAttributeNode, getAttributeNodeNS, getAttributes, getBaseURI, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getNodeName, getNodeType, getSchemaTypeInfo, getTagName, getTypeName, getTypeNamespace, getXercesAttribute, hasAttribute, hasAttributeNS, hasAttributes, isDerivedFrom, isEqualNode, normalize, reconcileDefaultAttributes, removeAttribute, removeAttributeNS, removeAttributeNode, setAttribute, setAttributeNS, setAttributeNode, setAttributeNodeNS, setIdAttribute, setIdAttributeNS, setIdAttributeNode, setReadOnly, setXercesAttributeNode, setupDefaultAttributes, synchronizeData

Methods inherited from class org.apache.xerces.dom.ParentNode

cloneNode, getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, getTextContent, hasChildNodes, insertBefore, isEqualNode, item, normalize, removeChild, replaceChild, setReadOnly, setTextContent, synchronizeChildren

Methods inherited from class org.apache.xerces.dom.ChildNode

cloneNode, getNextSibling, getParentNode, getPreviousSibling

Methods inherited from class org.apache.xerces.dom.NodeImpl

addEventListener, appendChild, changed, changes, cloneNode, compareDocumentPosition, compareTreePosition, dispatchEvent, getAttributes, getBaseURI, getChildNodes, getContainer, getFeature, getFirstChild, getLastChild, getLength, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeNumber, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getReadOnly, getTextContent, getUserData, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, item, lookupNamespaceURI, lookupPrefix, needsSyncChildren, normalize, removeChild, removeEventListener, replaceChild, setNodeValue, setPrefix, setReadOnly, setTextContent, setUserData, setUserData, synchronizeData, toString

Constructor Details

HTMLOptionElementImpl

public HTMLOptionElementImpl(HTMLDocumentImpl owner,
                             String name)
Constructor requires owner document.

Parameters:
owner - The owner HTML document

Method Details

getDefaultSelected

public boolean getDefaultSelected()
Specified by:
getDefaultSelected in interface org.w3c.dom.html.HTMLOptionElement


getDisabled

public boolean getDisabled()
Specified by:
getDisabled in interface org.w3c.dom.html.HTMLOptionElement


getIndex

public int getIndex()
Specified by:
getIndex in interface org.w3c.dom.html.HTMLOptionElement


getLabel

public String getLabel()
Specified by:
getLabel in interface org.w3c.dom.html.HTMLOptionElement


getSelected

public boolean getSelected()
Specified by:
getSelected in interface org.w3c.dom.html.HTMLOptionElement


getText

public String getText()
Specified by:
getText in interface org.w3c.dom.html.HTMLOptionElement


getValue

public String getValue()
Specified by:
getValue in interface org.w3c.dom.html.HTMLOptionElement


setDefaultSelected

public void setDefaultSelected(boolean defaultSelected)
Specified by:
setDefaultSelected in interface org.w3c.dom.html.HTMLOptionElement


setDisabled

public void setDisabled(boolean disabled)
Specified by:
setDisabled in interface org.w3c.dom.html.HTMLOptionElement


setIndex

public void setIndex(int index)
Specified by:
setIndex in interface org.w3c.dom.html.HTMLOptionElement


setLabel

public void setLabel(String label)
Specified by:
setLabel in interface org.w3c.dom.html.HTMLOptionElement


setSelected

public void setSelected(boolean selected)


setText

public void setText(String text)


setValue

public void setValue(String value)
Specified by:
setValue in interface org.w3c.dom.html.HTMLOptionElement


Copyright B) 1999-2004 Apache XML Project. All Rights Reserved.