public interface

HTMLTextAreaElement

implements HTMLElement
org.w3c.dom.html.HTMLTextAreaElement

Class Overview

Multi-line text field. See the TEXTAREA element definition in HTML 4.0.

See also the Document Object Model (DOM) Level 2 Specification.

Summary

[Expand]
Inherited Constants
From interface org.w3c.dom.Node
Public Methods
abstract void blur()
Removes keyboard focus from this element.
abstract void focus()
Gives keyboard focus to this element.
abstract String getAccessKey()
A single character access key to give access to the form control.
abstract int getCols()
Width of control (in characters).
abstract String getDefaultValue()
Represents the contents of the element.
abstract boolean getDisabled()
The control is unavailable in this context.
abstract HTMLFormElement getForm()
Returns the FORM element containing this control.
abstract String getName()
Form control or object name when submitted with a form.
abstract boolean getReadOnly()
This control is read-only.
abstract int getRows()
Number of text rows.
abstract int getTabIndex()
Index that represents the element's position in the tabbing order.
abstract String getType()
The type of this form control.
abstract String getValue()
Represents the current contents of the corresponding form control, in an interactive user agent.
abstract void select()
Select the contents of the TEXTAREA .
abstract void setAccessKey(String accessKey)
abstract void setCols(int cols)
abstract void setDefaultValue(String defaultValue)
abstract void setDisabled(boolean disabled)
abstract void setName(String name)
abstract void setReadOnly(boolean readOnly)
abstract void setRows(int rows)
abstract void setTabIndex(int tabIndex)
abstract void setValue(String value)
[Expand]
Inherited Methods
From interface org.w3c.dom.Element
From interface org.w3c.dom.Node
From interface org.w3c.dom.html.HTMLElement

Public Methods

public abstract void blur ()

Removes keyboard focus from this element.

public abstract void focus ()

Gives keyboard focus to this element.

public abstract String getAccessKey ()

A single character access key to give access to the form control. See the accesskey attribute definition in HTML 4.0.

public abstract int getCols ()

Width of control (in characters). See the cols attribute definition in HTML 4.0.

public abstract 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. Changing this attribute, however, resets the contents of the form control.

public abstract boolean getDisabled ()

The control is unavailable in this context. See the disabled attribute definition in HTML 4.0.

public abstract HTMLFormElement getForm ()

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

public abstract String getName ()

Form control or object name when submitted with a form. See the name attribute definition in HTML 4.0.

public abstract boolean getReadOnly ()

This control is read-only. See the readonly attribute definition in HTML 4.0.

public abstract int getRows ()

Number of text rows. See the rows attribute definition in HTML 4.0.

public abstract int getTabIndex ()

Index that represents the element's position in the tabbing order. See the tabindex attribute definition in HTML 4.0.

public abstract String getType ()

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

public abstract 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 DOMString , the implementation may truncate the data.

public abstract void select ()

Select the contents of the TEXTAREA .

public abstract void setAccessKey (String accessKey)

public abstract void setCols (int cols)

public abstract void setDefaultValue (String defaultValue)

public abstract void setDisabled (boolean disabled)

public abstract void setName (String name)

public abstract void setReadOnly (boolean readOnly)

public abstract void setRows (int rows)

public abstract void setTabIndex (int tabIndex)

public abstract void setValue (String value)