KickJava   Java API By Example, From Geeks To Geeks.

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


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 18:24:35 $
28  * $Log: HtmlInputSecretTagBase.java,v $
29  * Revision 1.4 2005/02/18 18:24:35 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 HtmlInputSecretTagBase
43         extends HtmlInputTagBase
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 input attributes relevant for password-input
54
private String JavaDoc _accesskey;
55     private String JavaDoc _align;
56     private String JavaDoc _alt;
57     private String JavaDoc _datafld;
58     private String JavaDoc _datasrc;
59     private String JavaDoc _dataformatas;
60     private String JavaDoc _disabled;
61     private String JavaDoc _maxlength;
62     private String JavaDoc _onblur;
63     private String JavaDoc _onchange;
64     private String JavaDoc _onfocus;
65     private String JavaDoc _onselect;
66     private String JavaDoc _readonly;
67     private String JavaDoc _size;
68     private String JavaDoc _tabindex;
69
70     // UIOutput attributes
71
// value and converterId --> already implemented in UIComponentTagBase
72

73     // UIInput attributes
74
// --> already implemented in HtmlInputTagBase
75

76     // HTMLInputSecret attributes
77
private String JavaDoc _redisplay;
78     
79     public void release() {
80         super.release();
81         _accesskey=null;
82         _align=null;
83         _alt=null;
84         _datafld=null;
85         _datasrc=null;
86         _dataformatas=null;
87         _disabled=null;
88         _maxlength=null;
89         _onblur=null;
90         _onchange=null;
91         _onfocus=null;
92         _onselect=null;
93         _readonly=null;
94         _size=null;
95         _tabindex=null;
96         _redisplay=null;
97     }
98
99     protected void setProperties(UIComponent component)
100     {
101         super.setProperties(component);
102
103         setStringProperty(component, HTML.ACCESSKEY_ATTR, _accesskey);
104         setStringProperty(component, HTML.ALIGN_ATTR, _align);
105         setStringProperty(component, HTML.ALT_ATTR, _alt);
106         setStringProperty(component, HTML.DATAFLD_ATTR, _datafld);
107         setStringProperty(component, HTML.DATASRC_ATTR, _datasrc);
108         setStringProperty(component, HTML.DATAFORMATAS_ATTR, _dataformatas);
109         setBooleanProperty(component, HTML.DISABLED_ATTR, _disabled);
110         setIntegerProperty(component, HTML.MAXLENGTH_ATTR, _maxlength);
111         setStringProperty(component, HTML.ONBLUR_ATTR, _onblur);
112         setStringProperty(component, HTML.ONCHANGE_ATTR, _onchange);
113         setStringProperty(component, HTML.ONFOCUS_ATTR, _onfocus);
114         setStringProperty(component, HTML.ONSELECT_ATTR, _onselect);
115         setBooleanProperty(component, HTML.READONLY_ATTR, _readonly);
116         setIntegerProperty(component, HTML.SIZE_ATTR, _size);
117         setStringProperty(component, HTML.TABINDEX_ATTR, _tabindex);
118
119         setBooleanProperty(component, JSFAttr.REDISPLAY_ATTR, _redisplay);
120    }
121
122     public void setAccesskey(String JavaDoc accesskey)
123     {
124         _accesskey = accesskey;
125     }
126
127     public void setAlign(String JavaDoc align)
128     {
129         _align = align;
130     }
131
132     public void setAlt(String JavaDoc alt)
133     {
134         _alt = alt;
135     }
136
137     public void setDatafld(String JavaDoc datafld)
138     {
139         _datafld = datafld;
140     }
141
142     public void setDatasrc(String JavaDoc datasrc)
143     {
144         _datasrc = datasrc;
145     }
146
147     public void setDataformatas(String JavaDoc dataformatas)
148     {
149         _dataformatas = dataformatas;
150     }
151
152     public void setDisabled(String JavaDoc disabled)
153     {
154         _disabled = disabled;
155     }
156
157     public void setMaxlength(String JavaDoc maxlength)
158     {
159         _maxlength = maxlength;
160     }
161
162     public void setOnblur(String JavaDoc onblur)
163     {
164         _onblur = onblur;
165     }
166
167     public void setOnchange(String JavaDoc onchange)
168     {
169         _onchange = onchange;
170     }
171
172     public void setOnfocus(String JavaDoc onfocus)
173     {
174         _onfocus = onfocus;
175     }
176
177     public void setOnselect(String JavaDoc onselect)
178     {
179         _onselect = onselect;
180     }
181
182     public void setReadonly(String JavaDoc readonly)
183     {
184         _readonly = readonly;
185     }
186
187     public void setSize(String JavaDoc size)
188     {
189         _size = size;
190     }
191
192     public void setTabindex(String JavaDoc tabindex)
193     {
194         _tabindex = tabindex;
195     }
196
197     public void setRedisplay(String JavaDoc redisplay)
198     {
199         _redisplay = redisplay;
200     }
201 }
202
Popular Tags