Class sap.ui.commons.TextAreaModule: sap/ui/commons/TextArea

extends TextField

Control to enter or display multible row text.

Deprecated API:Since version 1.38. Instead, use the sap.m.TextArea control.

Constructor Summary
new sap.ui.commons.TextArea(sId?, mSettings?)Constructor for a new TextArea.
Events borrowed from class sap.ui.commons.TextField
Events borrowed from class sap.ui.core.Control
Method Summary
sap.ui.commons.TextArea.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.commons.TextArea with name sClassName and enriches it with the information contained in oClassInfo.
sap.ui.commons.TextArea.getMetadata()Returns a metadata object for class sap.ui.commons.TextArea.
getCols()Gets current value of property cols.
getCursorPos()Gets current value of property cursorPos.
getExplanation()Gets current value of property explanation.
getHeight()Gets current value of property height.
getRows()Gets current value of property rows.
getWrapping()Gets current value of property wrapping.
setCols(iCols)Sets a new value for property cols.
setCursorPos(iCursorPos)Property setter for the cursor position
setExplanation(sExplanation)Sets a new value for property explanation.
setHeight(sHeight)Sets a new value for property height.
setMaxLength(iMaxLength)Property setter for MaxLength
setRows(iRows)Sets a new value for property rows.
setWrapping(sWrapping)Sets a new value for property wrapping.
getLabeledBy()Gets current value of property labeledBy.
setLabeledBy(sLabeledBy)Sets a new value for property labeledBy.
Constructor Detail
new sap.ui.commons.TextArea(sId?, mSettings?)
Constructor for a new TextArea.

Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.

The supported settings are:

In addition, all settings applicable to the base type sap.ui.commons.TextField can be used as well.

Parameters:
{string}sId? id for the new control, generated automatically if no id is given
{object}mSettings? initial settings for the new control
Deprecated:
Since version 1.38. Instead, use the sap.m.TextArea control.
Method Detail
sap.ui.commons.TextArea.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.commons.TextArea with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.commons.TextField.extend.

Parameters:
{string}sClassName Name of the class being created
{object}oClassInfo? Object literal with information about the class
{function}FNMetaImpl? Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata
Returns:
{function} Created class / constructor function
sap.ui.commons.TextArea.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.commons.TextArea.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
getCols(): int
Gets current value of property cols.

Number of Columns. Cols means number of characters per row. This proprty is only used if Width is not used.

Returns:
{int} Value of property cols
getCursorPos(): int
Gets current value of property cursorPos.

Position of cursor, e.g., to let the user re-start typing at the same position as before the server roundtrip

Returns:
{int} Value of property cursorPos
getExplanation(): string
Gets current value of property explanation.

text which appears, in case quick-help is switched on

Returns:
{string} Value of property explanation
getHeight(): sap.ui.core.CSSSize
Gets current value of property height.

Height of text field. When it is set (CSS-size such as % or px), this is the exact size.

Returns:
{sap.ui.core.CSSSize} Value of property height
getRows(): int
Gets current value of property rows.

Number of Rows. This proprty is only used if Height is not used.

Returns:
{int} Value of property rows
getWrapping(): sap.ui.core.Wrapping
Gets current value of property wrapping.

Text wrapping. Possible values are: Soft, Hard, Off.

Returns:
{sap.ui.core.Wrapping} Value of property wrapping
setCols(iCols): sap.ui.commons.TextArea
Sets a new value for property cols.

Number of Columns. Cols means number of characters per row. This proprty is only used if Width is not used.

When called with a value of null or undefined, the default value of the property will be restored.

Parameters:
{int}iCols New value for property cols
Returns:
{sap.ui.commons.TextArea} Reference to this in order to allow method chaining
setCursorPos(iCursorPos): sap.ui.commons.TextArea
Property setter for the cursor position
Parameters:
{int}iCursorPos cursor position
Returns:
{sap.ui.commons.TextArea}this to allow method chaining
setExplanation(sExplanation): sap.ui.commons.TextArea
Sets a new value for property explanation.

text which appears, in case quick-help is switched on

When called with a value of null or undefined, the default value of the property will be restored.

Parameters:
{string}sExplanation New value for property explanation
Returns:
{sap.ui.commons.TextArea} Reference to this in order to allow method chaining
setHeight(sHeight): sap.ui.commons.TextArea
Sets a new value for property height.

Height of text field. When it is set (CSS-size such as % or px), this is the exact size.

When called with a value of null or undefined, the default value of the property will be restored.

Parameters:
{sap.ui.core.CSSSize}sHeight New value for property height
Returns:
{sap.ui.commons.TextArea} Reference to this in order to allow method chaining
setMaxLength(iMaxLength): sap.ui.commons.TextArea
Property setter for MaxLength
Parameters:
{int}iMaxLength maximal length of text
Returns:
{sap.ui.commons.TextArea}this to allow method chaining
setRows(iRows): sap.ui.commons.TextArea
Sets a new value for property rows.

Number of Rows. This proprty is only used if Height is not used.

When called with a value of null or undefined, the default value of the property will be restored.

Parameters:
{int}iRows New value for property rows
Returns:
{sap.ui.commons.TextArea} Reference to this in order to allow method chaining
setWrapping(sWrapping): sap.ui.commons.TextArea
Sets a new value for property wrapping.

Text wrapping. Possible values are: Soft, Hard, Off.

When called with a value of null or undefined, the default value of the property will be restored.

Parameters:
{sap.ui.core.Wrapping}sWrapping New value for property wrapping
Returns:
{sap.ui.commons.TextArea} Reference to this in order to allow method chaining
getLabeledBy(): string
Gets current value of property labeledBy.

ID of label control

Deprecated:
Since version 1.5.2. Please use association AriaLabelledBy instead.
Returns:
{string} Value of property labeledBy
setLabeledBy(sLabeledBy): sap.ui.commons.TextArea
Sets a new value for property labeledBy.

ID of label control

When called with a value of null or undefined, the default value of the property will be restored.

Parameters:
{string}sLabeledBy New value for property labeledBy
Deprecated:
Since version 1.5.2. Please use association AriaLabelledBy instead.
Returns:
{sap.ui.commons.TextArea} Reference to this in order to allow method chaining