Package org.loboevolution.html.dom
Interface HTMLOptionElement
- All Superinterfaces:
Element
,EventTarget
,HTMLElement
,InnerHTML
,Node
,NonDocumentTypeChildNode
,ParentNode
- All Known Implementing Classes:
HTMLOptionElementImpl
<option> elements and inherits all classes and methods of the HTMLElement interface.
-
Field Summary
Fields inherited from interface org.loboevolution.html.node.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, NONE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
-
Method Summary
Modifier and TypeMethodDescriptiongetForm()
Retrieves a reference to the form that the object is embedded in.int
getIndex()
Sets or retrieves the ordinal position of an option in a list box.getLabel()
Sets or retrieves a value that you can use to implement your own label functionality for the object.getText()
Sets or retrieves the text string specified by the option tag.getValue()
Sets or retrieves the value which is returned to the server when the form control is submitted.boolean
Sets or retrieves the status of an option.boolean
isDisabled.Sets or retrieves whether the option in the list box is the default item.void
setDefaultSelected
(boolean defaultSelected) setDefaultSelected.void
setDisabled
(boolean disabled) setDisabled.void
setLabel.void
setSelected
(Object selected) setSelected.void
setText.void
setValue.Methods inherited from interface org.loboevolution.html.node.Element
closest, getAttribute, getAttributeNames, getAttributeNode, getAttributeNodeNS, getAttributeNS, getBoundingClientRect, getClassList, getClassName, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getId, getInnerHTML, getLocalName, getNamespaceURI, getOuterHTML, getPrefix, getSchemaTypeInfo, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getSlot, getTagName, hasAttribute, hasAttributeNS, hasPointerCapture, insertAdjacentElement, insertAdjacentHTML, matches, releasePointerCapture, removeAttribute, removeAttributeNode, removeAttributeNS, requestPointerLock, scroll, scrollBy, scrollIntoView, scrollIntoView, scrollTo, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setClassName, setId, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOuterHTML, setPointerCapture, setScrollLeft, setScrollTop, setSlot, toggleAttribute, toggleAttribute
Methods inherited from interface org.loboevolution.events.EventTarget
addEventListener, addEventListener, dispatchEvent, dispatchEvent, removeEventListener, removeEventListener
Methods inherited from interface org.loboevolution.html.dom.HTMLElement
click, getAccessKey, getAccessKeyLabel, getAutocapitalize, getContentEditable, getDir, getInnerText, getLang, getOffsetHeight, getOffsetLeft, getOffsetParent, getOffsetTop, getOffsetWidth, getTitle, isDraggable, isHidden, isSpellcheck, isTranslate, setAccessKey, setAutocapitalize, setContentEditable, setDir, setDraggable, setHidden, setInnerText, setLang, setSpellcheck, setTitle, setTranslate
Methods inherited from interface org.loboevolution.html.node.InnerHTML
setInnerHTML
Methods inherited from interface org.loboevolution.html.node.Node
appendChild, cloneNode, cloneNode, compareDocumentPosition, contains, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, getRootNode, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isIsConnected, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, prepend, prependChild, removeChild, replaceChild, setNodeValue, setOwnerDocument, setPrefix, setTextContent, setUserData
Methods inherited from interface org.loboevolution.html.node.NonDocumentTypeChildNode
getNextElementSibling, getPreviousElementSibling
Methods inherited from interface org.loboevolution.html.node.ParentNode
getChildElementCount, getChildren, getFirstElementChild, getLastElementChild, querySelector, querySelectorAll
-
Method Details
-
isDefaultSelected
boolean isDefaultSelected()Sets or retrieves the status of an option.- Returns:
- a boolean.
-
setDefaultSelected
void setDefaultSelected(boolean defaultSelected) setDefaultSelected.
- Parameters:
defaultSelected
- a boolean.
-
isDisabled
boolean isDisabled()isDisabled.
- Returns:
- a boolean.
-
setDisabled
void setDisabled(boolean disabled) setDisabled.
- Parameters:
disabled
- a boolean.
-
getForm
HTMLFormElement getForm()Retrieves a reference to the form that the object is embedded in.- Returns:
- a
HTMLFormElement
object.
-
getIndex
int getIndex()Sets or retrieves the ordinal position of an option in a list box.- Returns:
- a
Integer
object.
-
getLabel
String getLabel()Sets or retrieves a value that you can use to implement your own label functionality for the object.- Returns:
- a
String
object.
-
setLabel
setLabel.
- Parameters:
label
- aString
object.
-
isSelected
Boolean isSelected()Sets or retrieves whether the option in the list box is the default item.- Returns:
- a boolean.
-
setSelected
setSelected.
- Parameters:
selected
- a boolean.
-
getText
String getText()Sets or retrieves the text string specified by the option tag.- Returns:
- a
String
object.
-
setText
setText.
- Parameters:
text
- aString
object.
-
getValue
String getValue()Sets or retrieves the value which is returned to the server when the form control is submitted.- Returns:
- a
String
object.
-
setValue
setValue.
- Parameters:
value
- aString
object.
-