public class JsInputElement extends JsElement implements InputElement
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 |
JsInputElement() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkValidity()
Returns false if the element is a candidate for constraint validation, and it does not satisfy its constraints.
|
String |
getAccept()
Reflects the
accept
HTML attribute, containing comma-separated list of file types accepted by the server when type is file . |
String |
getAlign()
Alignment of the element.
|
String |
getAlt()
Reflects the
alt
HTML attribute, containing alternative text to use when type is image. |
String |
getAutocomplete()
Reflects the {{htmlattrxref("autocomplete", "input)}} HTML attribute, indicating whether the value of the control can be automatically completed by the browser.
|
String |
getDefaultValue()
The default value as originally specified in HTML that created this object.
|
String |
getDirName() |
JsFileList |
getFiles()
A list of selected files.
|
JsFormElement |
getForm()
The containing form element, if this element is in a form.
|
String |
getFormAction()
Reflects the
formaction
HTML attribute, containing the URI of a program that processes information submitted by the element. |
String |
getFormEnctype() |
String |
getFormMethod()
Reflects the
formmethod
HTML attribute, containing the HTTP method that the browser uses to submit the form. |
String |
getFormTarget()
Reflects the
formtarget
HTML attribute, containing a name or keyword indicating where to display the response that is received after submitting the form. |
int |
getHeight()
Reflects the
height
HTML attribute, which defines the height of the image displayed for the button, if the value of type is image. |
JsNodeList |
getLabels()
A list of
<label>
elements that are labels for this element. |
String |
getMax()
Reflects the
max
HTML attribute, containing the maximum (numeric or date-time) value for this item, which must not be less than its minimum (min attribute) value. |
int |
getMaxLength()
Reflects the
maxlength
HTML attribute, containing the maximum length of text (in Unicode code points) that the value can be changed to. |
String |
getMin()
Reflects the
min
HTML attribute, containing the minimum (numeric or date-time) value for this item, which must not be greater than its maximum (max attribute) value. |
String |
getName()
Reflects the
name
HTML attribute, containing a name that identifies the element when submitting the form. |
EventListener |
getOnwebkitspeechchange() |
String |
getPattern()
Reflects the
pattern
HTML attribute, containing a regular expression that the control's value is checked against. |
String |
getPlaceholder()
Reflects the
placeholder
HTML attribute, containing a hint to the user of what can be entered in the control. |
String |
getSelectionDirection()
The direction in which selection occurred.
|
int |
getSelectionEnd()
The index of the end of selected text.
|
int |
getSelectionStart()
The index of the beginning of selected text.
|
int |
getSize()
Reflects the
size
HTML attribute, containing size of the control. |
String |
getSrc()
Reflects the
src
HTML attribute, which specifies a URI for the location of an image to display on the graphical submit button, if the value of type is image; otherwise it is ignored. |
String |
getStep()
Reflects the
step
HTML attribute, which works with min and max to limit the increments at which a numeric or date-time value can be set. |
String |
getType()
Reflects the
type
HTML attribute, indicating the type of control to display. |
String |
getUseMap()
A client-side image map.
|
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 element is in.
|
String |
getValue()
Current value in the control.
|
Date |
getValueAsDate()
The value of the element, interpreted as a date, or
null if conversion is not possible. |
double |
getValueAsNumber()
The value of the element, interpreted as one of the following in order:
|
int |
getWidth()
Reflects the
width
HTML attribute, which defines the width of the image displayed for the button, if the value of type is image. |
boolean |
isAutofocus()
Reflects the
autofocus
HTML attribute, which specifies that a form control should have input focus when the page loads, unless the user overrides it, for example by typing in a different control. |
boolean |
isChecked()
The current state of the element when type is
checkbox or radio . |
boolean |
isDefaultChecked()
The default state of a radio button or checkbox as originally specified in HTML that created this object.
|
boolean |
isDisabled()
Reflects the
disabled
HTML attribute, indicating that the control is not available for interaction. |
boolean |
isFormNoValidate()
Reflects the
formnovalidate
HTML attribute, indicating that the form is not to be validated when it is submitted. |
boolean |
isIncremental() |
boolean |
isIndeterminate()
Indicates that a checkbox is neither on nor off.
|
boolean |
isMultiple()
Reflects the
multiple
HTML attribute, indicating whether more than one value is possible (e.g., multiple files). |
boolean |
isReadOnly()
Reflects the
readonly
HTML attribute, indicating that the user cannot modify the value of the control. |
boolean |
isRequired()
Reflects the
required
HTML attribute, indicating that the user must fill in a value before submitting a form. |
boolean |
isWebkitdirectory() |
boolean |
isWebkitGrammar() |
boolean |
isWebkitSpeech() |
boolean |
isWillValidate()
Indicates whether the element is a candidate for constraint validation.
|
void |
select()
Selects the input text in the element, and focuses it so the user can subsequently replace the whole entry.
|
void |
setAccept(String param_accept) |
void |
setAlign(String param_align) |
void |
setAlt(String param_alt) |
void |
setAutocomplete(String param_autocomplete) |
void |
setAutofocus(boolean param_autofocus) |
void |
setChecked(boolean param_checked) |
void |
setCustomValidity(String error)
Sets a custom validity message for the element.
|
void |
setDefaultChecked(boolean param_defaultChecked) |
void |
setDefaultValue(String param_defaultValue) |
void |
setDirName(String param_dirName) |
void |
setDisabled(boolean param_disabled) |
void |
setFiles(FileList param_files) |
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 |
setHeight(int param_height) |
void |
setIncremental(boolean param_incremental) |
void |
setIndeterminate(boolean param_indeterminate) |
void |
setMax(String param_max) |
void |
setMaxLength(int param_maxLength) |
void |
setMin(String param_min) |
void |
setMultiple(boolean param_multiple) |
void |
setName(String param_name) |
void |
setOnwebkitspeechchange(EventListener listener) |
void |
setPattern(String param_pattern) |
void |
setPlaceholder(String param_placeholder) |
void |
setReadOnly(boolean param_readOnly) |
void |
setRequired(boolean param_required) |
void |
setSelectionDirection(String param_selectionDirection) |
void |
setSelectionEnd(int param_selectionEnd) |
void |
setSelectionRange(int start,
int end)
Selects a range of text in the element (but does not focus it).
|
void |
setSelectionRange(int start,
int end,
String direction)
Selects a range of text in the element (but does not focus it).
|
void |
setSelectionStart(int param_selectionStart) |
void |
setSize(int param_size) |
void |
setSrc(String param_src) |
void |
setStep(String param_step) |
void |
setType(String param_type) |
void |
setUseMap(String param_useMap) |
void |
setValue(String param_value) |
void |
setValueAsDate(Date param_valueAsDate) |
void |
setValueAsNumber(double param_valueAsNumber) |
void |
setWebkitdirectory(boolean param_webkitdirectory) |
void |
setWebkitGrammar(boolean param_webkitGrammar) |
void |
setWebkitSpeech(boolean param_webkitSpeech) |
void |
setWidth(int param_width) |
void |
stepDown()
Decrements the value by (step *
n ), where n defaults to 1 if not specified. |
void |
stepDown(int n)
Decrements the value by (step *
n ), where n defaults to 1 if not specified. |
void |
stepUp()
Increments the value by (step *
n ), where n defaults to 1 if not specified. |
void |
stepUp(int n)
Increments the value by (step *
n ), where n defaults to 1 if not specified. |
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 String getAccept()
InputElement
accept
HTML attribute, containing comma-separated list of file types accepted by the server when type is file
.getAccept
in interface InputElement
public final void setAccept(String param_accept)
setAccept
in interface InputElement
public final String getAlign()
InputElement
getAlign
in interface InputElement
public final void setAlign(String param_align)
setAlign
in interface InputElement
public final String getAlt()
InputElement
alt
HTML attribute, containing alternative text to use when type is image.
getAlt
in interface InputElement
public final void setAlt(String param_alt)
setAlt
in interface InputElement
public final String getAutocomplete()
InputElement
getAutocomplete
in interface InputElement
public final void setAutocomplete(String param_autocomplete)
setAutocomplete
in interface InputElement
public final boolean isAutofocus()
InputElement
autofocus
HTML attribute, which specifies that a form control should have input focus when the page loads, unless the user overrides it, for example by typing in a different control. Only one form element in a document can have the autofocus attribute. It cannot be applied if the type attribute is set to hidden
(that is, you cannot automatically set focus to a hidden control).isAutofocus
in interface InputElement
public final void setAutofocus(boolean param_autofocus)
setAutofocus
in interface InputElement
public final boolean isChecked()
InputElement
checkbox
or radio
.isChecked
in interface InputElement
public final void setChecked(boolean param_checked)
setChecked
in interface InputElement
public final boolean isDefaultChecked()
InputElement
isDefaultChecked
in interface InputElement
public final void setDefaultChecked(boolean param_defaultChecked)
setDefaultChecked
in interface InputElement
public final String getDefaultValue()
InputElement
getDefaultValue
in interface InputElement
public final void setDefaultValue(String param_defaultValue)
setDefaultValue
in interface InputElement
public final String getDirName()
getDirName
in interface InputElement
public final void setDirName(String param_dirName)
setDirName
in interface InputElement
public final boolean isDisabled()
InputElement
disabled
HTML attribute, indicating that the control is not available for interaction.isDisabled
in interface InputElement
public final void setDisabled(boolean param_disabled)
setDisabled
in interface InputElement
public final JsFileList getFiles()
InputElement
getFiles
in interface InputElement
public final void setFiles(FileList param_files)
setFiles
in interface InputElement
public final JsFormElement getForm()
InputElement
The containing form element, if this element is in a form. If this element is not contained in a form element:
getForm
in interface InputElement
public final String getFormAction()
InputElement
formaction
HTML attribute, containing the URI of a program that processes information submitted by the element. If specified, this attribute overrides the
action
attribute of the <form>
element that owns this element.getFormAction
in interface InputElement
public final void setFormAction(String param_formAction)
setFormAction
in interface InputElement
public final String getFormEnctype()
getFormEnctype
in interface InputElement
public final void setFormEnctype(String param_formEnctype)
setFormEnctype
in interface InputElement
public final String getFormMethod()
InputElement
formmethod
HTML attribute, containing the HTTP method that the browser uses to submit the form. If specified, this attribute overrides the
method
attribute of the <form>
element that owns this element.getFormMethod
in interface InputElement
public final void setFormMethod(String param_formMethod)
setFormMethod
in interface InputElement
public final boolean isFormNoValidate()
InputElement
formnovalidate
HTML attribute, indicating that the form is not to be validated when it is submitted. If specified, this attribute overrides the
novalidate
attribute of the <form>
element that owns this element.isFormNoValidate
in interface InputElement
public final void setFormNoValidate(boolean param_formNoValidate)
setFormNoValidate
in interface InputElement
public final String getFormTarget()
InputElement
formtarget
HTML attribute, containing a name or keyword indicating where to display the response that is received after submitting the form. If specified, this attribute overrides the
target
attribute of the <form>
element that owns this element.getFormTarget
in interface InputElement
public final void setFormTarget(String param_formTarget)
setFormTarget
in interface InputElement
public final int getHeight()
InputElement
height
HTML attribute, which defines the height of the image displayed for the button, if the value of type is image.getHeight
in interface InputElement
public final void setHeight(int param_height)
setHeight
in interface InputElement
public final boolean isIncremental()
isIncremental
in interface InputElement
public final void setIncremental(boolean param_incremental)
setIncremental
in interface InputElement
public final boolean isIndeterminate()
InputElement
isIndeterminate
in interface InputElement
public final void setIndeterminate(boolean param_indeterminate)
setIndeterminate
in interface InputElement
public final JsNodeList getLabels()
InputElement
<label>
elements that are labels for this element.getLabels
in interface InputElement
public final String getMax()
InputElement
max
HTML attribute, containing the maximum (numeric or date-time) value for this item, which must not be less than its minimum (min attribute) value.getMax
in interface InputElement
public final void setMax(String param_max)
setMax
in interface InputElement
public final int getMaxLength()
InputElement
Reflects the
maxlength
HTML attribute, containing the maximum length of text (in Unicode code points) that the value can be changed to. The constraint is evaluated only when the value is changed
maxlength
to a negative value programmatically, an exception will be thrown.getMaxLength
in interface InputElement
public final void setMaxLength(int param_maxLength)
setMaxLength
in interface InputElement
public final String getMin()
InputElement
min
HTML attribute, containing the minimum (numeric or date-time) value for this item, which must not be greater than its maximum (max attribute) value.getMin
in interface InputElement
public final void setMin(String param_min)
setMin
in interface InputElement
public final boolean isMultiple()
InputElement
multiple
HTML attribute, indicating whether more than one value is possible (e.g., multiple files).isMultiple
in interface InputElement
public final void setMultiple(boolean param_multiple)
setMultiple
in interface InputElement
public final String getName()
InputElement
name
HTML attribute, containing a name that identifies the element when submitting the form.getName
in interface InputElement
public final void setName(String param_name)
setName
in interface InputElement
public final EventListener getOnwebkitspeechchange()
getOnwebkitspeechchange
in interface InputElement
public final void setOnwebkitspeechchange(EventListener listener)
setOnwebkitspeechchange
in interface InputElement
public final String getPattern()
InputElement
pattern
HTML attribute, containing a regular expression that the control's value is checked against. The pattern must match the entire value, not just some subset. Use the title attribute to describe the pattern to help the user. This attribute applies when the value of the type attribute is text, search, tel, url or email; otherwise it is ignored.getPattern
in interface InputElement
public final void setPattern(String param_pattern)
setPattern
in interface InputElement
public final String getPlaceholder()
InputElement
placeholder
HTML attribute, containing a hint to the user of what can be entered in the control. The placeholder text must not contain carriage returns or line-feeds. This attribute applies when the value of the type attribute is text, search, tel, url or email; otherwise it is ignored.getPlaceholder
in interface InputElement
public final void setPlaceholder(String param_placeholder)
setPlaceholder
in interface InputElement
public final boolean isReadOnly()
InputElement
Reflects the
readonly
HTML attribute, indicating that the user cannot modify the value of the control.
HTML 5 This is ignored if the value of the type attribute is hidden, range, color, checkbox, radio, file, or a button type.
isReadOnly
in interface InputElement
public final void setReadOnly(boolean param_readOnly)
setReadOnly
in interface InputElement
public final boolean isRequired()
InputElement
required
HTML attribute, indicating that the user must fill in a value before submitting a form.isRequired
in interface InputElement
public final void setRequired(boolean param_required)
setRequired
in interface InputElement
public final String getSelectionDirection()
InputElement
getSelectionDirection
in interface InputElement
public final void setSelectionDirection(String param_selectionDirection)
setSelectionDirection
in interface InputElement
public final int getSelectionEnd()
InputElement
getSelectionEnd
in interface InputElement
public final void setSelectionEnd(int param_selectionEnd)
setSelectionEnd
in interface InputElement
public final int getSelectionStart()
InputElement
getSelectionStart
in interface InputElement
public final void setSelectionStart(int param_selectionStart)
setSelectionStart
in interface InputElement
public final int getSize()
InputElement
size
HTML attribute, containing size of the control. This value is in pixels unless the value of type is text or password, in which case, it is an integer number of characters.
HTML5 Applies only when type is set to text, search, tel, url, email, or password; otherwise it is ignored.getSize
in interface InputElement
public final void setSize(int param_size)
setSize
in interface InputElement
public final String getSrc()
InputElement
src
HTML attribute, which specifies a URI for the location of an image to display on the graphical submit button, if the value of type is image; otherwise it is ignored.getSrc
in interface InputElement
public final void setSrc(String param_src)
setSrc
in interface InputElement
public final String getStep()
InputElement
step
HTML attribute, which works with min and max to limit the increments at which a numeric or date-time value can be set. It can be the string any or a positive floating point number. If this is not set to any, the control accepts only values at multiples of the step value greater than the minimum.getStep
in interface InputElement
public final void setStep(String param_step)
setStep
in interface InputElement
public final String getType()
InputElement
type
HTML attribute, indicating the type of control to display. See
type
attribute of <input>
for possible values.getType
in interface InputElement
public final void setType(String param_type)
setType
in interface InputElement
public final String getUseMap()
InputElement
getUseMap
in interface InputElement
public final void setUseMap(String param_useMap)
setUseMap
in interface InputElement
public final String getValidationMessage()
InputElement
getValidationMessage
in interface InputElement
public final JsValidityState getValidity()
InputElement
getValidity
in interface InputElement
public final String getValue()
InputElement
getValue
in interface InputElement
public final void setValue(String param_value)
setValue
in interface InputElement
public final Date getValueAsDate()
InputElement
null
if conversion is not possible.getValueAsDate
in interface InputElement
public final void setValueAsDate(Date param_valueAsDate)
setValueAsDate
in interface InputElement
public final double getValueAsNumber()
InputElement
The value of the element, interpreted as one of the following in order:
null
if conversion is not possiblegetValueAsNumber
in interface InputElement
public final void setValueAsNumber(double param_valueAsNumber)
setValueAsNumber
in interface InputElement
public final boolean isWebkitGrammar()
isWebkitGrammar
in interface InputElement
public final void setWebkitGrammar(boolean param_webkitGrammar)
setWebkitGrammar
in interface InputElement
public final boolean isWebkitSpeech()
isWebkitSpeech
in interface InputElement
public final void setWebkitSpeech(boolean param_webkitSpeech)
setWebkitSpeech
in interface InputElement
public final boolean isWebkitdirectory()
isWebkitdirectory
in interface InputElement
public final void setWebkitdirectory(boolean param_webkitdirectory)
setWebkitdirectory
in interface InputElement
public final int getWidth()
InputElement
width
HTML attribute, which defines the width of the image displayed for the button, if the value of type is image.getWidth
in interface InputElement
public final void setWidth(int param_width)
setWidth
in interface InputElement
public final boolean isWillValidate()
InputElement
isWillValidate
in interface InputElement
public final boolean checkValidity()
InputElement
invalid
event at the element. It returns true if the element is not a candidate for constraint validation, or if it satisfies its constraints.checkValidity
in interface InputElement
public final void select()
InputElement
select
in interface InputElement
public final void setCustomValidity(String error)
InputElement
setCustomValidity
in interface InputElement
public final void setSelectionRange(int start, int end)
InputElement
selectionDirection
parameter may be "forward" or "backward" to establish the direction in which selection was set, or "none"if the direction is unknown or not relevant. The default is "none". Specifying selectionDirection
sets the value of the selectionDirection
property.setSelectionRange
in interface InputElement
public final void setSelectionRange(int start, int end, String direction)
InputElement
selectionDirection
parameter may be "forward" or "backward" to establish the direction in which selection was set, or "none"if the direction is unknown or not relevant. The default is "none". Specifying selectionDirection
sets the value of the selectionDirection
property.setSelectionRange
in interface InputElement
public final void stepDown()
InputElement
Decrements the value by (step * n
), where n
defaults to 1 if not specified. Throws an INVALID_STATE_ERR exception:
stepDown
in interface InputElement
public final void stepDown(int n)
InputElement
Decrements the value by (step * n
), where n
defaults to 1 if not specified. Throws an INVALID_STATE_ERR exception:
stepDown
in interface InputElement
public final void stepUp()
InputElement
Increments the value by (step * n
), where n
defaults to 1 if not specified. Throws an INVALID_STATE_ERR exception:
stepUp
in interface InputElement
public final void stepUp(int n)
InputElement
Increments the value by (step * n
), where n
defaults to 1 if not specified. Throws an INVALID_STATE_ERR exception:
stepUp
in interface InputElement
Copyright © 2016. All rights reserved.