|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.mozilla.jrex.dom.JRexNodeImpl
org.mozilla.jrex.dom.JRexElementImpl
org.mozilla.jrex.dom.html2.JRexHTMLElementImpl
org.mozilla.jrex.dom.html2.JRexHTMLOptionElementImpl
| Field Summary |
| 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 |
| Method Summary | |
boolean |
getDefaultSelected()
Represents the value of the HTML selected attribute. |
boolean |
getDisabled()
The control is unavailable in this context. |
HTMLFormElement |
getForm()
Returns the FORM element containing this control. |
int |
getIndex()
The index of this OPTION in its parent SELECT
, starting from 0. |
String |
getLabel()
Option label for use in hierarchical menus. |
boolean |
getSelected()
Represents the current state of the corresponding form control, in an interactive user agent. |
String |
getText()
The text contained within the option element. |
String |
getValue()
The current form control value. |
void |
setDefaultSelected(boolean defaultSelected)
Represents the value of the HTML selected attribute. |
void |
setDisabled(boolean disabled)
The control is unavailable in this context. |
void |
setLabel(String label)
Option label for use in hierarchical menus. |
void |
setSelected(boolean selected)
Represents the current state of the corresponding form control, in an interactive user agent. |
void |
setValue(String value)
The current form control value. |
| Methods inherited from class org.mozilla.jrex.dom.html2.JRexHTMLElementImpl |
getClassName, getDir, getId, getLang, getTitle, setClassName, setDir, setId, setLang, setTitle |
| Methods inherited from class org.mozilla.jrex.dom.JRexElementImpl |
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS |
| Methods inherited from class org.mozilla.jrex.dom.JRexNodeImpl |
appendChild, cloneNode, dispose, equals, finalize, getAttributes, getChildNodes, getEventTarget, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, hashCode, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix, toString |
| Methods inherited from class java.lang.Object |
clone, getClass, 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, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS |
| Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
| Method Detail |
public HTMLFormElement getForm()
HTMLOptionElementFORM element containing this control. Returns
null if this control is not within the context of a
form.
getForm in interface HTMLOptionElementpublic boolean getDefaultSelected()
HTMLOptionElement
getDefaultSelected in interface HTMLOptionElementpublic void setDefaultSelected(boolean defaultSelected)
HTMLOptionElement
setDefaultSelected in interface HTMLOptionElementpublic String getText()
HTMLOptionElement
getText in interface HTMLOptionElementpublic int getIndex()
HTMLOptionElementOPTION in its parent SELECT
, starting from 0.
getIndex in interface HTMLOptionElementpublic boolean getDisabled()
HTMLOptionElement
getDisabled in interface HTMLOptionElementpublic void setDisabled(boolean disabled)
HTMLOptionElement
setDisabled in interface HTMLOptionElementpublic String getLabel()
HTMLOptionElement
getLabel in interface HTMLOptionElementpublic void setLabel(String label)
HTMLOptionElement
setLabel in interface HTMLOptionElementpublic boolean getSelected()
HTMLOptionElement
getSelected in interface HTMLOptionElementpublic void setSelected(boolean selected)
HTMLOptionElement
setSelected in interface HTMLOptionElementpublic String getValue()
HTMLOptionElement
getValue in interface HTMLOptionElementpublic void setValue(String value)
HTMLOptionElement
setValue in interface HTMLOptionElement
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||