public class HTMLSelectElementImpl extends HTMLElementImpl implements org.w3c.dom.html.HTMLSelectElement, HTMLFormControl
HTMLSelectElement,
ElementImpl,
Serialized FormfirstChild, fNodeListCache, ownerDocumentDOCUMENT_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_NODEATTRIBUTE_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, setTitlegetAttributes, 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, synchronizeDatagetChildNodesUnoptimized, getFirstChild, getLastChild, getOwnerDocument, getTextContent, hasChildNodes, insertBefore, item, removeChild, replaceChild, setTextContent, synchronizeChildrengetNextSibling, getParentNode, getPreviousSiblingaddEventListener, 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetClassName, getDir, getId, getLang, getTitle, setClassName, setDir, setId, setLang, setTitlegetAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNSappendChild, 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, setUserDatapublic HTMLSelectElementImpl(HTMLDocumentImpl owner, java.lang.String name)
owner - The owner HTML documentpublic java.lang.String getType()
org.w3c.dom.html.HTMLSelectElementgetType in interface org.w3c.dom.html.HTMLSelectElementpublic java.lang.String getValue()
org.w3c.dom.html.HTMLSelectElementgetValue in interface org.w3c.dom.html.HTMLSelectElementpublic void setValue(java.lang.String value)
setValue in interface org.w3c.dom.html.HTMLSelectElementpublic int getSelectedIndex()
org.w3c.dom.html.HTMLSelectElementgetSelectedIndex in interface org.w3c.dom.html.HTMLSelectElementpublic void setSelectedIndex(int selectedIndex)
setSelectedIndex in interface org.w3c.dom.html.HTMLSelectElementpublic org.w3c.dom.html.HTMLCollection getOptions()
org.w3c.dom.html.HTMLSelectElementOPTION elements contained by this element.getOptions in interface org.w3c.dom.html.HTMLSelectElementpublic int getLength()
org.apache.xerces.dom.ParentNodegetLength in interface org.w3c.dom.html.HTMLSelectElementgetLength in interface org.w3c.dom.NodeListgetLength in class org.apache.xerces.dom.ParentNodeParentNodepublic boolean getDisabled()
org.w3c.dom.html.HTMLSelectElementgetDisabled in interface org.w3c.dom.html.HTMLSelectElementpublic void setDisabled(boolean disabled)
setDisabled in interface org.w3c.dom.html.HTMLSelectElementpublic boolean getMultiple()
org.w3c.dom.html.HTMLSelectElementOPTION elements may be selected in this
SELECT. See the multiple attribute definition in HTML 4.0.getMultiple in interface org.w3c.dom.html.HTMLSelectElementpublic void setMultiple(boolean multiple)
setMultiple in interface org.w3c.dom.html.HTMLSelectElementpublic java.lang.String getName()
org.w3c.dom.html.HTMLSelectElementgetName in interface org.w3c.dom.html.HTMLSelectElementpublic void setName(java.lang.String name)
setName in interface org.w3c.dom.html.HTMLSelectElementpublic int getSize()
org.w3c.dom.html.HTMLSelectElementgetSize in interface org.w3c.dom.html.HTMLSelectElementpublic void setSize(int size)
setSize in interface org.w3c.dom.html.HTMLSelectElementpublic int getTabIndex()
org.w3c.dom.html.HTMLSelectElementgetTabIndex in interface org.w3c.dom.html.HTMLSelectElementpublic void setTabIndex(int tabIndex)
setTabIndex in interface org.w3c.dom.html.HTMLSelectElementpublic void add(org.w3c.dom.html.HTMLElement element,
org.w3c.dom.html.HTMLElement before)
org.w3c.dom.html.HTMLSelectElementOPTION elementsfor
this SELECT.add in interface org.w3c.dom.html.HTMLSelectElementelement - 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.HTMLSelectElementOPTION elementsfor
this SELECT. Does nothing if no element has the givenindex.remove in interface org.w3c.dom.html.HTMLSelectElementindex - The index of the item to remove.public void blur()
org.w3c.dom.html.HTMLSelectElementblur in interface org.w3c.dom.html.HTMLSelectElementpublic void focus()
org.w3c.dom.html.HTMLSelectElementfocus in interface org.w3c.dom.html.HTMLSelectElementpublic org.w3c.dom.NodeList getChildNodes()
getChildNodes in interface org.w3c.dom.NodegetChildNodes in class org.apache.xerces.dom.ParentNodepublic org.w3c.dom.Node cloneNode(boolean deep)
cloneNode in interface org.w3c.dom.NodecloneNode in class org.apache.xerces.dom.ElementImpldeep - 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.