public class JsTextAreaElement extends JsElement implements TextAreaElement
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 |
JsTextAreaElement() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkValidity()
Returns false if the button is a candidate for constraint validation, and it does not satisfy its constraints.
|
int |
getCols()
Reflects the
cols
HTML attribute, indicating the visible width of the text area. |
String |
getDefaultValue()
The control's default value, which behaves like the textContent property.
|
String |
getDirName() |
JsFormElement |
getForm()
The containing form element, if this element is in a form.
|
JsNodeList |
getLabels()
A list of
<label>
elements that are labels for this element. |
int |
getMaxLength()
Reflects the
maxlength
HTML attribute, indicating the maximum number of characters the user can enter. |
String |
getName()
Reflects
name
HTML attribute, containing the name of the control. |
String |
getPlaceholder()
Reflects the
placeholder
HTML attribute, containing a hint to the user about what to enter in the control. |
int |
getRows()
Reflects the
rows
HTML attribute, indicating the number of visible text lines for 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 |
getTextLength()
The codepoint length of the control's value.
|
String |
getType()
The string
textarea . |
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()
The raw value contained in the control.
|
String |
getWrap()
Reflects the
wrap
HTML attribute, indicating how the control wraps text. |
boolean |
isAutofocus()
Reflects the
autofocus
HTML attribute, indicating that the control should have input focus when the page loads |
boolean |
isDisabled()
Reflects the
disabled
HTML attribute, indicating that the control is not available for interaction. |
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 specify a value before submitting the form. |
boolean |
isWillValidate()
Indicates whether the element is a candidate for constraint validation.
|
void |
select()
Selects the contents of the control.
|
void |
setAutofocus(boolean param_autofocus) |
void |
setCols(int param_cols) |
void |
setCustomValidity(String error)
Sets a custom validity message for the element.
|
void |
setDefaultValue(String param_defaultValue) |
void |
setDirName(String param_dirName) |
void |
setDisabled(boolean param_disabled) |
void |
setMaxLength(int param_maxLength) |
void |
setName(String param_name) |
void |
setPlaceholder(String param_placeholder) |
void |
setReadOnly(boolean param_readOnly) |
void |
setRequired(boolean param_required) |
void |
setRows(int param_rows) |
void |
setSelectionDirection(String param_selectionDirection) |
void |
setSelectionEnd(int param_selectionEnd) |
void |
setSelectionRange(int start,
int end)
Selects a range of text, and sets
selectionStart and selectionEnd . |
void |
setSelectionRange(int start,
int end,
String direction)
Selects a range of text, and sets
selectionStart and selectionEnd . |
void |
setSelectionStart(int param_selectionStart) |
void |
setValue(String param_value) |
void |
setWrap(String param_wrap) |
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()
TextAreaElement
autofocus
HTML attribute, indicating that the control should have input focus when the page loadsisAutofocus
in interface TextAreaElement
public final void setAutofocus(boolean param_autofocus)
setAutofocus
in interface TextAreaElement
public final int getCols()
TextAreaElement
cols
HTML attribute, indicating the visible width of the text area.getCols
in interface TextAreaElement
public final void setCols(int param_cols)
setCols
in interface TextAreaElement
public final String getDefaultValue()
TextAreaElement
getDefaultValue
in interface TextAreaElement
public final void setDefaultValue(String param_defaultValue)
setDefaultValue
in interface TextAreaElement
public final String getDirName()
getDirName
in interface TextAreaElement
public final void setDirName(String param_dirName)
setDirName
in interface TextAreaElement
public final boolean isDisabled()
TextAreaElement
disabled
HTML attribute, indicating that the control is not available for interaction.isDisabled
in interface TextAreaElement
public final void setDisabled(boolean param_disabled)
setDisabled
in interface TextAreaElement
public final JsFormElement getForm()
TextAreaElement
The containing form element, if this element is in a form. If this element is not contained in a form element:
getForm
in interface TextAreaElement
public final JsNodeList getLabels()
TextAreaElement
<label>
elements that are labels for this element.getLabels
in interface TextAreaElement
public final int getMaxLength()
TextAreaElement
maxlength
HTML attribute, indicating the maximum number of characters the user can enter. This constraint is evaluated only when the value changes.getMaxLength
in interface TextAreaElement
public final void setMaxLength(int param_maxLength)
setMaxLength
in interface TextAreaElement
public final String getName()
TextAreaElement
name
HTML attribute, containing the name of the control.getName
in interface TextAreaElement
public final void setName(String param_name)
setName
in interface TextAreaElement
public final String getPlaceholder()
TextAreaElement
placeholder
HTML attribute, containing a hint to the user about what to enter in the control.getPlaceholder
in interface TextAreaElement
public final void setPlaceholder(String param_placeholder)
setPlaceholder
in interface TextAreaElement
public final boolean isReadOnly()
TextAreaElement
readonly
HTML attribute, indicating that the user cannot modify the value of the control.isReadOnly
in interface TextAreaElement
public final void setReadOnly(boolean param_readOnly)
setReadOnly
in interface TextAreaElement
public final boolean isRequired()
TextAreaElement
required
HTML attribute, indicating that the user must specify a value before submitting the form.isRequired
in interface TextAreaElement
public final void setRequired(boolean param_required)
setRequired
in interface TextAreaElement
public final int getRows()
TextAreaElement
rows
HTML attribute, indicating the number of visible text lines for the control.getRows
in interface TextAreaElement
public final void setRows(int param_rows)
setRows
in interface TextAreaElement
public final String getSelectionDirection()
TextAreaElement
getSelectionDirection
in interface TextAreaElement
public final void setSelectionDirection(String param_selectionDirection)
setSelectionDirection
in interface TextAreaElement
public final int getSelectionEnd()
TextAreaElement
getSelectionEnd
in interface TextAreaElement
public final void setSelectionEnd(int param_selectionEnd)
setSelectionEnd
in interface TextAreaElement
public final int getSelectionStart()
TextAreaElement
getSelectionStart
in interface TextAreaElement
public final void setSelectionStart(int param_selectionStart)
setSelectionStart
in interface TextAreaElement
public final int getTextLength()
TextAreaElement
getTextLength
in interface TextAreaElement
public final String getType()
TextAreaElement
textarea
.getType
in interface TextAreaElement
public final String getValidationMessage()
TextAreaElement
getValidationMessage
in interface TextAreaElement
public final JsValidityState getValidity()
TextAreaElement
getValidity
in interface TextAreaElement
public final String getValue()
TextAreaElement
getValue
in interface TextAreaElement
public final void setValue(String param_value)
setValue
in interface TextAreaElement
public final boolean isWillValidate()
TextAreaElement
isWillValidate
in interface TextAreaElement
public final String getWrap()
TextAreaElement
wrap
HTML attribute, indicating how the control wraps text.getWrap
in interface TextAreaElement
public final void setWrap(String param_wrap)
setWrap
in interface TextAreaElement
public final boolean checkValidity()
TextAreaElement
invalid
event at the control. It returns true if the control is not a candidate for constraint validation, or if it satisfies its constraints.checkValidity
in interface TextAreaElement
public final void select()
TextAreaElement
select
in interface TextAreaElement
public final void setCustomValidity(String error)
TextAreaElement
setCustomValidity
in interface TextAreaElement
public final void setSelectionRange(int start, int end)
TextAreaElement
selectionStart
and selectionEnd
. If either argument is greater than the length of the value, it is treated as pointing to the end of the value. If end
is less than start
, then both are treated as the value of end
.setSelectionRange
in interface TextAreaElement
public final void setSelectionRange(int start, int end, String direction)
TextAreaElement
selectionStart
and selectionEnd
. If either argument is greater than the length of the value, it is treated as pointing to the end of the value. If end
is less than start
, then both are treated as the value of end
.setSelectionRange
in interface TextAreaElement
Copyright © 2018. All rights reserved.