org.enhydra.xml.lazydom.html
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.xml.lazydom.LazyElementNoNS
                                |
                                +--org.enhydra.xml.lazydom.html.LazyHTMLElement
                                      |
                                      +--org.enhydra.xml.lazydom.html.HTMLSelectElementImpl
All Implemented Interfaces:
Cloneable, Element, EventTarget, HTMLElement, HTMLFormControl, HTMLSelectElement, LazyElement, LazyNode, LazyParent, Node, NodeList, PreFormattedText, Serializable, TypeInfo

public class HTMLSelectElementImpl
extends LazyHTMLElement
implements HTMLSelectElement, HTMLFormControl

Version:
$Revision: 1.4 $ $Date: 2006/01/21 16:50:14 $
Author:
Assaf Arkin
See Also:
HTMLSelectElement, LazyElement, Serialized Form

Inner classes inherited from class org.enhydra.apache.xerces.dom.ParentNode
org.enhydra.apache.xerces.dom.ParentNode.UserDataRecord
 
Fields inherited from class org.enhydra.apache.xerces.dom.ElementImpl
attributes, name, serialVersionUID
 
Fields inherited from class org.enhydra.apache.xerces.dom.ParentNode
firstChild, fNodeListCache, ownerDocument
 
Fields inherited from class org.enhydra.apache.xerces.dom.ChildNode
nextSibling, previousSibling
 
Fields inherited from class org.enhydra.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, flags, HASSTRING, ID, IGNORABLEWS, NORMALIZED, OWNED, ownerNode, 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
 
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
 
Fields inherited from interface org.enhydra.xml.lazydom.LazyNode
DOCUMENT_NODE_ID, NULL_NODE_ID
 
Fields inherited from interface org.w3c.dom.TypeInfo
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION
 
Constructor Summary
HTMLSelectElementImpl(LazyHTMLDocument owner, LazyElement template, String name)
          Constructor requires owner document.
 
Method Summary
 void add(HTMLElement element, HTMLElement before)
           
 void blur()
           
 Node cloneNode(boolean deep)
          Explicit implementation of cloneNode() to ensure that cache used for getOptions() gets cleared.
 void focus()
           
 NodeList getChildNodes()
          Explicit implementation of getChildNodes() to avoid problems with overriding the getLength() method hidden in the super class.
 boolean getDisabled()
           
 int getLength()
           
 boolean getMultiple()
           
 String getName()
           
 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.enhydra.xml.lazydom.html.LazyHTMLElement
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.xml.lazydom.LazyElementNoNS
appendChild, appendChildWhileExpanding, areAttributesExpanded, areChildrenExpanded, expandChildren, getAttributes, getFirstChild, getLastChild, getNextSibling, getNodeId, getParentNode, getPreFormattedText, getPreviousSibling, getTemplateElement, getTemplateNode, hasChildNodes, insertBefore, isParentExpanded, isTemplateNode, makeTemplateNode, makeTemplateNode, normalize, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, replaceChild, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setChildrenExpanded, setNodeValue, setParentExpanded, setParentWhileExpanding, setPreFormattedText, templateClone
 
Methods inherited from class org.enhydra.apache.xerces.dom.ElementImpl
getBaseURI, getDefaultAttributes, getNodeName, getNodeType, getSchemaTypeInfo, getTagName, getTypeName, getTypeNamespace, getXercesAttribute, hasAttribute, hasAttributeNS, hasAttributes, isDerivedFrom, isEqualNode, moveSpecifiedAttributes, reconcileDefaultAttributes, rename, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOwnerDocument, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeData
 
Methods inherited from class org.enhydra.apache.xerces.dom.ParentNode
checkNormalizationAfterInsert, checkNormalizationAfterRemove, getChildNodesUnoptimized, getOwnerDocument, getTextContent, getTextContent, hasTextContent, internalInsertBefore, internalRemoveChild, item, lastChild, lastChild, ownerDocument, setTextContent, synchronizeChildren
 
Methods inherited from class org.enhydra.apache.xerces.dom.ChildNode
parentNode, previousSibling
 
Methods inherited from class org.enhydra.apache.xerces.dom.NodeImpl
addEventListener, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getElementAncestor, getFeature, getLocalName, getNamespaceURI, getNodeNumber, getNodeValue, getPrefix, getReadOnly, getUserData, getUserData, getUserDataRecord, hasStringValue, hasStringValue, internalIsIgnorableWhitespace, isDefaultNamespace, isFirstChild, isFirstChild, isIdAttribute, isIdAttribute, isIgnorableWhitespace, isNormalized, isNormalized, isOwned, isOwned, isReadOnly, isReadOnly, isSameNode, isSpecified, isSpecified, isSupported, lookupNamespacePrefix, lookupNamespaceURI, lookupPrefix, needsSyncChildren, needsSyncChildren, needsSyncData, needsSyncData, removeEventListener, setPrefix, 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.html.HTMLSelectElement
getForm
 
Methods inherited from interface org.w3c.dom.html.HTMLElement
getClassName, getDir, getId, getLang, getTitle, setClassName, setDir, setId, setLang, setTitle
 
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
 

Constructor Detail

HTMLSelectElementImpl

public HTMLSelectElementImpl(LazyHTMLDocument owner,
                             LazyElement template,
                             String name)
Constructor requires owner document.
Parameters:
owner - The owner HTML document
Method Detail

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()
Specified by:
getLength in interface HTMLSelectElement
Overrides:
getLength in class org.enhydra.apache.xerces.dom.ParentNode

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 LazyElementNoNS
Following copied from class: org.enhydra.xml.lazydom.LazyElementNoNS
See Also:
Node.getChildNodes()

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 LazyElementNoNS
Following copied from class: org.enhydra.xml.lazydom.LazyElementNoNS
See Also:
Node.cloneNode(boolean)


Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.