Interface OptionElement
- All Superinterfaces:
DomQueryable
,Element
,EventTarget
,Node
The option element which specifies an option inside a document's header element.
-
Method Summary
Methods inherited from interface com.juliewoolie.dom.DomQueryable
getElementsByClassName, getElementsByTagName, querySelector, querySelectorAll
Methods inherited from interface com.juliewoolie.dom.Element
appendChild, appendElement, appendText, clearChildren, firstChild, forEachDescendant, getAttribute, getAttributeEntries, getAttributeNames, getChild, getChildCount, getChildren, getClassList, getClassName, getCurrentStyle, getId, getInlineStyle, getTagName, getTextContent, getTitleNode, getTooltip, hasAttribute, hasChild, hasChildren, indexOf, insertAfter, insertBefore, isDescendant, lastChild, matches, prependChild, removeAttribute, removeChild, removeChild, removeMatchingChildren, replaceChild, replaceChild, setAttribute, setClassName, setId, setTextContent, setTitleNode
Methods inherited from interface com.juliewoolie.dom.event.EventTarget
addEventListener, dispatchEvent, getOnAddAttribute, getOnAddOption, getOnAppendChild, getOnAttributeChange, getOnClick, getOnClosing, getOnInput, getOnLoaded, getOnMouseEnter, getOnMouseExit, getOnMouseMove, getOnOptionChange, getOnRemoveAttribute, getOnRemoveChild, getOnRemoveOption, getOnRightClick, getOnSetAttribute, getOnSetOption, getOnSpawned, onAddAttribute, onAddOption, onAppendChild, onAttributeChange, onClick, onClosing, onInput, onLoaded, onMouseEnter, onMouseExit, onMouseMove, onOptionChange, onRemoveAttribute, onRemoveChild, onRemoveOption, onRightClick, onSetAttribute, onSetOption, onSpawned, removeEventListener
Methods inherited from interface com.juliewoolie.dom.Node
enterVisitor, exitVisitor, getDepth, getOwningDocument, getParent, getRenderingBounds, getSiblingIndex, hasFlag, nextSibling, previousSibling
-
Method Details
-
canHaveChildren
boolean canHaveChildren()Option elements cannot have children- Specified by:
canHaveChildren
in interfaceElement
- Returns:
false
-
getName
String getName()Get the option name.Shortcut for accessing the
Attributes.NAME
attribute.- Returns:
- Option name
-
setName
Set the option name.Shortcut for setting the
Attributes.NAME
attribute.- Parameters:
key
- New option name
-
getValue
String getValue()Get the value of the option.Shortcut for accessing the
Attributes.VALUE
attribute.- Returns:
- Option value
-
setValue
Set the value of the option.Shortcut for setting the
Attributes.VALUE
attribute.- Parameters:
value
- New option value
-