|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 Form| Field 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 document| Method Detail |
|---|
public java.lang.String getType()
HTMLSelectElement
getType in interface HTMLSelectElementpublic java.lang.String getValue()
HTMLSelectElement
getValue in interface HTMLSelectElementpublic void setValue(java.lang.String value)
setValue in interface HTMLSelectElementpublic int getSelectedIndex()
HTMLSelectElement
getSelectedIndex in interface HTMLSelectElementpublic void setSelectedIndex(int selectedIndex)
setSelectedIndex in interface HTMLSelectElementpublic HTMLCollection getOptions()
HTMLSelectElementOPTION elements contained by this element.
getOptions in interface HTMLSelectElementpublic int getLength()
ParentNode
getLength in interface HTMLSelectElementgetLength in interface NodeListgetLength in class ParentNodeParentNodepublic boolean getDisabled()
HTMLSelectElement
getDisabled in interface HTMLSelectElementpublic void setDisabled(boolean disabled)
setDisabled in interface HTMLSelectElementpublic boolean getMultiple()
HTMLSelectElementOPTION elements may be selected in this
SELECT. See the multiple attribute definition in HTML 4.0.
getMultiple in interface HTMLSelectElementpublic void setMultiple(boolean multiple)
setMultiple in interface HTMLSelectElementpublic java.lang.String getName()
HTMLSelectElement
getName in interface HTMLSelectElementpublic void setName(java.lang.String name)
setName in interface HTMLSelectElementpublic int getSize()
HTMLSelectElement
getSize in interface HTMLSelectElementpublic void setSize(int size)
setSize in interface HTMLSelectElementpublic int getTabIndex()
HTMLSelectElement
getTabIndex in interface HTMLSelectElementpublic void setTabIndex(int tabIndex)
setTabIndex in interface HTMLSelectElement
public void add(HTMLElement element,
HTMLElement before)
HTMLSelectElementOPTION elementsfor
this SELECT.
add in interface HTMLSelectElementelement - The element to add.before - The element to insert before, or NULL for the head of the
list.public void remove(int index)
HTMLSelectElementOPTION elementsfor
this SELECT. Does nothing if no element has the givenindex.
remove in interface HTMLSelectElementindex - The index of the item to remove.public void blur()
HTMLSelectElement
blur in interface HTMLSelectElementpublic void focus()
HTMLSelectElement
focus in interface HTMLSelectElementpublic NodeList getChildNodes()
getChildNodes in interface NodegetChildNodes in class ParentNodepublic Node cloneNode(boolean deep)
cloneNode in interface NodecloneNode in class 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||