KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * Copyright (c) 2000 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
9  * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
10  * details.
11  */

12
13 package org.w3c.dom.html;
14
15 /**
16  * Multi-line text field. See the TEXTAREA element definition in HTML 4.0.
17  * <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>.
18  */

19 public interface HTMLTextAreaElement extends HTMLElement {
20     /**
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. Changing this attribute, however,
24      * resets the contents of the form control.
25      */

26     public String JavaDoc getDefaultValue();
27     public void setDefaultValue(String JavaDoc defaultValue);
28
29     /**
30      * Returns the <code>FORM</code> element containing this control. Returns
31      * <code>null</code> if this control is not within the context of a form.
32      */

33     public HTMLFormElement getForm();
34
35     /**
36      * A single character access key to give access to the form control. See
37      * the accesskey attribute definition in HTML 4.0.
38      */

39     public String JavaDoc getAccessKey();
40     public void setAccessKey(String JavaDoc accessKey);
41
42     /**
43      * Width of control (in characters). See the cols attribute definition
44      * in HTML 4.0.
45      */

46     public int getCols();
47     public void setCols(int cols);
48
49     /**
50      * The control is unavailable in this context. See the disabled
51      * attribute definition in HTML 4.0.
52      */

53     public boolean getDisabled();
54     public void setDisabled(boolean disabled);
55
56     /**
57      * Form control or object name when submitted with a form. See the name
58      * attribute definition in HTML 4.0.
59      */

60     public String JavaDoc getName();
61     public void setName(String JavaDoc name);
62
63     /**
64      * This control is read-only. See the readonly attribute definition in
65      * HTML 4.0.
66      */

67     public boolean getReadOnly();
68     public void setReadOnly(boolean readOnly);
69
70     /**
71      * Number of text rows. See the rows attribute definition in HTML 4.0.
72      */

73     public int getRows();
74     public void setRows(int rows);
75
76     /**
77      * Index that represents the element's position in the tabbing order. See
78      * the tabindex attribute definition in HTML 4.0.
79      */

80     public int getTabIndex();
81     public void setTabIndex(int tabIndex);
82
83     /**
84      * The type of this form control. This the string "textarea".
85      */

86     public String JavaDoc getType();
87
88     /**
89      * Represents the current contents of the corresponding form control, in
90      * an interactive user agent. Changing this attribute changes the
91      * contents of the form control, but does not change the contents of the
92      * element. If the entirety of the data can not fit into a single
93      * <code>DOMString</code> , the implementation may truncate the data.
94      */

95     public String JavaDoc getValue();
96     public void setValue(String JavaDoc value);
97
98     /**
99      * Removes keyboard focus from this element.
100      */

101     public void blur();
102
103     /**
104      * Gives keyboard focus to this element.
105      */

106     public void focus();
107
108     /**
109      * Select the contents of the <code>TEXTAREA</code> .
110      */

111     public void select();
112
113 }
114
115
Popular Tags