2 * Copyright (c) 2003 World Wide Web Consortium,
3 * (Massachusetts Institute of Technology, Institut National de
4 * Recherche en Informatique et en Automatique, Keio University). All
5 * Rights Reserved. This program is distributed under the W3C's Software
6 * Intellectual Property License. This program is distributed in the
7 * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
10 * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
13 package org.w3c.dom.html2;
16 * Multi-line text field. See the TEXTAREA element definition in HTML 4.01.
17 * <p>See also the <a href='http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109'>Document Object Model (DOM) Level 2 HTML Specification</a>.
19 public interface HTMLTextAreaElement extends HTMLElement {
21 * Represents the contents of the element. The value of this attribute
22 * does not change if the contents of the corresponding form control, in
23 * an interactive user agent, changes.
24 * @version DOM Level 2
26 public String getDefaultValue();
28 * Represents the contents of the element. The value of this attribute
29 * does not change if the contents of the corresponding form control, in
30 * an interactive user agent, changes.
31 * @version DOM Level 2
33 public void setDefaultValue(String defaultValue);
36 * Returns the <code>FORM</code> element containing this control. Returns
37 * <code>null</code> if this control is not within the context of a
40 public HTMLFormElement getForm();
43 * A single character access key to give access to the form control. See
44 * the accesskey attribute definition in HTML 4.01.
46 public String getAccessKey();
48 * A single character access key to give access to the form control. See
49 * the accesskey attribute definition in HTML 4.01.
51 public void setAccessKey(String accessKey);
54 * Width of control (in characters). See the cols attribute definition in
59 * Width of control (in characters). See the cols attribute definition in
62 public void setCols(int cols);
65 * The control is unavailable in this context. See the disabled attribute
66 * definition in HTML 4.01.
68 public boolean getDisabled();
70 * The control is unavailable in this context. See the disabled attribute
71 * definition in HTML 4.01.
73 public void setDisabled(boolean disabled);
76 * Form control or object name when submitted with a form. See the name
77 * attribute definition in HTML 4.01.
79 public String getName();
81 * Form control or object name when submitted with a form. See the name
82 * attribute definition in HTML 4.01.
84 public void setName(String name);
87 * This control is read-only. See the readonly attribute definition in
90 public boolean getReadOnly();
92 * This control is read-only. See the readonly attribute definition in
95 public void setReadOnly(boolean readOnly);
98 * Number of text rows. See the rows attribute definition in HTML 4.01.
100 public int getRows();
102 * Number of text rows. See the rows attribute definition in HTML 4.01.
104 public void setRows(int rows);
107 * Index that represents the element's position in the tabbing order. See
108 * the tabindex attribute definition in HTML 4.01.
110 public int getTabIndex();
112 * Index that represents the element's position in the tabbing order. See
113 * the tabindex attribute definition in HTML 4.01.
115 public void setTabIndex(int tabIndex);
118 * The type of this form control. This the string "textarea".
120 public String getType();
123 * Represents the current contents of the corresponding form control, in
124 * an interactive user agent. Changing this attribute changes the
125 * contents of the form control, but does not change the contents of the
126 * element. If the entirety of the data can not fit into a single
127 * <code>DOMString</code>, the implementation may truncate the data.
129 public String getValue();
131 * Represents the current contents of the corresponding form control, in
132 * an interactive user agent. Changing this attribute changes the
133 * contents of the form control, but does not change the contents of the
134 * element. If the entirety of the data can not fit into a single
135 * <code>DOMString</code>, the implementation may truncate the data.
137 public void setValue(String value);
140 * Removes keyboard focus from this element.
145 * Gives keyboard focus to this element.
150 * Select the contents of the <code>TEXTAREA</code>.
152 public void select();