|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xerces.dom.NodeImpl org.apache.xerces.dom.ChildNode org.apache.xerces.dom.ParentNode org.apache.xerces.dom.ElementImpl org.apache.html.dom.HTMLElementImpl org.apache.html.dom.HTMLSelectElementImpl
public class HTMLSelectElementImpl
HTMLSelectElement
,
ElementImpl
,
Serialized FormField Summary |
---|
Fields inherited from interface org.w3c.dom.TypeInfo |
---|
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION |
Constructor Summary | |
---|---|
HTMLSelectElementImpl(HTMLDocumentImpl owner,
java.lang.String name)
Constructor requires owner document. |
Method Summary | |
---|---|
void |
add(HTMLElement element,
HTMLElement before)
Add a new element to the collection of OPTION elementsfor
this SELECT . |
void |
blur()
Removes keyboard focus from this element. |
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. |
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. |
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)
|
Methods inherited from class org.apache.html.dom.HTMLElementImpl |
---|
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getClassName, getDir, getElementsByTagName, getElementsByTagNameNS, getForm, getId, getLang, getTitle, setClassName, setDir, setId, setLang, setTitle |
Methods inherited from class org.apache.xerces.dom.ElementImpl |
---|
getAttributes, getBaseURI, getNodeName, getNodeType, getSchemaTypeInfo, getTagName, getTypeName, getTypeNamespace, hasAttribute, hasAttributeNS, hasAttributes, isDerivedFrom, isEqualNode, normalize, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setReadOnly |
Methods inherited from class org.apache.xerces.dom.ParentNode |
---|
getFirstChild, getLastChild, getOwnerDocument, getTextContent, hasChildNodes, insertBefore, item, removeChild, replaceChild, setTextContent |
Methods inherited from class org.apache.xerces.dom.ChildNode |
---|
getNextSibling, getParentNode, getPreviousSibling |
Methods inherited from class org.apache.xerces.dom.NodeImpl |
---|
addEventListener, appendChild, compareDocumentPosition, compareTreePosition, dispatchEvent, getFeature, getLocalName, getNamespaceURI, getNodeValue, getPrefix, getReadOnly, getUserData, getUserData, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setNodeValue, setPrefix, setUserData, setUserData, toString |
Methods inherited from class java.lang.Object |
---|
equals, 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 |
---|
public HTMLSelectElementImpl(HTMLDocumentImpl owner, java.lang.String name)
owner
- The owner HTML documentMethod Detail |
---|
public java.lang.String getType()
HTMLSelectElement
getType
in interface HTMLSelectElement
public java.lang.String getValue()
HTMLSelectElement
getValue
in interface HTMLSelectElement
public void setValue(java.lang.String value)
setValue
in interface HTMLSelectElement
public int getSelectedIndex()
HTMLSelectElement
getSelectedIndex
in interface HTMLSelectElement
public void setSelectedIndex(int selectedIndex)
setSelectedIndex
in interface HTMLSelectElement
public HTMLCollection getOptions()
HTMLSelectElement
OPTION
elements contained by this element.
getOptions
in interface HTMLSelectElement
public int getLength()
ParentNode
getLength
in interface HTMLSelectElement
getLength
in interface NodeList
getLength
in class ParentNode
ParentNode
public boolean getDisabled()
HTMLSelectElement
getDisabled
in interface HTMLSelectElement
public void setDisabled(boolean disabled)
setDisabled
in interface HTMLSelectElement
public boolean getMultiple()
HTMLSelectElement
OPTION
elements may be selected in this
SELECT
. See the multiple attribute definition in HTML 4.0.
getMultiple
in interface HTMLSelectElement
public void setMultiple(boolean multiple)
setMultiple
in interface HTMLSelectElement
public java.lang.String getName()
HTMLSelectElement
getName
in interface HTMLSelectElement
public void setName(java.lang.String name)
setName
in interface HTMLSelectElement
public int getSize()
HTMLSelectElement
getSize
in interface HTMLSelectElement
public void setSize(int size)
setSize
in interface HTMLSelectElement
public int getTabIndex()
HTMLSelectElement
getTabIndex
in interface HTMLSelectElement
public void setTabIndex(int tabIndex)
setTabIndex
in interface HTMLSelectElement
public void add(HTMLElement element, HTMLElement before)
HTMLSelectElement
OPTION
elementsfor
this SELECT
.
add
in interface 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)
HTMLSelectElement
OPTION
elementsfor
this SELECT
. Does nothing if no element has the givenindex.
remove
in interface HTMLSelectElement
index
- The index of the item to remove.public void blur()
HTMLSelectElement
blur
in interface HTMLSelectElement
public void focus()
HTMLSelectElement
focus
in interface HTMLSelectElement
public NodeList getChildNodes()
getChildNodes
in interface Node
getChildNodes
in class ParentNode
public Node cloneNode(boolean deep)
cloneNode
in interface Node
cloneNode
in class 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |