public class

TextAreaElement

extends Element
java.lang.Object
   ↳ com.google.gwt.core.client.JavaScriptObject
     ↳ com.google.gwt.dom.client.Node
       ↳ com.google.gwt.dom.client.Element
         ↳ com.google.gwt.dom.client.TextAreaElement

Class Overview

Multi-line text field.

Summary

[Expand]
Inherited Constants
From class com.google.gwt.dom.client.Node
Protected Constructors
TextAreaElement()
Public Methods
static TextAreaElement as(Element elem)
Assert that the given Element is compatible with this class and automatically typecast it.
final String getAccessKey()
A single character access key to give access to the form control.
final int getCols()
Width of control (in characters).
final String getDefaultValue()
Represents the contents of the element.
final boolean getDisabled()
This method is deprecated. use isDisabled() instead
final FormElement getForm()
Returns the FORM element containing this control.
final String getName()
Form control or object name when submitted with a form.
final boolean getReadOnly()
This method is deprecated. use isReadOnly() instead.
final int getRows()
Number of text rows.
final String getType()
The type of this form control.
final String getValue()
Represents the current contents of the corresponding form control, in an interactive user agent.
final boolean isDisabled()
The control is unavailable in this context.
final boolean isReadOnly()
This control is read-only.
final void select()
Select the contents of the TEXTAREA.
final void setAccessKey(String accessKey)
A single character access key to give access to the form control.
final void setCols(int cols)
Width of control (in characters).
final void setDefaultValue(String defaultValue)
Represents the contents of the element.
final void setDisabled(boolean disabled)
The control is unavailable in this context.
final void setName(String name)
Form control or object name when submitted with a form.
final void setReadOnly(boolean readOnly)
This control is read-only.
final void setRows(int rows)
Number of text rows.
final void setValue(String value)
Represents the current contents of the corresponding form control, in an interactive user agent.
[Expand]
Inherited Methods
From class com.google.gwt.dom.client.Element
From class com.google.gwt.dom.client.Node
From class com.google.gwt.core.client.JavaScriptObject
From class java.lang.Object

Protected Constructors

protected TextAreaElement ()

Public Methods

public static TextAreaElement as (Element elem)

Assert that the given Element is compatible with this class and automatically typecast it.

public final String getAccessKey ()

A single character access key to give access to the form control.

public final int getCols ()

Width of control (in characters).

public final String getDefaultValue ()

Represents the contents of the element. The value of this attribute does not change if the contents of the corresponding form control, in an interactive user agent, changes.

public final boolean getDisabled ()

This method is deprecated.
use isDisabled() instead

public final FormElement getForm ()

Returns the FORM element containing this control. Returns null if this control is not within the context of a form.

public final String getName ()

Form control or object name when submitted with a form.

public final boolean getReadOnly ()

This method is deprecated.
use isReadOnly() instead.

public final int getRows ()

Number of text rows.

public final String getType ()

The type of this form control. This the string "textarea".

public final String getValue ()

Represents the current contents of the corresponding form control, in an interactive user agent. Changing this attribute changes the contents of the form control, but does not change the contents of the element. If the entirety of the data can not fit into a single string, the implementation may truncate the data.

public final boolean isDisabled ()

The control is unavailable in this context.

public final boolean isReadOnly ()

This control is read-only.

public final void select ()

Select the contents of the TEXTAREA.

public final void setAccessKey (String accessKey)

A single character access key to give access to the form control.

public final void setCols (int cols)

Width of control (in characters).

public final void setDefaultValue (String defaultValue)

Represents the contents of the element. The value of this attribute does not change if the contents of the corresponding form control, in an interactive user agent, changes.

public final void setDisabled (boolean disabled)

The control is unavailable in this context.

public final void setName (String name)

Form control or object name when submitted with a form.

public final void setReadOnly (boolean readOnly)

This control is read-only.

public final void setRows (int rows)

Number of text rows.

public final void setValue (String value)

Represents the current contents of the corresponding form control, in an interactive user agent. Changing this attribute changes the contents of the form control, but does not change the contents of the element. If the entirety of the data can not fit into a single string, the implementation may truncate the data.