
public class JsInputElement extends JsElement implements InputElement
ALLOW_KEYBOARD_INPUTATTRIBUTE_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_NODESVG_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, webkitRequestFullScreenappendChild, 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, setTextContentaddEventListener, 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, setZoomAndPanat, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAtcast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toStringblur, 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, webkitRequestFullScreenaddEventListener, 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, setTextContentintAt, lengthnumberAtpublic final String getAccept()
InputElementaccept
HTML attribute, containing comma-separated list of file types accepted by the server when type is file.getAccept in interface InputElementpublic final void setAccept(String param_accept)
setAccept in interface InputElementpublic final String getAlign()
InputElementgetAlign in interface InputElementpublic final void setAlign(String param_align)
setAlign in interface InputElementpublic final String getAlt()
InputElementalt
HTML attribute, containing alternative text to use when type is image.getAlt in interface InputElementpublic final void setAlt(String param_alt)
setAlt in interface InputElementpublic final String getAutocomplete()
InputElementgetAutocomplete in interface InputElementpublic final void setAutocomplete(String param_autocomplete)
setAutocomplete in interface InputElementpublic final boolean isAutofocus()
InputElementautofocus
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 InputElementpublic final void setAutofocus(boolean param_autofocus)
setAutofocus in interface InputElementpublic final boolean isChecked()
InputElementcheckbox or radio.isChecked in interface InputElementpublic final void setChecked(boolean param_checked)
setChecked in interface InputElementpublic final boolean isDefaultChecked()
InputElementisDefaultChecked in interface InputElementpublic final void setDefaultChecked(boolean param_defaultChecked)
setDefaultChecked in interface InputElementpublic final String getDefaultValue()
InputElementgetDefaultValue in interface InputElementpublic final void setDefaultValue(String param_defaultValue)
setDefaultValue in interface InputElementpublic final String getDirName()
getDirName in interface InputElementpublic final void setDirName(String param_dirName)
setDirName in interface InputElementpublic final boolean isDisabled()
InputElementdisabled
HTML attribute, indicating that the control is not available for interaction.isDisabled in interface InputElementpublic final void setDisabled(boolean param_disabled)
setDisabled in interface InputElementpublic final JsFileList getFiles()
InputElementgetFiles in interface InputElementpublic final void setFiles(FileList param_files)
setFiles in interface InputElementpublic final JsFormElement getForm()
InputElementThe containing form element, if this element is in a form. If this element is not contained in a form element:
getForm in interface InputElementpublic final String getFormAction()
InputElementformaction
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 InputElementpublic final void setFormAction(String param_formAction)
setFormAction in interface InputElementpublic final String getFormEnctype()
getFormEnctype in interface InputElementpublic final void setFormEnctype(String param_formEnctype)
setFormEnctype in interface InputElementpublic final String getFormMethod()
InputElementformmethod
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 InputElementpublic final void setFormMethod(String param_formMethod)
setFormMethod in interface InputElementpublic final boolean isFormNoValidate()
InputElementformnovalidate
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 InputElementpublic final void setFormNoValidate(boolean param_formNoValidate)
setFormNoValidate in interface InputElementpublic final String getFormTarget()
InputElementformtarget
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 InputElementpublic final void setFormTarget(String param_formTarget)
setFormTarget in interface InputElementpublic final int getHeight()
InputElementheight
HTML attribute, which defines the height of the image displayed for the button, if the value of type is image.getHeight in interface InputElementpublic final void setHeight(int param_height)
setHeight in interface InputElementpublic final boolean isIncremental()
isIncremental in interface InputElementpublic final void setIncremental(boolean param_incremental)
setIncremental in interface InputElementpublic final boolean isIndeterminate()
InputElementisIndeterminate in interface InputElementpublic final void setIndeterminate(boolean param_indeterminate)
setIndeterminate in interface InputElementpublic final JsNodeList getLabels()
InputElement<label>
elements that are labels for this element.getLabels in interface InputElementpublic final String getMax()
InputElementmax
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 InputElementpublic final void setMax(String param_max)
setMax in interface InputElementpublic final int getMaxLength()
InputElementReflects 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 InputElementpublic final void setMaxLength(int param_maxLength)
setMaxLength in interface InputElementpublic final String getMin()
InputElementmin
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 InputElementpublic final void setMin(String param_min)
setMin in interface InputElementpublic final boolean isMultiple()
InputElementmultiple
HTML attribute, indicating whether more than one value is possible (e.g., multiple files).isMultiple in interface InputElementpublic final void setMultiple(boolean param_multiple)
setMultiple in interface InputElementpublic final String getName()
InputElementname
HTML attribute, containing a name that identifies the element when submitting the form.getName in interface InputElementpublic final void setName(String param_name)
setName in interface InputElementpublic final EventListener getOnwebkitspeechchange()
getOnwebkitspeechchange in interface InputElementpublic final void setOnwebkitspeechchange(EventListener listener)
setOnwebkitspeechchange in interface InputElementpublic final String getPattern()
InputElementpattern
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 InputElementpublic final void setPattern(String param_pattern)
setPattern in interface InputElementpublic final String getPlaceholder()
InputElementplaceholder
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 InputElementpublic final void setPlaceholder(String param_placeholder)
setPlaceholder in interface InputElementpublic final boolean isReadOnly()
InputElementReflects 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 InputElementpublic final void setReadOnly(boolean param_readOnly)
setReadOnly in interface InputElementpublic final boolean isRequired()
InputElementrequired
HTML attribute, indicating that the user must fill in a value before submitting a form.isRequired in interface InputElementpublic final void setRequired(boolean param_required)
setRequired in interface InputElementpublic final String getSelectionDirection()
InputElementgetSelectionDirection in interface InputElementpublic final void setSelectionDirection(String param_selectionDirection)
setSelectionDirection in interface InputElementpublic final int getSelectionEnd()
InputElementgetSelectionEnd in interface InputElementpublic final void setSelectionEnd(int param_selectionEnd)
setSelectionEnd in interface InputElementpublic final int getSelectionStart()
InputElementgetSelectionStart in interface InputElementpublic final void setSelectionStart(int param_selectionStart)
setSelectionStart in interface InputElementpublic final int getSize()
InputElementsize
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 InputElementpublic final void setSize(int param_size)
setSize in interface InputElementpublic final String getSrc()
InputElementsrc
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 InputElementpublic final void setSrc(String param_src)
setSrc in interface InputElementpublic final String getStep()
InputElementstep
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 InputElementpublic final void setStep(String param_step)
setStep in interface InputElementpublic final String getType()
InputElementtype
HTML attribute, indicating the type of control to display. See
type
attribute of <input>
for possible values.getType in interface InputElementpublic final void setType(String param_type)
setType in interface InputElementpublic final String getUseMap()
InputElementgetUseMap in interface InputElementpublic final void setUseMap(String param_useMap)
setUseMap in interface InputElementpublic final String getValidationMessage()
InputElementgetValidationMessage in interface InputElementpublic final JsValidityState getValidity()
InputElementgetValidity in interface InputElementpublic final String getValue()
InputElementgetValue in interface InputElementpublic final void setValue(String param_value)
setValue in interface InputElementpublic final Date getValueAsDate()
InputElementnull if conversion is not possible.getValueAsDate in interface InputElementpublic final void setValueAsDate(Date param_valueAsDate)
setValueAsDate in interface InputElementpublic final double getValueAsNumber()
InputElementThe value of the element, interpreted as one of the following in order:
null if conversion is not possiblegetValueAsNumber in interface InputElementpublic final void setValueAsNumber(double param_valueAsNumber)
setValueAsNumber in interface InputElementpublic final boolean isWebkitGrammar()
isWebkitGrammar in interface InputElementpublic final void setWebkitGrammar(boolean param_webkitGrammar)
setWebkitGrammar in interface InputElementpublic final boolean isWebkitSpeech()
isWebkitSpeech in interface InputElementpublic final void setWebkitSpeech(boolean param_webkitSpeech)
setWebkitSpeech in interface InputElementpublic final boolean isWebkitdirectory()
isWebkitdirectory in interface InputElementpublic final void setWebkitdirectory(boolean param_webkitdirectory)
setWebkitdirectory in interface InputElementpublic final int getWidth()
InputElementwidth
HTML attribute, which defines the width of the image displayed for the button, if the value of type is image.getWidth in interface InputElementpublic final void setWidth(int param_width)
setWidth in interface InputElementpublic final boolean isWillValidate()
InputElementisWillValidate in interface InputElementpublic final boolean checkValidity()
InputElementinvalid 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 InputElementpublic final void select()
InputElementselect in interface InputElementpublic final void setCustomValidity(String error)
InputElementsetCustomValidity in interface InputElementpublic final void setSelectionRange(int start,
int end)
InputElementselectionDirection 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 InputElementpublic final void setSelectionRange(int start,
int end,
String direction)
InputElementselectionDirection 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 InputElementpublic final void stepDown()
InputElementDecrements the value by (step * n), where n defaults to 1 if not specified. Throws an INVALID_STATE_ERR exception:
stepDown in interface InputElementpublic final void stepDown(int n)
InputElementDecrements the value by (step * n), where n defaults to 1 if not specified. Throws an INVALID_STATE_ERR exception:
stepDown in interface InputElementpublic final void stepUp()
InputElementIncrements the value by (step * n), where n defaults to 1 if not specified. Throws an INVALID_STATE_ERR exception:
stepUp in interface InputElementpublic final void stepUp(int n)
InputElementIncrements the value by (step * n), where n defaults to 1 if not specified. Throws an INVALID_STATE_ERR exception:
stepUp in interface InputElementCopyright © 2016. All rights reserved.