Package org.loboevolution.html.dom
Interface HTMLOptionElement
- All Superinterfaces:
Element,EventTarget,HTMLElement,InnerHTML,ModelNode,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.intgetIndex()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.booleanSets or retrieves the status of an option.booleanisDisabled.Sets or retrieves whether the option in the list box is the default item.voidsetDefaultSelected(boolean defaultSelected) setDefaultSelected.voidsetDisabled(boolean disabled) setDisabled.voidsetLabel.voidsetSelected(Object selected) setSelected.voidsetText.voidsetValue.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, toggleAttributeMethods inherited from interface org.loboevolution.events.EventTarget
addEventListener, addEventListener, dispatchEvent, dispatchEvent, removeEventListener, removeEventListenerMethods inherited from interface org.loboevolution.html.dom.HTMLElement
click, getAccessKey, getAccessKeyLabel, getAutocapitalize, getContentEditable, getCurrentStyle, getDir, getInnerText, getLang, getOffsetHeight, getOffsetLeft, getOffsetParent, getOffsetTop, getOffsetWidth, getStyle, getTitle, isDraggable, isHidden, isSpellcheck, isTranslate, setAccessKey, setAutocapitalize, setContentEditable, setDir, setDraggable, setHidden, setInnerText, setLang, setSpellcheck, setTitle, setTranslateMethods inherited from interface org.loboevolution.html.node.InnerHTML
setInnerHTMLMethods inherited from interface org.loboevolution.html.node.ModelNode
getDocumentItem, getFullURL, getParentModelNode, getRenderState, isEqualOrDescendentOf, setDocumentItem, warnMethods inherited from interface org.loboevolution.html.node.Node
appendChild, appendChildrenToCollectionImpl, cloneNode, cloneNode, compareDocumentPosition, contains, extractDescendentsArrayImpl, findUINode, forgetRenderState, getAttributes, getBaseURI, getChildNodes, getDocumentNode, getFeature, getFirstChild, getLastChild, getNextSibling, getNextTo, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, getPreviousTo, getRootNode, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isIsConnected, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, prepend, prependChild, removeChild, replaceChild, setNamespaceURI, setNodeValue, setOwnerDocument, setOwnerDocument, setParentImpl, setPrefix, setTextContent, setUserData, visitMethods inherited from interface org.loboevolution.html.node.NonDocumentTypeChildNode
getNextElementSibling, getPreviousElementSiblingMethods 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
HTMLFormElementobject.
-
getIndex
int getIndex()Sets or retrieves the ordinal position of an option in a list box.- Returns:
- a
Integerobject.
-
getLabel
String getLabel()Sets or retrieves a value that you can use to implement your own label functionality for the object.- Returns:
- a
Stringobject.
-
setLabel
setLabel.
- Parameters:
label- aStringobject.
-
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
Stringobject.
-
setText
setText.
- Parameters:
text- aStringobject.
-
getValue
String getValue()Sets or retrieves the value which is returned to the server when the form control is submitted.- Returns:
- a
Stringobject.
-
setValue
setValue.
- Parameters:
value- aStringobject.
-