java.lang.Object
gnu.xml.dom.DomNode
gnu.xml.dom.DomNsNode
gnu.xml.dom.DomElement
gnu.xml.dom.html2.DomHTMLElement
gnu.xml.dom.html2.DomHTMLOptionElement
- 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.HTMLOptionElement, org.w3c.dom.Node, org.w3c.dom.NodeList
- public class DomHTMLOptionElement
- extends DomHTMLElement
- implements org.w3c.dom.html2.HTMLOptionElement
An HTML 'OPTION' element node.
| Nested classes inherited from class gnu.xml.dom.DomNode |
|
| Fields inherited from class gnu.xml.dom.DomElement |
|
| Fields inherited from class gnu.xml.dom.DomNsNode |
|
| Fields inherited from class gnu.xml.dom.DomNode |
|
| Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_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 |
| Methods inherited from class gnu.xml.dom.html2.DomHTMLElement |
dispatchUIEvent, getBooleanHTMLAttribute, getChildElement, getClassName, getDir, getHTMLAttribute, getId, getIntHTMLAttribute, getLang, getParentElement, getTitle, setBooleanHTMLAttribute, setClassName, setDir, setHTMLAttribute, setId, setIntHTMLAttribute, setLang, setTitle |
| Methods inherited from class gnu.xml.dom.DomElement |
clone, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getBaseURI, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, hasAttributes, isDefaultNamespace, isEqualNode, lookupNamespaceURI, lookupPrefix, makeReadonly, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS |
| Methods inherited from class gnu.xml.dom.DomNode |
addEventListener, appendChild, cloneNode, compact, compareDocumentPosition, compareTo, createEvent, dispatchEvent, getChildNodes, getElementsByTagName, getElementsByTagNameNS, getFeature, getFirstChild, getLastChild, getLength, getNextSibling, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, getTextContent, getUserData, hasChildNodes, insertBefore, isReadonly, isSameNode, isSupported, item, list, nameAndTypeEquals, normalize, removeChild, removeEventListener, replaceChild, setNodeValue, setTextContent, setUserData, toString, trimToSize |
| 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 |
selected
protected java.lang.Boolean selected
DomHTMLOptionElement
protected DomHTMLOptionElement(DomHTMLDocument owner,
java.lang.String namespaceURI,
java.lang.String name)
getForm
public org.w3c.dom.html2.HTMLFormElement getForm()
- Description copied from interface:
org.w3c.dom.html2.HTMLOptionElement
- Returns the
FORM element containing this control. Returns
null if this control is not within the context of a
form.
- Specified by:
getForm in interface org.w3c.dom.html2.HTMLOptionElement
getDefaultSelected
public boolean getDefaultSelected()
- Description copied from interface:
org.w3c.dom.html2.HTMLOptionElement
- Represents the value of the HTML selected attribute. The value of this
attribute does not change if the state of the corresponding form
control, in an interactive user agent, changes. See the selected
attribute definition in HTML 4.01.
- Specified by:
getDefaultSelected in interface org.w3c.dom.html2.HTMLOptionElement
setDefaultSelected
public void setDefaultSelected(boolean defaultSelected)
- Description copied from interface:
org.w3c.dom.html2.HTMLOptionElement
- Represents the value of the HTML selected attribute. The value of this
attribute does not change if the state of the corresponding form
control, in an interactive user agent, changes. See the selected
attribute definition in HTML 4.01.
- Specified by:
setDefaultSelected in interface org.w3c.dom.html2.HTMLOptionElement
getText
public java.lang.String getText()
- Description copied from interface:
org.w3c.dom.html2.HTMLOptionElement
- The text contained within the option element.
- Specified by:
getText in interface org.w3c.dom.html2.HTMLOptionElement
getIndex
public int getIndex()
- Description copied from interface:
org.w3c.dom.html2.HTMLOptionElement
- The index of this
OPTION in its parent SELECT
, starting from 0.
- Specified by:
getIndex in interface org.w3c.dom.html2.HTMLOptionElement- Overrides:
getIndex in class DomHTMLElement
getDisabled
public boolean getDisabled()
- Description copied from interface:
org.w3c.dom.html2.HTMLOptionElement
- The control is unavailable in this context. See the disabled attribute
definition in HTML 4.01.
- Specified by:
getDisabled in interface org.w3c.dom.html2.HTMLOptionElement
setDisabled
public void setDisabled(boolean disabled)
- Description copied from interface:
org.w3c.dom.html2.HTMLOptionElement
- The control is unavailable in this context. See the disabled attribute
definition in HTML 4.01.
- Specified by:
setDisabled in interface org.w3c.dom.html2.HTMLOptionElement
getLabel
public java.lang.String getLabel()
- Description copied from interface:
org.w3c.dom.html2.HTMLOptionElement
- Option label for use in hierarchical menus. See the label attribute
definition in HTML 4.01.
- Specified by:
getLabel in interface org.w3c.dom.html2.HTMLOptionElement
setLabel
public void setLabel(java.lang.String label)
- Description copied from interface:
org.w3c.dom.html2.HTMLOptionElement
- Option label for use in hierarchical menus. See the label attribute
definition in HTML 4.01.
- Specified by:
setLabel in interface org.w3c.dom.html2.HTMLOptionElement
getSelected
public boolean getSelected()
- Description copied from interface:
org.w3c.dom.html2.HTMLOptionElement
- Represents the current state of the corresponding form control, in an
interactive user agent. Changing this attribute changes the state of
the form control, but does not change the value of the HTML selected
attribute of the element.
- Specified by:
getSelected in interface org.w3c.dom.html2.HTMLOptionElement
setSelected
public void setSelected(boolean selected)
- Description copied from interface:
org.w3c.dom.html2.HTMLOptionElement
- Represents the current state of the corresponding form control, in an
interactive user agent. Changing this attribute changes the state of
the form control, but does not change the value of the HTML selected
attribute of the element.
- Specified by:
setSelected in interface org.w3c.dom.html2.HTMLOptionElement
getValue
public java.lang.String getValue()
- Description copied from interface:
org.w3c.dom.html2.HTMLOptionElement
- The current form control value. See the value attribute definition in
HTML 4.01.
- Specified by:
getValue in interface org.w3c.dom.html2.HTMLOptionElement
setValue
public void setValue(java.lang.String value)
- Description copied from interface:
org.w3c.dom.html2.HTMLOptionElement
- The current form control value. See the value attribute definition in
HTML 4.01.
- Specified by:
setValue in interface org.w3c.dom.html2.HTMLOptionElement