|
Xerces 1.3.1 | |||||||||
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
HTMLSelectElement
,
ElementImpl
,
Serialized FormField Summary |
Fields inherited from class org.apache.xerces.dom.ElementImpl |
attributes, name |
Fields inherited from class org.apache.xerces.dom.ParentNode |
fCachedChild, fCachedChildIndex, fCachedLength, firstChild, ownerDocument |
Fields inherited from class org.apache.xerces.dom.ChildNode |
nextSibling, previousSibling |
Fields inherited from class org.apache.xerces.dom.NodeImpl |
ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, IGNORABLEWS, MUTATION_AGGREGATE, MUTATION_ALL, MUTATION_LOCAL, MUTATION_NONE, MUTATIONEVENTS, OWNED, ownerNode, READONLY, SETVALUE, SPECIFIED, SYNCCHILDREN, SYNCDATA, UNNORMALIZED |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
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 elements
for this SELECT . |
void |
blur()
Removes keyboard focus from this element. |
void |
focus()
Gives keyboard focus to this element. |
NodeList |
getChildNodes()
A NodeList that contains all children of this node. |
boolean |
getDisabled()
The control is unavailable in this context. |
int |
getLength()
The number of options in this SELECT . |
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, starting from 0. |
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 this form control. |
java.lang.String |
getValue()
The current form control value. |
void |
remove(int index)
Remove an element from the collection of OPTION elements
for 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 |
cloneNode, getAttributes, getDefaultAttributes, getNodeName, getNodeType, getTagName, hasAttribute, hasAttributeNS, hasAttributes, normalize, reconcileDefaultAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setReadOnly, setupDefaultAttributes, synchronizeData |
Methods inherited from class org.apache.xerces.dom.ParentNode |
getChildNodesUnoptimized, getFirstChild, getLastChild, getOwnerDocument, hasChildNodes, insertBefore, item, removeChild, replaceChild, synchronizeChildren, synchronizeChildren |
Methods inherited from class org.apache.xerces.dom.ChildNode |
getNextSibling, getParentNode, getPreviousSibling |
Methods inherited from class org.apache.xerces.dom.NodeImpl |
addEventListener, appendChild, changed, changes, dispatchEvent, getLocalName, getNamespaceURI, getNodeValue, getPrefix, getReadOnly, getUserData, isSupported, removeEventListener, setNodeValue, setPrefix, setUserData, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, 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, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Constructor Detail |
public HTMLSelectElementImpl(HTMLDocumentImpl owner, java.lang.String name)
owner
- The owner HTML documentMethod Detail |
public java.lang.String getType()
HTMLSelectElement
true
and the string
"select-one" when false
.
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()
HTMLSelectElement
SELECT
.
getLength
in interface HTMLSelectElement
getLength
in class 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
elements
for this SELECT
. This method is the equivalent of the
appendChild
method of the Node
interface if
the before
parameter is null
. It is
equivalent to the insertBefore
method on the parent of
before
in all other cases.
add
in interface HTMLSelectElement
element
- The element to add.before
- The element to insert before, or null
for
the tail of the list.public void remove(int index)
HTMLSelectElement
OPTION
elements
for this SELECT
. Does nothing if no element has the given
index.
remove
in interface HTMLSelectElement
index
- The index of the item to remove, starting from 0.public void blur()
HTMLSelectElement
blur
in interface HTMLSelectElement
public void focus()
HTMLSelectElement
focus
in interface HTMLSelectElement
public NodeList getChildNodes()
Node
NodeList
that contains all children of this node. If
there are no children, this is a NodeList
containing no
nodes.
getChildNodes
in interface Node
getChildNodes
in class ParentNode
|
Xerces 1.3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |