org.lobobrowser.html.domimpl

Class HTMLOptionElementImpl

Implemented Interfaces:
Element, CSS2PropertiesContext, HTMLElement, HTMLOptionElement, Node, ModelNode, ScriptableDelegate

public class HTMLOptionElementImpl
extends HTMLElementImpl
implements HTMLOptionElement

Field Summary

Fields inherited from class org.lobobrowser.html.domimpl.ElementImpl

attributes

Fields inherited from class org.lobobrowser.html.domimpl.NodeImpl

document, logger, nodeList, notificationsSuspended, parentNode, treeLock, uiNode

Constructor Summary

HTMLOptionElementImpl(String name)

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.
String
toString()

Methods inherited from class org.lobobrowser.html.domimpl.HTMLElementImpl

addStyleSheetDeclarations, appendInnerHTMLImpl, appendOuterHTMLImpl, assignAttributeField, createRenderState, findStyleDeclarations, forgetLocalStyle, forgetStyle, getAncestor, getAncestorForJavaClass, getAncestorWithClass, getAncestorWithId, getAttributeAsBoolean, getAttributeAsInt, getCharset, getClassName, getCssInputSourceForDecl, getCurrentStyle, getFormInputs, getInnerHTML, getOffsetHeight, getOffsetLeft, getOffsetTop, getOffsetWidth, getOuterHTML, getParentStyle, getStyle, informInvalid, informInvalidAttibute, informLayoutInvalid, setCharset, setClassName, setCurrentStyle, setInnerHTML, setMouseOver, setStyle, toString, warn, warn

Methods inherited from class org.lobobrowser.html.domimpl.ElementImpl

appendInnerTextImpl, assignAttributeField, createSimilarNode, equalAttributes, getAttribute, getAttributeNS, getAttributeNode, getAttributeNodeNS, getAttributes, getDir, getElementsByTagName, getElementsByTagNameNS, getId, getInnerText, getLang, getLocalName, getNodeName, getNodeType, getNodeValue, getRawInnerText, getSchemaTypeInfo, getTagName, getTitle, hasAttribute, hasAttributeNS, hasAttributes, isTagName, normalizeAttributeName, removeAttribute, removeAttributeNS, removeAttributeNode, setAttribute, setAttributeImpl, setAttributeNS, setAttributeNode, setAttributeNodeNS, setDir, setId, setIdAttribute, setIdAttributeNS, setIdAttributeNode, setInnerText, setLang, setNodeValue, setTitle, toString

Methods inherited from class org.lobobrowser.html.domimpl.NodeImpl

appendChild, cloneNode, compareDocumentPosition, createRenderState, createSimilarNode, equalAttributes, findUINode, forgetRenderState, getAlignmentX, getAlignmentY, getAttributes, getBaseURI, getChildNodes, getChildren, getChildrenArray, getDescendents, getDocumentItem, getDocumentURL, getFeature, getFirstChild, getFullURL, getHtmlRendererContext, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeList, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentModelNode, getParentNode, getParentRenderState, getPrefix, getPreviousSibling, getRenderState, getTextContent, getUINode, getUserAgentContext, getUserData, hasAttributes, hasChildNodes, informExternalScriptLoading, informInvalid, informLayoutInvalid, informLookInvalid, informNodeLoaded, informPositionInvalid, informSizeInvalid, insertAfter, insertAt, insertBefore, isDefaultNamespace, isEqualNode, isEqualOrDescendentOf, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeAllChildren, removeAllChildrenImpl, removeChild, removeChildAt, removeChildren, removeChildrenImpl, replaceAdjacentTextNodes, replaceAdjacentTextNodes, replaceChild, setDocumentItem, setNodeValue, setPrefix, setTextContent, setUINode, setUserData, toString, warn, warn

Methods inherited from class org.lobobrowser.js.AbstractScriptableDelegate

getScriptable, setScriptable

Constructor Details

HTMLOptionElementImpl

public HTMLOptionElementImpl(String name)

Method Details

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. See the selected attribute definition in HTML 4.01.
Specified by:
getDefaultSelected in interface HTMLOptionElement
Version:
DOM Level 2

getDisabled

public boolean getDisabled()
The control is unavailable in this context. See the disabled attribute definition in HTML 4.01.
Specified by:
getDisabled in interface HTMLOptionElement

getForm

public HTMLFormElement getForm()
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 HTMLOptionElement

getIndex

public int getIndex()
The index of this OPTION in its parent SELECT , starting from 0.
Specified by:
getIndex in interface HTMLOptionElement
Version:
DOM Level 2

getLabel

public String getLabel()
Option label for use in hierarchical menus. See the label attribute definition in HTML 4.01.
Specified by:
getLabel in interface HTMLOptionElement

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.
Specified by:
getSelected in interface HTMLOptionElement

getText

public String getText()
The text contained within the option element.
Specified by:
getText in interface HTMLOptionElement

getValue

public String getValue()
The current form control value. See the value attribute definition in HTML 4.01.
Specified by:
getValue in interface HTMLOptionElement

setDefaultSelected

public void setDefaultSelected(boolean defaultSelected)
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 HTMLOptionElement
Version:
DOM Level 2

setDisabled

public void setDisabled(boolean disabled)
The control is unavailable in this context. See the disabled attribute definition in HTML 4.01.
Specified by:
setDisabled in interface HTMLOptionElement

setLabel

public void setLabel(String label)
Option label for use in hierarchical menus. See the label attribute definition in HTML 4.01.
Specified by:
setLabel in interface HTMLOptionElement

setSelected

public void setSelected(boolean selected)
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 HTMLOptionElement

setValue

public void setValue(String value)
The current form control value. See the value attribute definition in HTML 4.01.
Specified by:
setValue in interface HTMLOptionElement

toString

public String toString()
Overrides:
toString in interface HTMLElementImpl