org.enhydra.apache.html.dom
Class HTMLSelectElementImpl
java.lang.Object
|
+--org.enhydra.apache.xerces.dom.NodeImpl
|
+--org.enhydra.apache.xerces.dom.ChildNode
|
+--org.enhydra.apache.xerces.dom.ParentNode
|
+--org.enhydra.apache.xerces.dom.ElementImpl
|
+--org.enhydra.apache.html.dom.HTMLElementImpl
|
+--org.enhydra.apache.html.dom.HTMLSelectElementImpl
- All Implemented Interfaces:
- Cloneable, Element, EventTarget, HTMLElement, HTMLFormControl, HTMLSelectElement, Node, NodeList, Serializable
- public class HTMLSelectElementImpl
- extends HTMLElementImpl
- implements HTMLSelectElement, HTMLFormControl
- Version:
- $Revision: 1.1.1.1 $ $Date: 2003/03/10 16:34:27 $
- Author:
- Assaf Arkin
- See Also:
HTMLSelectElement
,
ElementImpl
, Serialized Form
Fields inherited from class org.enhydra.apache.xerces.dom.NodeImpl |
ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, IGNORABLEWS, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, UNNORMALIZED |
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 |
Methods inherited from class org.enhydra.apache.html.dom.HTMLElementImpl |
capitalize, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getBinary, getCapitalized, getClassName, getDir, getElementsByTagName, getElementsByTagNameNS, getForm, getId, getInteger, getLang, getTitle, setAttribute, setClassName, setDir, setId, setLang, setTitle |
Methods inherited from class org.enhydra.apache.xerces.dom.ElementImpl |
cloneNode, getAttributes, getDefaultAttributes, getNodeName, getNodeType, getTagName, hasAttribute, hasAttributeNS, hasAttributes, normalize, reconcileDefaultAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setOwnerDocument, setReadOnly, setupDefaultAttributes, synchronizeData |
Methods inherited from class org.enhydra.apache.xerces.dom.ParentNode |
checkNormalizationAfterInsert, checkNormalizationAfterRemove, getChildNodesUnoptimized, getFirstChild, getLastChild, getOwnerDocument, hasChildNodes, insertBefore, internalInsertBefore, internalRemoveChild, item, lastChild, lastChild, ownerDocument, removeChild, replaceChild, synchronizeChildren |
Methods inherited from class org.enhydra.apache.xerces.dom.NodeImpl |
addEventListener, appendChild, changed, changes, dispatchEvent, getLocalName, getNamespaceURI, getNodeValue, getPrefix, getReadOnly, getUserData, hasStringValue, hasStringValue, internalIsIgnorableWhitespace, isFirstChild, isFirstChild, isIgnorableWhitespace, isNormalized, isNormalized, isOwned, isOwned, isReadOnly, isReadOnly, isSpecified, isSpecified, isSupported, needsSyncChildren, needsSyncChildren, needsSyncData, needsSyncData, removeEventListener, setNodeValue, setPrefix, setUserData, toString |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Element |
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
HTMLSelectElementImpl
public HTMLSelectElementImpl(HTMLDocumentImpl owner,
String name)
- Constructor requires owner document.
- Parameters:
owner
- The owner HTML document
getType
public String getType()
- Specified by:
getType
in interface HTMLSelectElement
getValue
public String getValue()
- Specified by:
getValue
in interface HTMLSelectElement
setValue
public void setValue(String value)
- Specified by:
setValue
in interface HTMLSelectElement
getSelectedIndex
public int getSelectedIndex()
- Specified by:
getSelectedIndex
in interface HTMLSelectElement
setSelectedIndex
public void setSelectedIndex(int selectedIndex)
- Specified by:
setSelectedIndex
in interface HTMLSelectElement
getOptions
public HTMLCollection getOptions()
- Specified by:
getOptions
in interface HTMLSelectElement
getLength
public int getLength()
- Description copied from class:
ParentNode
- NodeList method: Count the immediate children of this node
- Specified by:
getLength
in interface HTMLSelectElement
- Overrides:
getLength
in class ParentNode
- Following copied from class:
org.enhydra.apache.xerces.dom.ParentNode
- Returns:
- int
getDisabled
public boolean getDisabled()
- Specified by:
getDisabled
in interface HTMLSelectElement
setDisabled
public void setDisabled(boolean disabled)
- Specified by:
setDisabled
in interface HTMLSelectElement
getMultiple
public boolean getMultiple()
- Specified by:
getMultiple
in interface HTMLSelectElement
setMultiple
public void setMultiple(boolean multiple)
- Specified by:
setMultiple
in interface HTMLSelectElement
getName
public String getName()
- Specified by:
getName
in interface HTMLSelectElement
setName
public void setName(String name)
- Specified by:
setName
in interface HTMLSelectElement
getSize
public int getSize()
- Specified by:
getSize
in interface HTMLSelectElement
setSize
public void setSize(int size)
- Specified by:
setSize
in interface HTMLSelectElement
getTabIndex
public int getTabIndex()
- Specified by:
getTabIndex
in interface HTMLSelectElement
setTabIndex
public void setTabIndex(int tabIndex)
- Specified by:
setTabIndex
in interface HTMLSelectElement
add
public void add(HTMLElement element,
HTMLElement before)
- Specified by:
add
in interface HTMLSelectElement
remove
public void remove(int index)
- Specified by:
remove
in interface HTMLSelectElement
blur
public void blur()
- Specified by:
blur
in interface HTMLSelectElement
focus
public void focus()
- Specified by:
focus
in interface HTMLSelectElement
getChildNodes
public NodeList getChildNodes()
- Description copied from class:
ParentNode
- Obtain a NodeList enumerating all children of this node. If there
are none, an (initially) empty NodeList is returned.
NodeLists are "live"; as children are added/removed the NodeList
will immediately reflect those changes. Also, the NodeList refers
to the actual nodes, so changes to those nodes made via the DOM tree
will be reflected in the NodeList and vice versa.
In this implementation, Nodes implement the NodeList interface and
provide their own getChildNodes() support. Other DOMs may solve this
differently.
- Specified by:
getChildNodes
in interface Node
- Overrides:
getChildNodes
in class ParentNode
Copyright © 1999 The Apache Software Foundation. All Rights reserved.