KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > w3c > dom > html2 > HTMLTextAreaElement


1 /*
2     GNU LESSER GENERAL PUBLIC LICENSE
3     Copyright (C) 2006 The Lobo Project
4
5     This library is free software; you can redistribute it and/or
6     modify it under the terms of the GNU Lesser General Public
7     License as published by the Free Software Foundation; either
8     version 2.1 of the License, or (at your option) any later version.
9
10     This library is distributed in the hope that it will be useful,
11     but WITHOUT ANY WARRANTY; without even the implied warranty of
12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13     Lesser General Public License for more details.
14
15     You should have received a copy of the GNU Lesser General Public
16     License along with this library; if not, write to the Free Software
17     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
19     Contact info: xamjadmin@users.sourceforge.net
20 */

21 /*
22  * Copyright (c) 2003 World Wide Web Consortium,
23  * (Massachusetts Institute of Technology, Institut National de
24  * Recherche en Informatique et en Automatique, Keio University). All
25  * Rights Reserved. This program is distributed under the W3C's Software
26  * Intellectual Property License. This program is distributed in the
27  * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
28  * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
29  * PURPOSE.
30  * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
31  */

32
33 package org.w3c.dom.html2;
34
35 /**
36  * Multi-line text field. See the TEXTAREA element definition in HTML 4.01.
37  * <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>.
38  */

39 public interface HTMLTextAreaElement extends HTMLElement {
40     /**
41      * Represents the contents of the element. The value of this attribute
42      * does not change if the contents of the corresponding form control, in
43      * an interactive user agent, changes.
44      * @version DOM Level 2
45      */

46     public String JavaDoc getDefaultValue();
47     /**
48      * Represents the contents of the element. The value of this attribute
49      * does not change if the contents of the corresponding form control, in
50      * an interactive user agent, changes.
51      * @version DOM Level 2
52      */

53     public void setDefaultValue(String JavaDoc defaultValue);
54
55     /**
56      * Returns the <code>FORM</code> element containing this control. Returns
57      * <code>null</code> if this control is not within the context of a
58      * form.
59      */

60     public HTMLFormElement getForm();
61
62     /**
63      * A single character access key to give access to the form control. See
64      * the accesskey attribute definition in HTML 4.01.
65      */

66     public String JavaDoc getAccessKey();
67     /**
68      * A single character access key to give access to the form control. See
69      * the accesskey attribute definition in HTML 4.01.
70      */

71     public void setAccessKey(String JavaDoc accessKey);
72
73     /**
74      * Width of control (in characters). See the cols attribute definition in
75      * HTML 4.01.
76      */

77     public int getCols();
78     /**
79      * Width of control (in characters). See the cols attribute definition in
80      * HTML 4.01.
81      */

82     public void setCols(int cols);
83
84     /**
85      * The control is unavailable in this context. See the disabled attribute
86      * definition in HTML 4.01.
87      */

88     public boolean getDisabled();
89     /**
90      * The control is unavailable in this context. See the disabled attribute
91      * definition in HTML 4.01.
92      */

93     public void setDisabled(boolean disabled);
94
95     /**
96      * Form control or object name when submitted with a form. See the name
97      * attribute definition in HTML 4.01.
98      */

99     public String JavaDoc getName();
100     /**
101      * Form control or object name when submitted with a form. See the name
102      * attribute definition in HTML 4.01.
103      */

104     public void setName(String JavaDoc name);
105
106     /**
107      * This control is read-only. See the readonly attribute definition in
108      * HTML 4.01.
109      */

110     public boolean getReadOnly();
111     /**
112      * This control is read-only. See the readonly attribute definition in
113      * HTML 4.01.
114      */

115     public void setReadOnly(boolean readOnly);
116
117     /**
118      * Number of text rows. See the rows attribute definition in HTML 4.01.
119      */

120     public int getRows();
121     /**
122      * Number of text rows. See the rows attribute definition in HTML 4.01.
123      */

124     public void setRows(int rows);
125
126     /**
127      * Index that represents the element's position in the tabbing order. See
128      * the tabindex attribute definition in HTML 4.01.
129      */

130     public int getTabIndex();
131     /**
132      * Index that represents the element's position in the tabbing order. See
133      * the tabindex attribute definition in HTML 4.01.
134      */

135     public void setTabIndex(int tabIndex);
136
137     /**
138      * The type of this form control. This the string "textarea".
139      */

140     public String JavaDoc getType();
141
142     /**
143      * Represents the current contents of the corresponding form control, in
144      * an interactive user agent. Changing this attribute changes the
145      * contents of the form control, but does not change the contents of the
146      * element. If the entirety of the data can not fit into a single
147      * <code>DOMString</code>, the implementation may truncate the data.
148      */

149     public String JavaDoc getValue();
150     /**
151      * Represents the current contents of the corresponding form control, in
152      * an interactive user agent. Changing this attribute changes the
153      * contents of the form control, but does not change the contents of the
154      * element. If the entirety of the data can not fit into a single
155      * <code>DOMString</code>, the implementation may truncate the data.
156      */

157     public void setValue(String JavaDoc value);
158
159     /**
160      * Removes keyboard focus from this element.
161      */

162     public void blur();
163
164     /**
165      * Gives keyboard focus to this element.
166      */

167     public void focus();
168
169     /**
170      * Select the contents of the <code>TEXTAREA</code>.
171      */

172     public void select();
173
174 }
175
Popular Tags