KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > faces > taglib > html > InputTextareaTag


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.cocoon.faces.taglib.html;
17
18 import javax.faces.component.UIComponent;
19
20 /**
21  * @version CVS $Id: InputTextareaTag.java 46253 2004-09-17 14:36:29Z vgritsenko $
22  */

23 public class InputTextareaTag extends InputHiddenTag {
24
25     private String JavaDoc accesskey;
26     private String JavaDoc cols;
27     private String JavaDoc dir;
28     private String JavaDoc disabled;
29     private String JavaDoc lang;
30     private String JavaDoc onblur;
31     private String JavaDoc onchange;
32     private String JavaDoc onclick;
33     private String JavaDoc ondblclick;
34     private String JavaDoc onfocus;
35     private String JavaDoc onkeydown;
36     private String JavaDoc onkeypress;
37     private String JavaDoc onkeyup;
38     private String JavaDoc onmousedown;
39     private String JavaDoc onmousemove;
40     private String JavaDoc onmouseout;
41     private String JavaDoc onmouseover;
42     private String JavaDoc onmouseup;
43     private String JavaDoc onselect;
44     private String JavaDoc readonly;
45     private String JavaDoc rows;
46     private String JavaDoc style;
47     private String JavaDoc styleClass;
48     private String JavaDoc tabindex;
49     private String JavaDoc title;
50
51
52     public void setAccesskey(String JavaDoc accesskey) {
53         this.accesskey = accesskey;
54     }
55
56     public void setCols(String JavaDoc cols) {
57         this.cols = cols;
58     }
59
60     public void setDir(String JavaDoc dir) {
61         this.dir = dir;
62     }
63
64     public void setDisabled(String JavaDoc disabled) {
65         this.disabled = disabled;
66     }
67
68     public void setLang(String JavaDoc lang) {
69         this.lang = lang;
70     }
71
72     public void setOnblur(String JavaDoc onblur) {
73         this.onblur = onblur;
74     }
75
76     public void setOnchange(String JavaDoc onchange) {
77         this.onchange = onchange;
78     }
79
80     public void setOnclick(String JavaDoc onclick) {
81         this.onclick = onclick;
82     }
83
84     public void setOndblclick(String JavaDoc ondblclick) {
85         this.ondblclick = ondblclick;
86     }
87
88     public void setOnfocus(String JavaDoc onfocus) {
89         this.onfocus = onfocus;
90     }
91
92     public void setOnkeydown(String JavaDoc onkeydown) {
93         this.onkeydown = onkeydown;
94     }
95
96     public void setOnkeypress(String JavaDoc onkeypress) {
97         this.onkeypress = onkeypress;
98     }
99
100     public void setOnkeyup(String JavaDoc onkeyup) {
101         this.onkeyup = onkeyup;
102     }
103
104     public void setOnmousedown(String JavaDoc onmousedown) {
105         this.onmousedown = onmousedown;
106     }
107
108     public void setOnmousemove(String JavaDoc onmousemove) {
109         this.onmousemove = onmousemove;
110     }
111
112     public void setOnmouseout(String JavaDoc onmouseout) {
113         this.onmouseout = onmouseout;
114     }
115
116     public void setOnmouseover(String JavaDoc onmouseover) {
117         this.onmouseover = onmouseover;
118     }
119
120     public void setOnmouseup(String JavaDoc onmouseup) {
121         this.onmouseup = onmouseup;
122     }
123
124     public void setOnselect(String JavaDoc onselect) {
125         this.onselect = onselect;
126     }
127
128     public void setReadonly(String JavaDoc readonly) {
129         this.readonly = readonly;
130     }
131
132     public void setRows(String JavaDoc rows) {
133         this.rows = rows;
134     }
135
136     public void setStyle(String JavaDoc style) {
137         this.style = style;
138     }
139
140     public void setStyleClass(String JavaDoc styleClass) {
141         this.styleClass = styleClass;
142     }
143
144     public void setTabindex(String JavaDoc tabindex) {
145         this.tabindex = tabindex;
146     }
147
148     public void setTitle(String JavaDoc title) {
149         this.title = title;
150     }
151
152     public String JavaDoc getRendererType() {
153         return "javax.faces.Textarea";
154     }
155
156     public String JavaDoc getComponentType() {
157         return "javax.faces.HtmlInputTextarea";
158     }
159
160
161     protected void setProperties(UIComponent component) {
162         super.setProperties(component);
163
164         setProperty(component, "accesskey", accesskey);
165
166         setIntegerProperty(component, "cols", cols);
167
168         setProperty(component, "dir", dir);
169
170         setBooleanProperty(component, "disabled", disabled);
171
172         setProperty(component, "lang", lang);
173
174         setProperty(component, "onblur", onblur);
175         setProperty(component, "onchange", onchange);
176         setProperty(component, "onclick", onclick);
177         setProperty(component, "ondblclick", ondblclick);
178         setProperty(component, "onfocus", onfocus);
179         setProperty(component, "onkeydown", onkeydown);
180         setProperty(component, "onkeypress", onkeypress);
181         setProperty(component, "onkeyup", onkeyup);
182         setProperty(component, "onmousedown", onmousedown);
183         setProperty(component, "onmousemove", onmousemove);
184         setProperty(component, "onmouseout", onmouseout);
185         setProperty(component, "onmouseover", onmouseover);
186         setProperty(component, "onmouseup", onmouseup);
187         setProperty(component, "onselect", onselect);
188
189         setBooleanProperty(component, "readonly", readonly);
190         setIntegerProperty(component, "rows", rows);
191
192         setProperty(component, "style", style);
193         setProperty(component, "styleClass", styleClass);
194         setProperty(component, "tabindex", tabindex);
195         setProperty(component, "title", title);
196     }
197
198     public void recycle() {
199         super.recycle();
200         accesskey = null;
201         cols = null;
202         dir = null;
203         disabled = null;
204         lang = null;
205         onblur = null;
206         onchange = null;
207         onclick = null;
208         ondblclick = null;
209         onfocus = null;
210         onkeydown = null;
211         onkeypress = null;
212         onkeyup = null;
213         onmousedown = null;
214         onmousemove = null;
215         onmouseout = null;
216         onmouseover = null;
217         onmouseup = null;
218         onselect = null;
219         readonly = null;
220         rows = null;
221         style = null;
222         styleClass = null;
223         tabindex = null;
224         title = null;
225     }
226 }
227
Popular Tags