1 /*
2  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3  *
4  * This code is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License version 2 only, as
6  * published by the Free Software Foundation.  Oracle designates this
7  * particular file as subject to the "Classpath" exception as provided
8  * by Oracle in the LICENSE file that accompanied this code.
9  *
10  * This code is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13  * version 2 for more details (a copy is included in the LICENSE file that
14  * accompanied this code).
15  *
16  * You should have received a copy of the GNU General Public License version
17  * 2 along with this work; if not, write to the Free Software Foundation,
18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19  *
20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21  * or visit www.oracle.com if you need additional information or have any
22  * questions.
23  */
24 
25 /*
26  * This file is available under and governed by the GNU General Public
27  * License version 2 only, as published by the Free Software Foundation.
28  * However, the following notice accompanied the original version of this
29  * file and, per its terms, should not be removed:
30  *
31  * Copyright (c) 2000 World Wide Web Consortium,
32  * (Massachusetts Institute of Technology, Institut National de
33  * Recherche en Informatique et en Automatique, Keio University). All
34  * Rights Reserved. This program is distributed under the W3C's Software
35  * Intellectual Property License. This program is distributed in the
36  * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
37  * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
38  * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
39  * details.
40  */
41 
42 package org.w3c.dom.html;
43 
44 /**
45  *  Multi-line text field. See the  TEXTAREA element definition in HTML 4.0.
46  * <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
47  */
48 public interface HTMLTextAreaElement extends HTMLElement {
49     /**
50      *  Represents the contents of the element. The value of this attribute
51      * does not change if the contents of the corresponding form control, in
52      * an interactive user agent, changes. Changing this attribute, however,
53      * resets the contents of the form control.
54      */
getDefaultValue()55     public String getDefaultValue();
setDefaultValue(String defaultValue)56     public void setDefaultValue(String defaultValue);
57 
58     /**
59      *  Returns the <code>FORM</code> element containing this control. Returns
60      * <code>null</code> if this control is not within the context of a form.
61      */
getForm()62     public HTMLFormElement getForm();
63 
64     /**
65      *  A single character access key to give access to the form control. See
66      * the  accesskey attribute definition in HTML 4.0.
67      */
getAccessKey()68     public String getAccessKey();
setAccessKey(String accessKey)69     public void setAccessKey(String accessKey);
70 
71     /**
72      *  Width of control (in characters). See the  cols attribute definition
73      * in HTML 4.0.
74      */
getCols()75     public int getCols();
setCols(int cols)76     public void setCols(int cols);
77 
78     /**
79      *  The control is unavailable in this context. See the  disabled
80      * attribute definition in HTML 4.0.
81      */
getDisabled()82     public boolean getDisabled();
setDisabled(boolean disabled)83     public void setDisabled(boolean disabled);
84 
85     /**
86      *  Form control or object name when submitted with a form. See the  name
87      * attribute definition in HTML 4.0.
88      */
getName()89     public String getName();
setName(String name)90     public void setName(String name);
91 
92     /**
93      *  This control is read-only. See the  readonly attribute definition in
94      * HTML 4.0.
95      */
getReadOnly()96     public boolean getReadOnly();
setReadOnly(boolean readOnly)97     public void setReadOnly(boolean readOnly);
98 
99     /**
100      *  Number of text rows. See the  rows attribute definition in HTML 4.0.
101      */
getRows()102     public int getRows();
setRows(int rows)103     public void setRows(int rows);
104 
105     /**
106      *  Index that represents the element's position in the tabbing order. See
107      * the  tabindex attribute definition in HTML 4.0.
108      */
getTabIndex()109     public int getTabIndex();
setTabIndex(int tabIndex)110     public void setTabIndex(int tabIndex);
111 
112     /**
113      *  The type of this form control. This the string "textarea".
114      */
getType()115     public String getType();
116 
117     /**
118      *  Represents the current contents of the corresponding form control, in
119      * an interactive user agent. Changing this attribute changes the
120      * contents of the form control, but does not change the contents of the
121      * element. If the entirety of the data can not fit into a single
122      * <code>DOMString</code> , the implementation may truncate the data.
123      */
getValue()124     public String getValue();
setValue(String value)125     public void setValue(String value);
126 
127     /**
128      *  Removes keyboard focus from this element.
129      */
blur()130     public void blur();
131 
132     /**
133      *  Gives keyboard focus to this element.
134      */
focus()135     public void focus();
136 
137     /**
138      *  Select the contents of the <code>TEXTAREA</code> .
139      */
select()140     public void select();
141 
142 }
143