This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
org.w3c.dom.html
interface HTMLOptionElement
- All Superinterfaces:
- Element, HTMLElement, Node
public interface HTMLOptionElement
extends HTMLElement
A selectable choice. See the OPTION element definition in HTML 4.0.
See also the Document Object Model (DOM) Level 2 Specification.
Fields inherited from class 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 |
Method Summary |
boolean |
Represents the value of the HTML selected attribute.
|
boolean |
The control is unavailable in this context.
|
HTMLFormElement |
Returns the FORM element containing this control.
|
int |
The index of this OPTION in its parent SELECT
, starting from 0.
|
String |
Option label for use in hierarchical menus.
|
boolean |
Represents the current state of the corresponding form control, in an
interactive user agent.
|
String |
The text contained within the option element.
|
String |
The current form control value.
|
void |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class 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 class 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 |
getDefaultSelected
public boolean getDefaultSelected()
-
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. Changing
defaultSelected
, however, resets the state of the form
control. See the selected attribute definition in HTML 4.0.
getDisabled
public boolean getDisabled()
-
The control is unavailable in this context. See the disabled
attribute definition in HTML 4.0.
getForm
public HTMLFormElement getForm()
-
Returns the
FORM
element containing this control. Returns
null
if this control is not within the context of a form.
getIndex
public int getIndex()
-
The index of this
OPTION
in its parent SELECT
, starting from 0.
getLabel
public String getLabel()
-
Option label for use in hierarchical menus. See the label attribute
definition in HTML 4.0.
getSelected
public boolean getSelected()
-
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.
getText
public String getText()
-
The text contained within the option element.
getValue
public String getValue()
-
The current form control value. See the value attribute definition in
HTML 4.0.
setDefaultSelected
public void setDefaultSelected(boolean defaultSelected)
-
- Parameters:
defaultSelected
setDisabled
public void setDisabled(boolean disabled)
-
- Parameters:
disabled
setLabel
public void setLabel(String label)
-
- Parameters:
label
setSelected
public void setSelected(boolean selected)
-
- Parameters:
selected
setValue
public void setValue(String value)
-
- Parameters:
value
This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
This page displays the
Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
The official Sun™ documentation can be found here at
http://java.sun.com/javase/6/docs/api/.