public class HTMLSelectElementImpl extends HTMLElementImpl implements org.w3c.dom.html.HTMLSelectElement, HTMLFormControl
HTMLSelectElement
,
ElementImpl
,
Serialized FormfirstChild, fNodeListCache, ownerDocument
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
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
Constructor and Description |
---|
HTMLSelectElementImpl(HTMLDocumentImpl owner,
java.lang.String name)
Constructor requires owner document.
|
Modifier and Type | Method and Description |
---|---|
void |
add(org.w3c.dom.html.HTMLElement element,
org.w3c.dom.html.HTMLElement before)
Add a new element to the collection of
OPTION elementsfor
this SELECT . |
void |
blur()
Removes keyboard focus from this element.
|
org.w3c.dom.Node |
cloneNode(boolean deep)
Explicit implementation of cloneNode() to ensure that cache used
for getOptions() gets cleared.
|
void |
focus()
Gives keyboard focus to this element.
|
org.w3c.dom.NodeList |
getChildNodes()
Explicit implementation of getChildNodes() to avoid problems with
overriding the getLength() method hidden in the super class.
|
boolean |
getDisabled()
The control is unavailable in this context.
|
int |
getLength()
NodeList method: Count the immediate children of this node
|
boolean |
getMultiple()
If true, multiple
OPTION elements may be selected in this
SELECT . |
java.lang.String |
getName()
Form control or object name when submitted with a form.
|
org.w3c.dom.html.HTMLCollection |
getOptions()
The collection of
OPTION elements contained by this element. |
int |
getSelectedIndex()
The ordinal index of the selected option.
|
int |
getSize()
Number of visible rows.
|
int |
getTabIndex()
Index that represents the element's position in the tabbing order.
|
java.lang.String |
getType()
The type of control created.
|
java.lang.String |
getValue()
The current form control value.
|
void |
remove(int index)
Remove an element from the collection of
OPTION elementsfor
this SELECT . |
void |
setDisabled(boolean disabled) |
void |
setMultiple(boolean multiple) |
void |
setName(java.lang.String name) |
void |
setSelectedIndex(int selectedIndex) |
void |
setSize(int size) |
void |
setTabIndex(int tabIndex) |
void |
setValue(java.lang.String value) |
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getClassName, getDir, getElementsByTagName, getElementsByTagNameNS, getForm, getId, getLang, getTitle, setClassName, setDir, setId, setLang, setTitle
getAttributes, getBaseURI, getChildElementCount, getDefaultAttributes, getFirstElementChild, getLastElementChild, getNextElementSibling, getNodeName, getNodeType, getPreviousElementSibling, getSchemaTypeInfo, getTagName, getTypeName, getTypeNamespace, getXercesAttribute, getXMLBaseAttribute, hasAttribute, hasAttributeNS, hasAttributes, isDerivedFrom, isEqualNode, normalize, reconcileDefaultAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOwnerDocument, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeData
getChildNodesUnoptimized, getFirstChild, getLastChild, getOwnerDocument, getTextContent, hasChildNodes, insertBefore, item, removeChild, replaceChild, setTextContent, synchronizeChildren
getNextSibling, getParentNode, getPreviousSibling
addEventListener, appendChild, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getFeature, getLocalName, getNamespaceURI, getNodeNumber, getNodeValue, getPrefix, getReadOnly, getUserData, getUserData, getUserDataRecord, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setNodeValue, setPrefix, setUserData, setUserData, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getClassName, getDir, getId, getLang, getTitle, setClassName, setDir, setId, setLang, setTitle
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
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
public HTMLSelectElementImpl(HTMLDocumentImpl owner, java.lang.String name)
owner
- The owner HTML documentpublic java.lang.String getType()
org.w3c.dom.html.HTMLSelectElement
getType
in interface org.w3c.dom.html.HTMLSelectElement
public java.lang.String getValue()
org.w3c.dom.html.HTMLSelectElement
getValue
in interface org.w3c.dom.html.HTMLSelectElement
public void setValue(java.lang.String value)
setValue
in interface org.w3c.dom.html.HTMLSelectElement
public int getSelectedIndex()
org.w3c.dom.html.HTMLSelectElement
getSelectedIndex
in interface org.w3c.dom.html.HTMLSelectElement
public void setSelectedIndex(int selectedIndex)
setSelectedIndex
in interface org.w3c.dom.html.HTMLSelectElement
public org.w3c.dom.html.HTMLCollection getOptions()
org.w3c.dom.html.HTMLSelectElement
OPTION
elements contained by this element.getOptions
in interface org.w3c.dom.html.HTMLSelectElement
public int getLength()
org.apache.xerces.dom.ParentNode
getLength
in interface org.w3c.dom.html.HTMLSelectElement
getLength
in interface org.w3c.dom.NodeList
getLength
in class org.apache.xerces.dom.ParentNode
ParentNode
public boolean getDisabled()
org.w3c.dom.html.HTMLSelectElement
getDisabled
in interface org.w3c.dom.html.HTMLSelectElement
public void setDisabled(boolean disabled)
setDisabled
in interface org.w3c.dom.html.HTMLSelectElement
public boolean getMultiple()
org.w3c.dom.html.HTMLSelectElement
OPTION
elements may be selected in this
SELECT
. See the multiple attribute definition in HTML 4.0.getMultiple
in interface org.w3c.dom.html.HTMLSelectElement
public void setMultiple(boolean multiple)
setMultiple
in interface org.w3c.dom.html.HTMLSelectElement
public java.lang.String getName()
org.w3c.dom.html.HTMLSelectElement
getName
in interface org.w3c.dom.html.HTMLSelectElement
public void setName(java.lang.String name)
setName
in interface org.w3c.dom.html.HTMLSelectElement
public int getSize()
org.w3c.dom.html.HTMLSelectElement
getSize
in interface org.w3c.dom.html.HTMLSelectElement
public void setSize(int size)
setSize
in interface org.w3c.dom.html.HTMLSelectElement
public int getTabIndex()
org.w3c.dom.html.HTMLSelectElement
getTabIndex
in interface org.w3c.dom.html.HTMLSelectElement
public void setTabIndex(int tabIndex)
setTabIndex
in interface org.w3c.dom.html.HTMLSelectElement
public void add(org.w3c.dom.html.HTMLElement element, org.w3c.dom.html.HTMLElement before)
org.w3c.dom.html.HTMLSelectElement
OPTION
elementsfor
this SELECT
.add
in interface org.w3c.dom.html.HTMLSelectElement
element
- The element to add.before
- The element to insert before, or NULL for the head of the
list.public void remove(int index)
org.w3c.dom.html.HTMLSelectElement
OPTION
elementsfor
this SELECT
. Does nothing if no element has the givenindex.remove
in interface org.w3c.dom.html.HTMLSelectElement
index
- The index of the item to remove.public void blur()
org.w3c.dom.html.HTMLSelectElement
blur
in interface org.w3c.dom.html.HTMLSelectElement
public void focus()
org.w3c.dom.html.HTMLSelectElement
focus
in interface org.w3c.dom.html.HTMLSelectElement
public org.w3c.dom.NodeList getChildNodes()
getChildNodes
in interface org.w3c.dom.Node
getChildNodes
in class org.apache.xerces.dom.ParentNode
public org.w3c.dom.Node cloneNode(boolean deep)
cloneNode
in interface org.w3c.dom.Node
cloneNode
in class org.apache.xerces.dom.ElementImpl
deep
- If true
, recursively clone the subtree under
the specified node; if false
, clone only the node
itself (and its attributes, if it is an Element
).Node.cloneNode(boolean)
Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.