
public class JsTextAreaElement extends JsElement implements TextAreaElement
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 |
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, 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 boolean isAutofocus()
TextAreaElementautofocus
HTML attribute, indicating that the control should have input focus when the page loadsisAutofocus in interface TextAreaElementpublic final void setAutofocus(boolean param_autofocus)
setAutofocus in interface TextAreaElementpublic final int getCols()
TextAreaElementcols
HTML attribute, indicating the visible width of the text area.getCols in interface TextAreaElementpublic final void setCols(int param_cols)
setCols in interface TextAreaElementpublic final String getDefaultValue()
TextAreaElementgetDefaultValue in interface TextAreaElementpublic final void setDefaultValue(String param_defaultValue)
setDefaultValue in interface TextAreaElementpublic final String getDirName()
getDirName in interface TextAreaElementpublic final void setDirName(String param_dirName)
setDirName in interface TextAreaElementpublic final boolean isDisabled()
TextAreaElementdisabled
HTML attribute, indicating that the control is not available for interaction.isDisabled in interface TextAreaElementpublic final void setDisabled(boolean param_disabled)
setDisabled in interface TextAreaElementpublic final JsFormElement getForm()
TextAreaElementThe containing form element, if this element is in a form. If this element is not contained in a form element:
getForm in interface TextAreaElementpublic final JsNodeList getLabels()
TextAreaElement<label>
elements that are labels for this element.getLabels in interface TextAreaElementpublic final int getMaxLength()
TextAreaElementmaxlength
HTML attribute, indicating the maximum number of characters the user can enter. This constraint is evaluated only when the value changes.getMaxLength in interface TextAreaElementpublic final void setMaxLength(int param_maxLength)
setMaxLength in interface TextAreaElementpublic final String getName()
TextAreaElementname
HTML attribute, containing the name of the control.getName in interface TextAreaElementpublic final void setName(String param_name)
setName in interface TextAreaElementpublic final String getPlaceholder()
TextAreaElementplaceholder
HTML attribute, containing a hint to the user about what to enter in the control.getPlaceholder in interface TextAreaElementpublic final void setPlaceholder(String param_placeholder)
setPlaceholder in interface TextAreaElementpublic final boolean isReadOnly()
TextAreaElementreadonly
HTML attribute, indicating that the user cannot modify the value of the control.isReadOnly in interface TextAreaElementpublic final void setReadOnly(boolean param_readOnly)
setReadOnly in interface TextAreaElementpublic final boolean isRequired()
TextAreaElementrequired
HTML attribute, indicating that the user must specify a value before submitting the form.isRequired in interface TextAreaElementpublic final void setRequired(boolean param_required)
setRequired in interface TextAreaElementpublic final int getRows()
TextAreaElementrows
HTML attribute, indicating the number of visible text lines for the control.getRows in interface TextAreaElementpublic final void setRows(int param_rows)
setRows in interface TextAreaElementpublic final String getSelectionDirection()
TextAreaElementgetSelectionDirection in interface TextAreaElementpublic final void setSelectionDirection(String param_selectionDirection)
setSelectionDirection in interface TextAreaElementpublic final int getSelectionEnd()
TextAreaElementgetSelectionEnd in interface TextAreaElementpublic final void setSelectionEnd(int param_selectionEnd)
setSelectionEnd in interface TextAreaElementpublic final int getSelectionStart()
TextAreaElementgetSelectionStart in interface TextAreaElementpublic final void setSelectionStart(int param_selectionStart)
setSelectionStart in interface TextAreaElementpublic final int getTextLength()
TextAreaElementgetTextLength in interface TextAreaElementpublic final String getType()
TextAreaElementtextarea.getType in interface TextAreaElementpublic final String getValidationMessage()
TextAreaElementgetValidationMessage in interface TextAreaElementpublic final JsValidityState getValidity()
TextAreaElementgetValidity in interface TextAreaElementpublic final String getValue()
TextAreaElementgetValue in interface TextAreaElementpublic final void setValue(String param_value)
setValue in interface TextAreaElementpublic final boolean isWillValidate()
TextAreaElementisWillValidate in interface TextAreaElementpublic final String getWrap()
TextAreaElementwrap
HTML attribute, indicating how the control wraps text.getWrap in interface TextAreaElementpublic final void setWrap(String param_wrap)
setWrap in interface TextAreaElementpublic final boolean checkValidity()
TextAreaElementinvalid 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 TextAreaElementpublic final void select()
TextAreaElementselect in interface TextAreaElementpublic final void setCustomValidity(String error)
TextAreaElementsetCustomValidity in interface TextAreaElementpublic final void setSelectionRange(int start,
int end)
TextAreaElementselectionStart 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 TextAreaElementpublic final void setSelectionRange(int start,
int end,
String direction)
TextAreaElementselectionStart 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 TextAreaElementCopyright © 2016. All rights reserved.