|
|||||||||
| Home >> All >> gnu >> xml >> dom >> [ html2 overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
gnu.xml.dom.html2
Class DomHTMLSelectElement

java.lang.Objectgnu.xml.dom.DomNode
gnu.xml.dom.DomNsNode
gnu.xml.dom.DomElement
gnu.xml.dom.html2.DomHTMLElement
gnu.xml.dom.html2.DomHTMLSelectElement
- All Implemented Interfaces:
- java.lang.Cloneable, java.lang.Comparable, org.w3c.dom.events.DocumentEvent, org.w3c.dom.Element, org.w3c.dom.events.EventTarget, org.w3c.dom.html2.HTMLElement, org.w3c.dom.html2.HTMLSelectElement, org.w3c.dom.Node, org.w3c.dom.NodeList
- public class DomHTMLSelectElement
- extends DomHTMLElement
- implements org.w3c.dom.html2.HTMLSelectElement
- extends DomHTMLElement
An HTML 'SELECT' element node.
| Nested Class Summary |
| Nested classes inherited from class gnu.xml.dom.DomNode |
|
| Field Summary |
| Fields inherited from class gnu.xml.dom.DomElement |
|
| Fields inherited from class gnu.xml.dom.DomNsNode |
|
| Fields inherited from class gnu.xml.dom.DomNode |
|
| Constructor Summary | |
protected |
DomHTMLSelectElement(DomHTMLDocument owner,
java.lang.String namespaceURI,
java.lang.String name)
|
| Method Summary | |
void |
add(org.w3c.dom.html2.HTMLElement element,
org.w3c.dom.html2.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. |
boolean |
getDisabled()
The control is unavailable in this context. |
org.w3c.dom.html2.HTMLFormElement |
getForm()
Returns the FORM element containing this control. |
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. |
org.w3c.dom.html2.HTMLOptionsCollection |
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 (i.e. |
void |
remove(int index)
Remove an element from the collection of OPTION elements
for this SELECT. |
void |
setDisabled(boolean disabled)
The control is unavailable in this context. |
void |
setLength(int length)
The number of options in this SELECT. |
void |
setMultiple(boolean multiple)
If true, multiple OPTION elements may be selected in this
SELECT. |
void |
setName(java.lang.String name)
Form control or object name when submitted with a form. |
void |
setSelectedIndex(int selectedIndex)
The ordinal index of the selected option, starting from 0. |
void |
setSize(int size)
Number of visible rows. |
void |
setTabIndex(int tabIndex)
Index that represents the element's position in the tabbing order. |
void |
setValue(java.lang.String value)
The current form control value (i.e. |
| Methods inherited from class gnu.xml.dom.html2.DomHTMLElement |
dispatchUIEvent, getBooleanHTMLAttribute, getChildElement, getClassName, getDir, getHTMLAttribute, getId, getIndex, getIntHTMLAttribute, getLang, getParentElement, getTitle, setBooleanHTMLAttribute, setClassName, setDir, setHTMLAttribute, setId, setIntHTMLAttribute, setLang, setTitle |
| Methods inherited from class gnu.xml.dom.DomNsNode |
getLocalName, getNamespaceURI, getNodeName, getPrefix, setPrefix |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.html2.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, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, 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 |
DomHTMLSelectElement
protected DomHTMLSelectElement(DomHTMLDocument owner, java.lang.String namespaceURI, java.lang.String name)
| Method Detail |
getType
public java.lang.String getType()
- Description copied from interface:
org.w3c.dom.html2.HTMLSelectElement - The type of this form control. This is the string "select-multiple"
when the multiple attribute is
trueand the string "select-one" whenfalse.- Specified by:
getTypein interfaceorg.w3c.dom.html2.HTMLSelectElement
getSelectedIndex
public int getSelectedIndex()
- Description copied from interface:
org.w3c.dom.html2.HTMLSelectElement - The ordinal index of the selected option, starting from 0. The value -1
is returned if no element is selected. If multiple options are
selected, the index of the first selected option is returned.
- Specified by:
getSelectedIndexin interfaceorg.w3c.dom.html2.HTMLSelectElement
setSelectedIndex
public void setSelectedIndex(int selectedIndex)
- Description copied from interface:
org.w3c.dom.html2.HTMLSelectElement - The ordinal index of the selected option, starting from 0. The value -1
is returned if no element is selected. If multiple options are
selected, the index of the first selected option is returned.
- Specified by:
setSelectedIndexin interfaceorg.w3c.dom.html2.HTMLSelectElement
getValue
public java.lang.String getValue()
- Description copied from interface:
org.w3c.dom.html2.HTMLSelectElement - The current form control value (i.e. the value of the currently
selected option), if multiple options are selected this is the value
of the first selected option.
- Specified by:
getValuein interfaceorg.w3c.dom.html2.HTMLSelectElement
setValue
public void setValue(java.lang.String value)
- Description copied from interface:
org.w3c.dom.html2.HTMLSelectElement - The current form control value (i.e. the value of the currently
selected option), if multiple options are selected this is the value
of the first selected option.
- Specified by:
setValuein interfaceorg.w3c.dom.html2.HTMLSelectElement
getLength
public int getLength()
- Description copied from interface:
org.w3c.dom.html2.HTMLSelectElement - The number of options in this
SELECT.- Specified by:
getLengthin interfaceorg.w3c.dom.html2.HTMLSelectElement
setLength
public void setLength(int length)
- Description copied from interface:
org.w3c.dom.html2.HTMLSelectElement - The number of options in this
SELECT.- Specified by:
setLengthin interfaceorg.w3c.dom.html2.HTMLSelectElement
getForm
public org.w3c.dom.html2.HTMLFormElement getForm()
- Description copied from interface:
org.w3c.dom.html2.HTMLSelectElement - Returns the
FORMelement containing this control. Returnsnullif this control is not within the context of a form.- Specified by:
getFormin interfaceorg.w3c.dom.html2.HTMLSelectElement
getOptions
public org.w3c.dom.html2.HTMLOptionsCollection getOptions()
- Description copied from interface:
org.w3c.dom.html2.HTMLSelectElement - The collection of
OPTIONelements contained by this element.- Specified by:
getOptionsin interfaceorg.w3c.dom.html2.HTMLSelectElement
getDisabled
public boolean getDisabled()
- Description copied from interface:
org.w3c.dom.html2.HTMLSelectElement - The control is unavailable in this context. See the disabled attribute
definition in HTML 4.01.
- Specified by:
getDisabledin interfaceorg.w3c.dom.html2.HTMLSelectElement
setDisabled
public void setDisabled(boolean disabled)
- Description copied from interface:
org.w3c.dom.html2.HTMLSelectElement - The control is unavailable in this context. See the disabled attribute
definition in HTML 4.01.
- Specified by:
setDisabledin interfaceorg.w3c.dom.html2.HTMLSelectElement
getMultiple
public boolean getMultiple()
- Description copied from interface:
org.w3c.dom.html2.HTMLSelectElement - If true, multiple
OPTIONelements may be selected in thisSELECT. See the multiple attribute definition in HTML 4.01.- Specified by:
getMultiplein interfaceorg.w3c.dom.html2.HTMLSelectElement
setMultiple
public void setMultiple(boolean multiple)
- Description copied from interface:
org.w3c.dom.html2.HTMLSelectElement - If true, multiple
OPTIONelements may be selected in thisSELECT. See the multiple attribute definition in HTML 4.01.- Specified by:
setMultiplein interfaceorg.w3c.dom.html2.HTMLSelectElement
getName
public java.lang.String getName()
- Description copied from interface:
org.w3c.dom.html2.HTMLSelectElement - Form control or object name when submitted with a form. See the name
attribute definition in HTML 4.01.
- Specified by:
getNamein interfaceorg.w3c.dom.html2.HTMLSelectElement
setName
public void setName(java.lang.String name)
- Description copied from interface:
org.w3c.dom.html2.HTMLSelectElement - Form control or object name when submitted with a form. See the name
attribute definition in HTML 4.01.
- Specified by:
setNamein interfaceorg.w3c.dom.html2.HTMLSelectElement
getSize
public int getSize()
- Description copied from interface:
org.w3c.dom.html2.HTMLSelectElement - Number of visible rows. See the size attribute definition in HTML 4.01.
- Specified by:
getSizein interfaceorg.w3c.dom.html2.HTMLSelectElement
setSize
public void setSize(int size)
- Description copied from interface:
org.w3c.dom.html2.HTMLSelectElement - Number of visible rows. See the size attribute definition in HTML 4.01.
- Specified by:
setSizein interfaceorg.w3c.dom.html2.HTMLSelectElement
getTabIndex
public int getTabIndex()
- Description copied from interface:
org.w3c.dom.html2.HTMLSelectElement - Index that represents the element's position in the tabbing order. See
the tabindex attribute definition in HTML 4.01.
- Specified by:
getTabIndexin interfaceorg.w3c.dom.html2.HTMLSelectElement
setTabIndex
public void setTabIndex(int tabIndex)
- Description copied from interface:
org.w3c.dom.html2.HTMLSelectElement - Index that represents the element's position in the tabbing order. See
the tabindex attribute definition in HTML 4.01.
- Specified by:
setTabIndexin interfaceorg.w3c.dom.html2.HTMLSelectElement
add
public void add(org.w3c.dom.html2.HTMLElement element, org.w3c.dom.html2.HTMLElement before)
- Description copied from interface:
org.w3c.dom.html2.HTMLSelectElement - Add a new element to the collection of
OPTIONelements for thisSELECT. This method is the equivalent of theappendChildmethod of theNodeinterface if thebeforeparameter isnull. It is equivalent to theinsertBeforemethod on the parent ofbeforein all other cases. This method may have no effect if the new element is not anOPTIONor anOPTGROUP.- Specified by:
addin interfaceorg.w3c.dom.html2.HTMLSelectElement
remove
public void remove(int index)
- Description copied from interface:
org.w3c.dom.html2.HTMLSelectElement - Remove an element from the collection of
OPTIONelements for thisSELECT. Does nothing if no element has the given index.- Specified by:
removein interfaceorg.w3c.dom.html2.HTMLSelectElement
blur
public void blur()
- Description copied from interface:
org.w3c.dom.html2.HTMLSelectElement - Removes keyboard focus from this element.
- Specified by:
blurin interfaceorg.w3c.dom.html2.HTMLSelectElement
focus
public void focus()
- Description copied from interface:
org.w3c.dom.html2.HTMLSelectElement - Gives keyboard focus to this element.
- Specified by:
focusin interfaceorg.w3c.dom.html2.HTMLSelectElement
|
|||||||||
| Home >> All >> gnu >> xml >> dom >> [ html2 overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC