KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > faces > component > html > HtmlOutputLabel


1 /*
2  * Copyright 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 javax.faces.component.html;
17
18 import javax.faces.component.UIOutput;
19 import javax.faces.context.FacesContext;
20 import javax.faces.el.ValueBinding;
21
22 /**
23  * @author Thomas Spiegl (latest modification by $Author: mwessendorf $)
24  * @version $Revision: 1.2 $ $Date: 2004/07/01 22:01:16 $
25  */

26 public class HtmlOutputLabel extends UIOutput
27 {
28     //------------------ GENERATED CODE BEGIN (do not modify!) --------------------
29

30     public static final String JavaDoc COMPONENT_TYPE = "javax.faces.HtmlOutputLabel";
31     private static final String JavaDoc DEFAULT_RENDERER_TYPE = "javax.faces.Label";
32
33     private String JavaDoc _accesskey = null;
34     private String JavaDoc _dir = null;
35     private String JavaDoc _for = null;
36     private String JavaDoc _lang = null;
37     private String JavaDoc _onblur = null;
38     private String JavaDoc _onclick = null;
39     private String JavaDoc _ondblclick = null;
40     private String JavaDoc _onfocus = null;
41     private String JavaDoc _onkeydown = null;
42     private String JavaDoc _onkeypress = null;
43     private String JavaDoc _onkeyup = null;
44     private String JavaDoc _onmousedown = null;
45     private String JavaDoc _onmousemove = null;
46     private String JavaDoc _onmouseout = null;
47     private String JavaDoc _onmouseover = null;
48     private String JavaDoc _onmouseup = null;
49     private String JavaDoc _style = null;
50     private String JavaDoc _styleClass = null;
51     private String JavaDoc _tabindex = null;
52     private String JavaDoc _title = null;
53
54     public HtmlOutputLabel()
55     {
56         setRendererType(DEFAULT_RENDERER_TYPE);
57     }
58
59
60     public void setAccesskey(String JavaDoc accesskey)
61     {
62         _accesskey = accesskey;
63     }
64
65     public String JavaDoc getAccesskey()
66     {
67         if (_accesskey != null) return _accesskey;
68         ValueBinding vb = getValueBinding("accesskey");
69         return vb != null ? (String JavaDoc)vb.getValue(getFacesContext()) : null;
70     }
71
72     public void setDir(String JavaDoc dir)
73     {
74         _dir = dir;
75     }
76
77     public String JavaDoc getDir()
78     {
79         if (_dir != null) return _dir;
80         ValueBinding vb = getValueBinding("dir");
81         return vb != null ? (String JavaDoc)vb.getValue(getFacesContext()) : null;
82     }
83
84     public void setFor(String JavaDoc forValue)
85     {
86         _for = forValue;
87     }
88
89     public String JavaDoc getFor()
90     {
91         if (_for != null) return _for;
92         ValueBinding vb = getValueBinding("for");
93         return vb != null ? (String JavaDoc)vb.getValue(getFacesContext()) : null;
94     }
95
96     public void setLang(String JavaDoc lang)
97     {
98         _lang = lang;
99     }
100
101     public String JavaDoc getLang()
102     {
103         if (_lang != null) return _lang;
104         ValueBinding vb = getValueBinding("lang");
105         return vb != null ? (String JavaDoc)vb.getValue(getFacesContext()) : null;
106     }
107
108     public void setOnblur(String JavaDoc onblur)
109     {
110         _onblur = onblur;
111     }
112
113     public String JavaDoc getOnblur()
114     {
115         if (_onblur != null) return _onblur;
116         ValueBinding vb = getValueBinding("onblur");
117         return vb != null ? (String JavaDoc)vb.getValue(getFacesContext()) : null;
118     }
119
120     public void setOnclick(String JavaDoc onclick)
121     {
122         _onclick = onclick;
123     }
124
125     public String JavaDoc getOnclick()
126     {
127         if (_onclick != null) return _onclick;
128         ValueBinding vb = getValueBinding("onclick");
129         return vb != null ? (String JavaDoc)vb.getValue(getFacesContext()) : null;
130     }
131
132     public void setOndblclick(String JavaDoc ondblclick)
133     {
134         _ondblclick = ondblclick;
135     }
136
137     public String JavaDoc getOndblclick()
138     {
139         if (_ondblclick != null) return _ondblclick;
140         ValueBinding vb = getValueBinding("ondblclick");
141         return vb != null ? (String JavaDoc)vb.getValue(getFacesContext()) : null;
142     }
143
144     public void setOnfocus(String JavaDoc onfocus)
145     {
146         _onfocus = onfocus;
147     }
148
149     public String JavaDoc getOnfocus()
150     {
151         if (_onfocus != null) return _onfocus;
152         ValueBinding vb = getValueBinding("onfocus");
153         return vb != null ? (String JavaDoc)vb.getValue(getFacesContext()) : null;
154     }
155
156     public void setOnkeydown(String JavaDoc onkeydown)
157     {
158         _onkeydown = onkeydown;
159     }
160
161     public String JavaDoc getOnkeydown()
162     {
163         if (_onkeydown != null) return _onkeydown;
164         ValueBinding vb = getValueBinding("onkeydown");
165         return vb != null ? (String JavaDoc)vb.getValue(getFacesContext()) : null;
166     }
167
168     public void setOnkeypress(String JavaDoc onkeypress)
169     {
170         _onkeypress = onkeypress;
171     }
172
173     public String JavaDoc getOnkeypress()
174     {
175         if (_onkeypress != null) return _onkeypress;
176         ValueBinding vb = getValueBinding("onkeypress");
177         return vb != null ? (String JavaDoc)vb.getValue(getFacesContext()) : null;
178     }
179
180     public void setOnkeyup(String JavaDoc onkeyup)
181     {
182         _onkeyup = onkeyup;
183     }
184
185     public String JavaDoc getOnkeyup()
186     {
187         if (_onkeyup != null) return _onkeyup;
188         ValueBinding vb = getValueBinding("onkeyup");
189         return vb != null ? (String JavaDoc)vb.getValue(getFacesContext()) : null;
190     }
191
192     public void setOnmousedown(String JavaDoc onmousedown)
193     {
194         _onmousedown = onmousedown;
195     }
196
197     public String JavaDoc getOnmousedown()
198     {
199         if (_onmousedown != null) return _onmousedown;
200         ValueBinding vb = getValueBinding("onmousedown");
201         return vb != null ? (String JavaDoc)vb.getValue(getFacesContext()) : null;
202     }
203
204     public void setOnmousemove(String JavaDoc onmousemove)
205     {
206         _onmousemove = onmousemove;
207     }
208
209     public String JavaDoc getOnmousemove()
210     {
211         if (_onmousemove != null) return _onmousemove;
212         ValueBinding vb = getValueBinding("onmousemove");
213         return vb != null ? (String JavaDoc)vb.getValue(getFacesContext()) : null;
214     }
215
216     public void setOnmouseout(String JavaDoc onmouseout)
217     {
218         _onmouseout = onmouseout;
219     }
220
221     public String JavaDoc getOnmouseout()
222     {
223         if (_onmouseout != null) return _onmouseout;
224         ValueBinding vb = getValueBinding("onmouseout");
225         return vb != null ? (String JavaDoc)vb.getValue(getFacesContext()) : null;
226     }
227
228     public void setOnmouseover(String JavaDoc onmouseover)
229     {
230         _onmouseover = onmouseover;
231     }
232
233     public String JavaDoc getOnmouseover()
234     {
235         if (_onmouseover != null) return _onmouseover;
236         ValueBinding vb = getValueBinding("onmouseover");
237         return vb != null ? (String JavaDoc)vb.getValue(getFacesContext()) : null;
238     }
239
240     public void setOnmouseup(String JavaDoc onmouseup)
241     {
242         _onmouseup = onmouseup;
243     }
244
245     public String JavaDoc getOnmouseup()
246     {
247         if (_onmouseup != null) return _onmouseup;
248         ValueBinding vb = getValueBinding("onmouseup");
249         return vb != null ? (String JavaDoc)vb.getValue(getFacesContext()) : null;
250     }
251
252     public void setStyle(String JavaDoc style)
253     {
254         _style = style;
255     }
256
257     public String JavaDoc getStyle()
258     {
259         if (_style != null) return _style;
260         ValueBinding vb = getValueBinding("style");
261         return vb != null ? (String JavaDoc)vb.getValue(getFacesContext()) : null;
262     }
263
264     public void setStyleClass(String JavaDoc styleClass)
265     {
266         _styleClass = styleClass;
267     }
268
269     public String JavaDoc getStyleClass()
270     {
271         if (_styleClass != null) return _styleClass;
272         ValueBinding vb = getValueBinding("styleClass");
273         return vb != null ? (String JavaDoc)vb.getValue(getFacesContext()) : null;
274     }
275
276     public void setTabindex(String JavaDoc tabindex)
277     {
278         _tabindex = tabindex;
279     }
280
281     public String JavaDoc getTabindex()
282     {
283         if (_tabindex != null) return _tabindex;
284         ValueBinding vb = getValueBinding("tabindex");
285         return vb != null ? (String JavaDoc)vb.getValue(getFacesContext()) : null;
286     }
287
288     public void setTitle(String JavaDoc title)
289     {
290         _title = title;
291     }
292
293     public String JavaDoc getTitle()
294     {
295         if (_title != null) return _title;
296         ValueBinding vb = getValueBinding("title");
297         return vb != null ? (String JavaDoc)vb.getValue(getFacesContext()) : null;
298     }
299
300
301     public Object JavaDoc saveState(FacesContext context)
302     {
303         Object JavaDoc values[] = new Object JavaDoc[21];
304         values[0] = super.saveState(context);
305         values[1] = _accesskey;
306         values[2] = _dir;
307         values[3] = _for;
308         values[4] = _lang;
309         values[5] = _onblur;
310         values[6] = _onclick;
311         values[7] = _ondblclick;
312         values[8] = _onfocus;
313         values[9] = _onkeydown;
314         values[10] = _onkeypress;
315         values[11] = _onkeyup;
316         values[12] = _onmousedown;
317         values[13] = _onmousemove;
318         values[14] = _onmouseout;
319         values[15] = _onmouseover;
320         values[16] = _onmouseup;
321         values[17] = _style;
322         values[18] = _styleClass;
323         values[19] = _tabindex;
324         values[20] = _title;
325         return ((Object JavaDoc) (values));
326     }
327
328     public void restoreState(FacesContext context, Object JavaDoc state)
329     {
330         Object JavaDoc values[] = (Object JavaDoc[])state;
331         super.restoreState(context, values[0]);
332         _accesskey = (String JavaDoc)values[1];
333         _dir = (String JavaDoc)values[2];
334         _for = (String JavaDoc)values[3];
335         _lang = (String JavaDoc)values[4];
336         _onblur = (String JavaDoc)values[5];
337         _onclick = (String JavaDoc)values[6];
338         _ondblclick = (String JavaDoc)values[7];
339         _onfocus = (String JavaDoc)values[8];
340         _onkeydown = (String JavaDoc)values[9];
341         _onkeypress = (String JavaDoc)values[10];
342         _onkeyup = (String JavaDoc)values[11];
343         _onmousedown = (String JavaDoc)values[12];
344         _onmousemove = (String JavaDoc)values[13];
345         _onmouseout = (String JavaDoc)values[14];
346         _onmouseover = (String JavaDoc)values[15];
347         _onmouseup = (String JavaDoc)values[16];
348         _style = (String JavaDoc)values[17];
349         _styleClass = (String JavaDoc)values[18];
350         _tabindex = (String JavaDoc)values[19];
351         _title = (String JavaDoc)values[20];
352     }
353     //------------------ GENERATED CODE END ---------------------------------------
354
}
355
Popular Tags