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.4 $ $Date: 2006/01/21 05:50:36 $
- 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_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, 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 |
getAttributes, getDefaultAttributes, getNodeName, getNodeType, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, hasAttributes, normalize, reconcileDefaultAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, 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, compareDocumentPosition, dispatchEvent, getBaseURI, getFeature, getLocalName, getNamespaceURI, getNodeValue, getPrefix, getReadOnly, getTextContent, getUserData, getUserData, hasStringValue, hasStringValue, internalIsIgnorableWhitespace, isDefaultNamespace, isEqualNode, isFirstChild, isFirstChild, isIgnorableWhitespace, isNormalized, isNormalized, isOwned, isOwned, isReadOnly, isReadOnly, isSameNode, isSpecified, isSpecified, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, needsSyncChildren, needsSyncData, needsSyncData, removeEventListener, setNodeValue, setPrefix, setTextContent, setUserData, 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, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS |
Methods inherited from interface org.w3c.dom.Node |
appendChild, compareDocumentPosition, getAttributes, getBaseURI, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
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()
- Explicit implementation of getChildNodes() to avoid problems with
overriding the getLength() method hidden in the super class.
- Specified by:
getChildNodes
in interface Node
- Overrides:
getChildNodes
in class ParentNode
cloneNode
public Node cloneNode(boolean deep)
- Explicit implementation of cloneNode() to ensure that cache used
for getOptions() gets cleared.
- Specified by:
cloneNode
in interface Node
- Overrides:
cloneNode
in class ElementImpl
- Following copied from class:
org.enhydra.apache.xerces.dom.ElementImpl
- See Also:
Node.cloneNode(boolean)
Copyright © 1999 The Apache Software Foundation. All Rights reserved.