FileDocCategorySizeDatePackage
HTMLTextAreaElement.javaAPI DocJava SE 5 API3722Fri Aug 26 14:58:40 BST 2005org.w3c.dom.html

HTMLTextAreaElement

public interface HTMLTextAreaElement implements HTMLElement
Multi-line text field. See the TEXTAREA element definition in HTML 4.0.

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

Fields Summary
Constructors Summary
Methods Summary
public voidblur()
Removes keyboard focus from this element.

public voidfocus()
Gives keyboard focus to this element.

public java.lang.StringgetAccessKey()
A single character access key to give access to the form control. See the accesskey attribute definition in HTML 4.0.

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

public java.lang.StringgetDefaultValue()
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 booleangetDisabled()
The control is unavailable in this context. See the disabled attribute definition in HTML 4.0.

public org.w3c.dom.html.HTMLFormElementgetForm()
Returns the FORM element containing this control. Returns null if this control is not within the context of a form.

public java.lang.StringgetName()
Form control or object name when submitted with a form. See the name attribute definition in HTML 4.0.

public booleangetReadOnly()
This control is read-only. See the readonly attribute definition in HTML 4.0.

public intgetRows()
Number of text rows. See the rows attribute definition in HTML 4.0.

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

public java.lang.StringgetType()
The type of this form control. This the string "textarea".

public java.lang.StringgetValue()
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 voidselect()
Select the contents of the TEXTAREA .

public voidsetAccessKey(java.lang.String accessKey)

public voidsetCols(int cols)

public voidsetDefaultValue(java.lang.String defaultValue)

public voidsetDisabled(boolean disabled)

public voidsetName(java.lang.String name)

public voidsetReadOnly(boolean readOnly)

public voidsetRows(int rows)

public voidsetTabIndex(int tabIndex)

public voidsetValue(java.lang.String value)