Package net.arcadiusmc.dom
Interface ButtonElement
- All Superinterfaces:
DomQueryable,Element,EventTarget,Node
Button elements play a sound when clicked
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTest if the button is enabledvoidsetEnabled(boolean enabled) Set if the button is enabledMethods inherited from interface net.arcadiusmc.dom.DomQueryable
getElementsByClassName, getElementsByTagName, querySelector, querySelectorAllMethods inherited from interface net.arcadiusmc.dom.Element
appendChild, appendElement, appendText, canHaveChildren, 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
-
isEnabled
boolean isEnabled()Test if the button is enabledShortcut for accessing the
Attributes.ENABLEDattribute.- Returns:
true, if the button is enabled,falseotherwise.
-
setEnabled
void setEnabled(boolean enabled) Set if the button is enabledShortcut for setting the
Attributes.ENABLEDattribute.- Parameters:
enabled-true, if the button is enabled,falseotherwise.
-