KickJava   Java API By Example, From Geeks To Geeks.

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


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: InputTextTag.java 46253 2004-09-17 14:36:29Z vgritsenko $
22  */

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