public class HTMLTextAreaElement extends FormField
HTMLTextAreaElement
.HTMLElement.ProxyDomNode
BEHAVIOR_ID_CLIENT_CAPS, BEHAVIOR_ID_DOWNLOAD, BEHAVIOR_ID_HOMEPAGE
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
Constructor and Description |
---|
HTMLTextAreaElement()
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getCols()
Returns the number of columns in this text area.
|
String |
getDataFld()
Returns the
dataFld attribute. |
String |
getDataFormatAs()
Returns the
dataFormatAs attribute. |
String |
getDataSrc()
Returns the
dataSrc attribute. |
String |
getDefaultValue()
Returns the textarea's default value, used if the containing form gets reset.
|
Object |
getMaxLength()
Returns the maximum number of characters in this text area.
|
String |
getPlaceholder()
Returns the
placeholder attribute. |
boolean |
getReadOnly()
Gets the value of
readOnly attribute. |
int |
getRows()
Returns the number of rows in this text area.
|
int |
getSelectionEnd()
Gets the value of
selectionEnd attribute. |
int |
getSelectionStart()
Gets the value of
selectionStart attribute. |
int |
getTextLength()
Gets the value of
textLength attribute. |
String |
getType()
Returns the type of this input.
|
String |
getValue()
Returns the value of the
value attribute. |
void |
select()
Selects this element.
|
void |
setCols(String cols)
Sets the number of columns in this text area.
|
void |
setDataFld(String dataFld)
Sets the
dataFld attribute. |
void |
setDataFormatAs(String dataFormatAs)
Sets the
dataFormatAs attribute. |
void |
setDataSrc(String dataSrc)
Sets the
dataSrc attribute. |
void |
setDefaultValue(String defaultValue)
Sets the textarea's default value, used if the containing form gets reset.
|
void |
setMaxLength(String maxLength)
Sets maximum number of characters in this text area.
|
void |
setPlaceholder(String placeholder)
Sets the
placeholder attribute. |
void |
setReadOnly(boolean readOnly)
Sets the value of
readOnly attribute. |
void |
setRows(String rows)
Sets the number of rows in this text area.
|
void |
setSelectionEnd(int end)
Sets the value of
selectionEnd attribute. |
void |
setSelectionRange(int start,
int end)
Sets the selected portion of this input element.
|
void |
setSelectionStart(int start)
Sets the value of
selectionStart attribute. |
void |
setValue(String value)
Sets the value of the
value attribute. |
getDisabled, getName, getOnchange, setDisabled, setDomNode, setName, setOnchange
addBehavior, addComponentRequest, blur, clearAttributes, clearComponentRequest, click, compareVersions, createTextRange, doComponentRequest, doScroll, fixAttributeName, focus, get, getAccessKey, getAlign, getAll, getAttributeNode, getAttributeNodeNS, getAvailHeight, getAvailWidth, getBoundingClientRect, getBufferDepth, getCh, getChildren, getChOff, getClassList, getClassName_js, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getColorDepth, getComponentVersion, getConnectionType, getContentEditable, getCookieEnabled, getCpuClass, getDataset, getDefaultStyleDisplay, getDir, getDocument, getDomNodeOrDie, getDomNodeOrNull, getElementsByClassName, getFilters, getHeight, getId, getInnerHTML, getInnerText, getIsContentEditable, getJavaEnabled, getLang, getLanguage, getLocalName, getNodeName, getOffsetHeight, getOffsetLeft, getOffsetParent_js, getOffsetTop, getOffsetWidth, getOnsubmit, getOuterHTML, getParentElement, getParentHTMLElement, getPlatform, getPosX, getPosY, getPrefix, getScopeName, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getSpellcheck, getSystemLanguage, getTabIndex, getTagUrn, getTitle, getUniqueID, getUserLanguage, getVAlign, getWidth, getWidthOrHeight, getWithFallback, hasAttribute, insertAdjacentElement, insertAdjacentHTML, insertAdjacentText, isAncestorOfEventTarget, isComponentInstalled, isEndTagForbidden, isHomePage, isLowerCaseInOuterHtml, mergeAttributes, navigateHomePage, parseHtmlSnippet, querySelector, querySelectorAll, readAttributes, releaseCapture, removeAttributeNode, removeBehavior, removeExpression, removeNode, scrollIntoView, setAccessKey, setActive, setAlign, setAttribute, setCapture, setCh, setChOff, setClassName_js, setColorAttribute, setContentEditable, setDir, setExpression, setHomePage, setId, setInnerHTML, setInnerText, setInnerTextImpl, setLang, setLanguage, setOnsubmit, setOuterHTML, setScrollLeft, setScrollTop, setSpellcheck, setTabIndex, setTagUrn, setTextContent, setTitle, setVAlign, setWidthOrHeight, startDownload, toString
createAttributesObject, createEventHandler, getAttribute, getAttributeNS, getAttributes, getBaseURI, getChildElementCount, getCurrentStyle, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getLastElementChild, getNextElementSibling, getPreviousElementSibling, getRuntimeStyle, getStyle, getTagName, hasAttributeNS, removeAttribute, removeAttributeNS, selectNodes, selectSingleNode, setAttributeNode, setAttributeNS, setDefaults
fireEvent, getOnblur, getOnclick, getOncontextmenu, getOndblclick, getOnerror, getOnfocus, getOnfocusin, getOnfocusout, getOninput, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnpropertychange, getOnresize, setOnblur, setOnclick, setOncontextmenu, setOndblclick, setOnerror, setOnfocus, setOnfocusin, setOnfocusout, setOninput, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnpropertychange, setOnresize
appendChild, asJavaScriptException, attachEvent, cloneNode, compareDocumentPosition, contains, detachEvent, getBaseName, getChildNodes, getFirstChild, getJavaScriptNode, getLastChild, getNamespaceURI, getNextSibling, getNodeType, getNodeValue, getOwnerDocument, getParent, getParentNode, getPreviousSibling, getTextContent, getXml, hasChildNodes, insertBefore, insertBeforeImpl, isSameNode, normalize, removeChild, replaceChild, setNodeValue
addEventListener, clearEventListenersContainer, dispatchEvent, executeEventLocally, fireEvent, getEventHandler, getEventHandlerProp, getEventListenersContainer, hasEventHandlers, removeEventListener, setEventHandler, setEventHandlerProp
clone, equivalentValues, getBrowserVersion, getDefaultValue, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setHtmlElement
defineFunctionProperties, defineProperty, getClassName, setClassName, setParentScope
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, size
public String getType()
public String getValue()
value
attribute.public void setValue(String value)
value
attribute.public int getCols()
public void setCols(String cols)
cols
- the number of columns in this text areapublic int getRows()
public void setRows(String rows)
rows
- the number of rows in this text areapublic String getDefaultValue()
public void setDefaultValue(String defaultValue)
defaultValue
- the textarea's default value, used if the containing form gets resetpublic int getTextLength()
textLength
attribute.public int getSelectionStart()
selectionStart
attribute.public void setSelectionStart(int start)
selectionStart
attribute.start
- selection startpublic int getSelectionEnd()
selectionEnd
attribute.public void setSelectionEnd(int end)
selectionEnd
attribute.end
- selection endpublic void setSelectionRange(int start, int end)
start
- the index of the first character to selectend
- the index of the character after the selectionpublic void select()
public boolean getReadOnly()
readOnly
attribute.public void setReadOnly(boolean readOnly)
readOnly
attribute.readOnly
- the new valuepublic String getDataFld()
dataFld
attribute.dataFld
attributepublic void setDataFld(String dataFld)
dataFld
attribute.dataFld
- dataFld
attributepublic String getDataFormatAs()
dataFormatAs
attribute.dataFormatAs
attributepublic void setDataFormatAs(String dataFormatAs)
dataFormatAs
attribute.dataFormatAs
- dataFormatAs
attributepublic String getDataSrc()
dataSrc
attribute.dataSrc
attributepublic void setDataSrc(String dataSrc)
dataSrc
attribute.dataSrc
- dataSrc
attributepublic Object getMaxLength()
public void setMaxLength(String maxLength)
maxLength
- maximum number of characters in this text area.public String getPlaceholder()
placeholder
attribute.placeholder
attributepublic void setPlaceholder(String placeholder)
placeholder
attribute.placeholder
- the new placeholder
valueCopyright © 2002–2016 Gargoyle Software Inc.. All rights reserved.