Package net.arcadiusmc.dom
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 net.arcadiusmc.dom.DomQueryable
getElementsByClassName, getElementsByTagName, querySelector, querySelectorAllMethods inherited from interface net.arcadiusmc.dom.Element
appendChild, appendElement, appendText, clearChildren, firstChild, forEachDescendant, getAttribute, getAttributeEntries, getAttributeNames, getChild, getChildCount, getChildren, getClassList, getClassName, getCurrentStyle, getId, getInlineStyle, getTagName, getTextContent, getTitleNode, getTooltip, hasChild, hasChildren, indexOf, insertAfter, insertBefore, isDescendant, lastChild, matches, prependChild, removeChild, removeChild, replaceChild, replaceChild, setAttribute, setClassName, setId, setTextContent, setTitleNodeMethods inherited from interface net.arcadiusmc.dom.event.EventTarget
addEventListener, dispatchEvent, removeEventListenerMethods inherited from interface net.arcadiusmc.dom.Node
enterVisitor, exitVisitor, getDepth, getOwningDocument, getParent, getSiblingIndex, hasFlag, nextSibling, previousSibling
-
Method Details
-
canHaveChildren
boolean canHaveChildren()Option elements cannot have children- Specified by:
canHaveChildrenin interfaceElement- Returns:
false
-
getName
String getName()Get the option name.Shortcut for accessing the
Attributes.NAMEattribute.- Returns:
- Option name
-
setName
Set the option name.Shortcut for setting the
Attributes.NAMEattribute.- Parameters:
key- New option name
-
getValue
String getValue()Get the value of the option.Shortcut for accessing the
Attributes.VALUEattribute.- Returns:
- Option value
-
setValue
Set the value of the option.Shortcut for setting the
Attributes.VALUEattribute.- Parameters:
value- New option value
-