KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > taglib > html > HtmlOutputLabelTagBase


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 org.apache.myfaces.taglib.html;
17
18 import org.apache.myfaces.renderkit.JSFAttr;
19 import org.apache.myfaces.renderkit.html.HTML;
20
21 import javax.faces.component.UIComponent;
22
23
24 /**
25  * @author Manfred Geiler (latest modification by $Author: matzew $)
26  * @author Martin Marinschek
27  * @version $Revision: 1.4 $ $Date: 2005/02/18 17:19:29 $
28  * $Log: HtmlOutputLabelTagBase.java,v $
29  * Revision 1.4 2005/02/18 17:19:29 matzew
30  * added release() to tag clazzes.
31  *
32  * Revision 1.3 2004/10/13 11:51:01 matze
33  * renamed packages to org.apache
34  *
35  * Revision 1.2 2004/07/01 22:01:11 mwessendorf
36  * ASF switch
37  *
38  * Revision 1.1 2004/04/01 12:57:44 manolito
39  * additional extended component classes for user role support
40  *
41  */

42 public abstract class HtmlOutputLabelTagBase
43     extends HtmlComponentTagBase
44 {
45     // UIComponent attributes --> already implemented in UIComponentTagBase
46

47     // user role attributes --> already implemented in UIComponentTagBase
48

49     // HTML universal attributes --> already implemented in HtmlComponentTagBase
50

51     // HTML event handler attributes --> already implemented in HtmlComponentTagBase
52

53     // HTML label attributes
54
private String JavaDoc _accesskey;
55     private String JavaDoc _onblur;
56     private String JavaDoc _onfocus;
57
58     // UIOutput attributes
59
// value and converterId --> already implemented in UIComponentTagBase
60

61     //HTMLOutputLabel attributes
62
private String JavaDoc _for;
63     
64     public void release() {
65         super.release();
66         _accesskey=null;
67         _onblur=null;
68         _onfocus=null;
69         _for=null;
70     }
71
72     protected void setProperties(UIComponent component)
73     {
74         super.setProperties(component);
75
76         setStringProperty(component, HTML.ACCESSKEY_ATTR, _accesskey);
77         setStringProperty(component, HTML.ONBLUR_ATTR, _onblur);
78         setStringProperty(component, HTML.ONFOCUS_ATTR, _onfocus);
79
80         setStringProperty(component, JSFAttr.FOR_ATTR, _for);
81    }
82
83     public void setAccesskey(String JavaDoc accesskey)
84     {
85         _accesskey = accesskey;
86     }
87
88     public void setOnblur(String JavaDoc onblur)
89     {
90         _onblur = onblur;
91     }
92
93     public void setOnfocus(String JavaDoc onfocus)
94     {
95         _onfocus = onfocus;
96     }
97
98     public void setFor(String JavaDoc aFor)
99     {
100         _for = aFor;
101     }
102 }
103
Popular Tags