org.apache.html.dom

Class HTMLSelectElementImpl

Implemented Interfaces:
Element, HTMLElement, HTMLSelectElement, HTMLFormControl, TypeInfo

public class HTMLSelectElementImpl
extends HTMLElementImpl
implements HTMLSelectElement, HTMLFormControl

Version:
$Revision: 447255 $ $Date: 2006-09-18 01:36:42 -0400 (Mon, 18 Sep 2006) $
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

Constructor Summary

HTMLSelectElementImpl(HTMLDocumentImpl owner, 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.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, setOwnerDocument, 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, setOwnerDocument, setReadOnly, setTextContent, synchronizeChildren

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(HTMLElement element,
                HTMLElement before)

blur

public void blur()

cloneNode

public Node cloneNode(boolean deep)
Explicit implementation of cloneNode() to ensure that cache used for getOptions() gets cleared.
Overrides:
cloneNode in interface org.apache.xerces.dom.ElementImpl

focus

public void focus()

getChildNodes

public NodeList getChildNodes()
Explicit implementation of getChildNodes() to avoid problems with overriding the getLength() method hidden in the super class.
Overrides:
getChildNodes in interface org.apache.xerces.dom.ParentNode

getDisabled

public boolean getDisabled()

getLength

public int getLength()
Overrides:
getLength in interface org.apache.xerces.dom.ParentNode

getMultiple

public boolean getMultiple()

getName

public String getName()

getOptions

public HTMLCollection getOptions()

getSelectedIndex

public int getSelectedIndex()

getSize

public int getSize()

getTabIndex

public int getTabIndex()

getType

public String getType()

getValue

public String getValue()

remove

public void remove(int index)

setDisabled

public void setDisabled(boolean disabled)

setMultiple

public void setMultiple(boolean multiple)

setName

public void setName(String name)

setSelectedIndex

public void setSelectedIndex(int selectedIndex)

setSize

public void setSize(int size)

setTabIndex

public void setTabIndex(int tabIndex)

setValue

public void setValue(String value)

Copyright B) 1999-2006 The Apache Software Foundation. All Rights Reserved.