org.apache.html.dom

Class HTMLSelectElementImpl

Implemented Interfaces:
org.w3c.dom.Element, org.w3c.dom.html.HTMLElement, HTMLFormControl, org.w3c.dom.html.HTMLSelectElement, org.w3c.dom.TypeInfo

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

Version:
$Revision: 329271 $ $Date: 2005-10-28 15:25:05 -0400 (Fri, 28 Oct 2005) $
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 interface org.w3c.dom.TypeInfo

DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION

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()
org.w3c.dom.Node
cloneNode(boolean deep)
Explicit implementation of cloneNode() to ensure that cache used for getOptions() gets cleared.
void
focus()
org.w3c.dom.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()
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, 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(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

cloneNode

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

focus

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

getChildNodes

public org.w3c.dom.NodeList getChildNodes()
Explicit implementation of getChildNodes() to avoid problems with overriding the getLength() method hidden in the super class.
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
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-2006 The Apache Software Foundation. All Rights Reserved.