org.apache.html.dom

Class HTMLSelectElementImpl

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

public class HTMLSelectElementImpl
extends HTMLElementImpl
implements org.w3c.dom.html.HTMLSelectElement, HTMLFormControl

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

Author:
Assaf Arkin

See Also:
org.w3c.dom.html.HTMLSelectElement, 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

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

Method Summary

void
add(org.w3c.dom.html.HTMLElement element, org.w3c.dom.html.HTMLElement before)
void
blur()
void
focus()
org.w3c.dom.NodeList
getChildNodes()
boolean
getDisabled()
int
getLength()
boolean
getMultiple()
String
getName()
org.w3c.dom.html.HTMLCollection
getOptions()
int
getSelectedIndex()
int
getSize()
int
getTabIndex()
String
getType()
String
getValue()
void
remove(int index)
void
setDisabled(boolean disabled)
void
setMultiple(boolean multiple)
void
setName(String name)
void
setSelectedIndex(int selectedIndex)
void
setSize(int size)
void
setTabIndex(int tabIndex)
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

HTMLSelectElementImpl

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

Parameters:
owner - The owner HTML document

Method Details

add

public void add(org.w3c.dom.html.HTMLElement element,
                org.w3c.dom.html.HTMLElement before)
Specified by:
add in interface org.w3c.dom.html.HTMLSelectElement


blur

public void blur()
Specified by:
blur in interface org.w3c.dom.html.HTMLSelectElement


focus

public void focus()
Specified by:
focus in interface org.w3c.dom.html.HTMLSelectElement


getChildNodes

public org.w3c.dom.NodeList getChildNodes()
Specified by:
getChildNodes in interface org.w3c.dom.Node
Overrides:
getChildNodes in interface org.apache.xerces.dom.ParentNode


getDisabled

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


getLength

public int getLength()
Specified by:
getLength in interface org.w3c.dom.html.HTMLSelectElement
getLength in interface org.w3c.dom.NodeList
Overrides:
getLength in interface org.apache.xerces.dom.ParentNode


getMultiple

public boolean getMultiple()
Specified by:
getMultiple in interface org.w3c.dom.html.HTMLSelectElement


getName

public String getName()
Specified by:
getName in interface org.w3c.dom.html.HTMLSelectElement


getOptions

public org.w3c.dom.html.HTMLCollection getOptions()
Specified by:
getOptions in interface org.w3c.dom.html.HTMLSelectElement


getSelectedIndex

public int getSelectedIndex()
Specified by:
getSelectedIndex in interface org.w3c.dom.html.HTMLSelectElement


getSize

public int getSize()
Specified by:
getSize in interface org.w3c.dom.html.HTMLSelectElement


getTabIndex

public int getTabIndex()
Specified by:
getTabIndex in interface org.w3c.dom.html.HTMLSelectElement


getType

public String getType()
Specified by:
getType in interface org.w3c.dom.html.HTMLSelectElement


getValue

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


remove

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


setDisabled

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


setMultiple

public void setMultiple(boolean multiple)
Specified by:
setMultiple in interface org.w3c.dom.html.HTMLSelectElement


setName

public void setName(String name)
Specified by:
setName in interface org.w3c.dom.html.HTMLSelectElement


setSelectedIndex

public void setSelectedIndex(int selectedIndex)
Specified by:
setSelectedIndex in interface org.w3c.dom.html.HTMLSelectElement


setSize

public void setSize(int size)
Specified by:
setSize in interface org.w3c.dom.html.HTMLSelectElement


setTabIndex

public void setTabIndex(int tabIndex)
Specified by:
setTabIndex in interface org.w3c.dom.html.HTMLSelectElement


setValue

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


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