public class JsButtonElement extends JsElement implements ButtonElement
ALLOW_KEYBOARD_INPUT
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, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
SVG_ZOOMANDPAN_DISABLE, SVG_ZOOMANDPAN_MAGNIFY, SVG_ZOOMANDPAN_UNKNOWN
Modifier | Constructor and Description |
---|---|
protected |
JsButtonElement() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkValidity()
Not supported for button elements.
|
JsFormElement |
getForm()
The form that this button is associated with.
|
String |
getFormAction()
The URI of a program that processes information submitted by the button.
|
String |
getFormEnctype() |
String |
getFormMethod()
The HTTP method that the browser uses to submit the form.
|
String |
getFormTarget()
A name or keyword indicating where to display the response that is received after submitting the form.
|
JsNodeList |
getLabels()
A list of
<label>
elements that are labels for this button. |
String |
getName()
The name of the object when submitted with a form.
|
String |
getType()
Indicates the behavior of the button.
|
String |
getValidationMessage()
A localized message that describes the validation constraints that the control does not satisfy (if any).
|
JsValidityState |
getValidity()
The validity states that this button is in.
|
String |
getValue()
The current form control value of the button.
|
boolean |
isAutofocus()
The control should have input focus when the page loads, unless the user overrides it, for example by typing in a different control.
|
boolean |
isDisabled()
The control is disabled, meaning that it does not accept any clicks.
|
boolean |
isFormNoValidate()
Indicates that the form is not to be validated when it is submitted.
|
boolean |
isWillValidate()
Indicates whether the button is a candidate for constraint validation.
|
void |
setAutofocus(boolean param_autofocus) |
void |
setCustomValidity(String error)
Not supported for button elements.
|
void |
setDisabled(boolean param_disabled) |
void |
setFormAction(String param_formAction) |
void |
setFormEnctype(String param_formEnctype) |
void |
setFormMethod(String param_formMethod) |
void |
setFormNoValidate(boolean param_formNoValidate) |
void |
setFormTarget(String param_formTarget) |
void |
setName(String param_name) |
void |
setValue(String param_value) |
blur, click, focus, getAccessKey, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getBoundingClientRect, getChildren, getClassList, getClassName, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getContentEditable, getDataset, getDir, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getId, getInnerHTML, getInnerText, getLang, getOffsetHeight, getOffsetLeft, getOffsetParent, getOffsetTop, getOffsetWidth, getOnabort, getOnbeforecopy, getOnbeforecut, getOnbeforepaste, getOnblur, getOnchange, getOnclick, getOncontextmenu, getOncopy, getOncut, getOndblclick, getOndrag, getOndragend, getOndragenter, getOndragleave, getOndragover, getOndragstart, getOndrop, getOnerror, getOnfocus, getOninput, getOninvalid, getOnkeydown, getOnkeypress, getOnkeyup, getOnload, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnmousewheel, getOnpaste, getOnreset, getOnscroll, getOnsearch, getOnselect, getOnselectstart, getOnsubmit, getOntouchcancel, getOntouchend, getOntouchmove, getOntouchstart, getOnwebkitfullscreenchange, getOnwebkitfullscreenerror, getOuterHTML, getOuterText, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getStyle, getTabIndex, getTagName, getTitle, getWebkitdropzone, getWebkitRegionOverflow, hasAttribute, hasAttributeNS, insertAdjacentElement, insertAdjacentHTML, insertAdjacentText, isContentEditable, isDraggable, isHidden, isSpellcheck, isTranslate, removeAttribute, removeAttributeNode, removeAttributeNS, scrollByLines, scrollByPages, scrollIntoView, scrollIntoView, scrollIntoViewIfNeeded, scrollIntoViewIfNeeded, setAccessKey, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setClassName, setContentEditable, setDir, setDraggable, setHidden, setId, setInnerHTML, setInnerText, setLang, setOnabort, setOnbeforecopy, setOnbeforecut, setOnbeforepaste, setOnblur, setOnchange, setOnclick, setOncontextmenu, setOncopy, setOncut, setOndblclick, setOndrag, setOndragend, setOndragenter, setOndragleave, setOndragover, setOndragstart, setOndrop, setOnerror, setOnfocus, setOninput, setOninvalid, setOnkeydown, setOnkeypress, setOnkeyup, setOnload, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnmousewheel, setOnpaste, setOnreset, setOnscroll, setOnsearch, setOnselect, setOnselectstart, setOnsubmit, setOntouchcancel, setOntouchend, setOntouchmove, setOntouchstart, setOnwebkitfullscreenchange, setOnwebkitfullscreenerror, setOuterHTML, setOuterText, setScrollLeft, setScrollTop, setSpellcheck, setTabIndex, setTitle, setTranslate, setWebkitdropzone, webkitMatchesSelector, webkitRequestFullscreen, webkitRequestFullScreen
appendChild, cloneNode, compareDocumentPosition, contains, getAttributes, getBaseURI, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousSibling, getTextContent, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent
addEventListener, addEventListener, beginElement, beginElementAt, dispatchEvent, endElement, endElementAt, getAnimatedClassName, getAnimatedHeight, getAnimatedHref, getAnimatedResult, getAnimatedTransform, getAnimatedWidth, getAnimatedX, getAnimatedY, getBBox, getChildElementCount, getCTM, getExternalResourcesRequired, getFarthestViewportElement, getFirstElementChild, getLastElementChild, getNearestViewportElement, getNextElementSibling, getPresentationAttribute, getPreserveAspectRatio, getPreviousElementSibling, getRequiredExtensions, getRequiredFeatures, getScreenCTM, getSvgStyle, getSystemLanguage, getTransformToElement, getViewBox, getXmllang, getXmlspace, getZoomAndPan, hasExtension, querySelector, querySelectorAll, removeEventListener, removeEventListener, setXmllang, setXmlspace, setZoomAndPan
at, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAt
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
blur, click, focus, getAccessKey, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getBoundingClientRect, getChildElementCount, getChildren, getClassList, getClassName, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getContentEditable, getDataset, getDir, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getId, getInnerHTML, getInnerText, getLang, getLastElementChild, getNextElementSibling, getOffsetHeight, getOffsetLeft, getOffsetParent, getOffsetTop, getOffsetWidth, getOnabort, getOnbeforecopy, getOnbeforecut, getOnbeforepaste, getOnblur, getOnchange, getOnclick, getOncontextmenu, getOncopy, getOncut, getOndblclick, getOndrag, getOndragend, getOndragenter, getOndragleave, getOndragover, getOndragstart, getOndrop, getOnerror, getOnfocus, getOninput, getOninvalid, getOnkeydown, getOnkeypress, getOnkeyup, getOnload, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnmousewheel, getOnpaste, getOnreset, getOnscroll, getOnsearch, getOnselect, getOnselectstart, getOnsubmit, getOntouchcancel, getOntouchend, getOntouchmove, getOntouchstart, getOnwebkitfullscreenchange, getOnwebkitfullscreenerror, getOuterHTML, getOuterText, getPreviousElementSibling, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getStyle, getTabIndex, getTagName, getTitle, getWebkitdropzone, getWebkitRegionOverflow, hasAttribute, hasAttributeNS, insertAdjacentElement, insertAdjacentHTML, insertAdjacentText, isContentEditable, isDraggable, isHidden, isSpellcheck, isTranslate, querySelector, querySelectorAll, removeAttribute, removeAttributeNode, removeAttributeNS, scrollByLines, scrollByPages, scrollIntoView, scrollIntoView, scrollIntoViewIfNeeded, scrollIntoViewIfNeeded, setAccessKey, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setClassName, setContentEditable, setDir, setDraggable, setHidden, setId, setInnerHTML, setInnerText, setLang, setOnabort, setOnbeforecopy, setOnbeforecut, setOnbeforepaste, setOnblur, setOnchange, setOnclick, setOncontextmenu, setOncopy, setOncut, setOndblclick, setOndrag, setOndragend, setOndragenter, setOndragleave, setOndragover, setOndragstart, setOndrop, setOnerror, setOnfocus, setOninput, setOninvalid, setOnkeydown, setOnkeypress, setOnkeyup, setOnload, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnmousewheel, setOnpaste, setOnreset, setOnscroll, setOnsearch, setOnselect, setOnselectstart, setOnsubmit, setOntouchcancel, setOntouchend, setOntouchmove, setOntouchstart, setOnwebkitfullscreenchange, setOnwebkitfullscreenerror, setOuterHTML, setOuterText, setScrollLeft, setScrollTop, setSpellcheck, setTabIndex, setTitle, setTranslate, setWebkitdropzone, webkitMatchesSelector, webkitRequestFullscreen, webkitRequestFullScreen
addEventListener, addEventListener, appendChild, cloneNode, compareDocumentPosition, contains, dispatchEvent, getAttributes, getBaseURI, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousSibling, getTextContent, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, removeEventListener, removeEventListener, replaceChild, setNodeValue, setPrefix, setTextContent
intAt, length
numberAt
public final boolean isAutofocus()
ButtonElement
isAutofocus
in interface ButtonElement
public final void setAutofocus(boolean param_autofocus)
setAutofocus
in interface ButtonElement
public final boolean isDisabled()
ButtonElement
isDisabled
in interface ButtonElement
public final void setDisabled(boolean param_disabled)
setDisabled
in interface ButtonElement
public final JsFormElement getForm()
ButtonElement
The form that this button is associated with. If the button is a descendant of a form element, then this attribute is the ID of that form element.
If the button is not a descendant of a form element, then:
getForm
in interface ButtonElement
public final String getFormAction()
ButtonElement
action
attribute of the <form>
element that owns this element.getFormAction
in interface ButtonElement
public final void setFormAction(String param_formAction)
setFormAction
in interface ButtonElement
public final String getFormEnctype()
getFormEnctype
in interface ButtonElement
public final void setFormEnctype(String param_formEnctype)
setFormEnctype
in interface ButtonElement
public final String getFormMethod()
ButtonElement
method
attribute of the <form>
element that owns this element.getFormMethod
in interface ButtonElement
public final void setFormMethod(String param_formMethod)
setFormMethod
in interface ButtonElement
public final boolean isFormNoValidate()
ButtonElement
enctype
attribute of the <form>
element that owns this element.isFormNoValidate
in interface ButtonElement
public final void setFormNoValidate(boolean param_formNoValidate)
setFormNoValidate
in interface ButtonElement
public final String getFormTarget()
ButtonElement
target
attribute of the <form>
element that owns this element.getFormTarget
in interface ButtonElement
public final void setFormTarget(String param_formTarget)
setFormTarget
in interface ButtonElement
public final JsNodeList getLabels()
ButtonElement
<label>
elements that are labels for this button.getLabels
in interface ButtonElement
public final String getName()
ButtonElement
getName
in interface ButtonElement
public final void setName(String param_name)
setName
in interface ButtonElement
public final String getType()
ButtonElement
Indicates the behavior of the button. This is an enumerated attribute with the following possible values:
submit
: The button submits the form. This is the default value if the attribute is not specified,
HTML5 or if it is dynamically changed to an empty or invalid value.reset
: The button resets the form.button
: The button does nothing.getType
in interface ButtonElement
public final String getValidationMessage()
ButtonElement
getValidationMessage
in interface ButtonElement
public final JsValidityState getValidity()
ButtonElement
getValidity
in interface ButtonElement
public final String getValue()
ButtonElement
getValue
in interface ButtonElement
public final void setValue(String param_value)
setValue
in interface ButtonElement
public final boolean isWillValidate()
ButtonElement
isWillValidate
in interface ButtonElement
public final boolean checkValidity()
ButtonElement
checkValidity
in interface ButtonElement
public final void setCustomValidity(String error)
ButtonElement
setCustomValidity
in interface ButtonElement
Copyright © 2016. All rights reserved.