View Javadoc

1   /*
2    *  Licensed to the Apache Software Foundation (ASF) under one
3    *  or more contributor license agreements.  See the NOTICE file
4    *  distributed with this work for additional information
5    *  regarding copyright ownership.  The ASF licenses this file
6    *  to you under the Apache License, Version 2.0 (the
7    *  "License"); you may not use this file except in compliance
8    *  with the License.  You may obtain a copy of the License at
9    * 
10   *  http://www.apache.org/licenses/LICENSE-2.0
11   * 
12   *  Unless required by applicable law or agreed to in writing,
13   *  software distributed under the License is distributed on an
14   *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   *  KIND, either express or implied.  See the License for the
16   *  specific language governing permissions and limitations
17   *  under the License.
18   */
19  package javax.faces.component.html;
20  
21  import javax.faces.el.ValueBinding;
22  import javax.el.ValueExpression;
23  import javax.faces.context.FacesContext;
24  import javax.faces.component.UIComponent;
25  import javax.faces.convert.Converter;
26  import javax.faces.el.MethodBinding;
27  
28  
29  // Generated from class javax.faces.component.html._HtmlInputSecret.
30  //
31  // WARNING: This file was automatically generated. Do not edit it directly,
32  //          or you will lose your changes.
33  public class HtmlInputSecret extends javax.faces.component.UIInput
34      implements javax.faces.component.behavior.ClientBehaviorHolder
35  {
36  
37      static public final String COMPONENT_FAMILY =
38          "javax.faces.Input";
39      static public final String COMPONENT_TYPE =
40          "javax.faces.HtmlInputSecret";
41  
42  
43      public HtmlInputSecret()
44      {
45          setRendererType("javax.faces.Secret");
46      }
47  
48      @Override    
49      public String getFamily()
50      {
51          return COMPONENT_FAMILY;
52      }
53  
54  
55      static private final java.util.Collection<String> CLIENT_EVENTS_LIST = 
56          java.util.Collections.unmodifiableCollection(
57              java.util.Arrays.asList(
58               "blur"
59              , "focus"
60              , "change"
61              , "select"
62              , "click"
63              , "dblclick"
64              , "keydown"
65              , "keypress"
66              , "keyup"
67              , "mousedown"
68              , "mousemove"
69              , "mouseout"
70              , "mouseover"
71              , "mouseup"
72              , "valueChange"
73          ));
74  
75      public java.util.Collection<String> getEventNames()
76      {
77          return CLIENT_EVENTS_LIST;
78      }
79  
80      @Override
81      public void addClientBehavior(String eventName, javax.faces.component.behavior.ClientBehavior behavior)
82      {
83          super.addClientBehavior(eventName, behavior);
84          _CommonEventConstants.markEvent(this, eventName);
85      }
86  
87      //ClientBehaviorHolder default: valueChange
88      public String getDefaultEventName()
89      {
90          return "valueChange";
91      }
92  
93      
94      // Property: maxlength
95  
96      public int getMaxlength()
97      {
98          return (Integer) getStateHelper().eval(PropertyKeys.maxlength, Integer.MIN_VALUE);
99      }
100     
101     public void setMaxlength(int maxlength)
102     {
103         getStateHelper().put(PropertyKeys.maxlength, maxlength ); 
104         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.MAXLENGTH_PROP);
105     }
106     // Property: redisplay
107 
108     public boolean isRedisplay()
109     {
110         return (Boolean) getStateHelper().eval(PropertyKeys.redisplay, false);
111     }
112     
113     public void setRedisplay(boolean redisplay)
114     {
115         getStateHelper().put(PropertyKeys.redisplay, redisplay ); 
116     }
117     // Property: size
118 
119     public int getSize()
120     {
121         return (Integer) getStateHelper().eval(PropertyKeys.size, Integer.MIN_VALUE);
122     }
123     
124     public void setSize(int size)
125     {
126         getStateHelper().put(PropertyKeys.size, size ); 
127         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.SIZE_PROP);
128     }
129     // Property: autocomplete
130 
131     public String getAutocomplete()
132     {
133         return (String) getStateHelper().eval(PropertyKeys.autocomplete);
134     }
135     
136     public void setAutocomplete(String autocomplete)
137     {
138         getStateHelper().put(PropertyKeys.autocomplete, autocomplete ); 
139     }
140     // Property: label
141 
142     public String getLabel()
143     {
144         return (String) getStateHelper().eval(PropertyKeys.label);
145     }
146     
147     public void setLabel(String label)
148     {
149         getStateHelper().put(PropertyKeys.label, label ); 
150         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.LABEL_PROP);
151     }
152     // Property: style
153 
154     public String getStyle()
155     {
156         return (String) getStateHelper().eval(PropertyKeys.style);
157     }
158     
159     public void setStyle(String style)
160     {
161         getStateHelper().put(PropertyKeys.style, style ); 
162         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.STYLE_PROP);
163     }
164     // Property: styleClass
165 
166     public String getStyleClass()
167     {
168         return (String) getStateHelper().eval(PropertyKeys.styleClass);
169     }
170     
171     public void setStyleClass(String styleClass)
172     {
173         getStateHelper().put(PropertyKeys.styleClass, styleClass ); 
174         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.STYLECLASS_PROP);
175     }
176     // Property: alt
177 
178     public String getAlt()
179     {
180         return (String) getStateHelper().eval(PropertyKeys.alt);
181     }
182     
183     public void setAlt(String alt)
184     {
185         getStateHelper().put(PropertyKeys.alt, alt ); 
186         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ALT_PROP);
187     }
188     // Property: tabindex
189 
190     public String getTabindex()
191     {
192         return (String) getStateHelper().eval(PropertyKeys.tabindex);
193     }
194     
195     public void setTabindex(String tabindex)
196     {
197         getStateHelper().put(PropertyKeys.tabindex, tabindex ); 
198         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.TABINDEX_PROP);
199     }
200     // Property: onblur
201 
202     public String getOnblur()
203     {
204         return (String) getStateHelper().eval(PropertyKeys.onblur);
205     }
206     
207     public void setOnblur(String onblur)
208     {
209         getStateHelper().put(PropertyKeys.onblur, onblur ); 
210         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONBLUR_PROP);
211     }
212     // Property: onfocus
213 
214     public String getOnfocus()
215     {
216         return (String) getStateHelper().eval(PropertyKeys.onfocus);
217     }
218     
219     public void setOnfocus(String onfocus)
220     {
221         getStateHelper().put(PropertyKeys.onfocus, onfocus ); 
222         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONFOCUS_PROP);
223     }
224     // Property: accesskey
225 
226     public String getAccesskey()
227     {
228         return (String) getStateHelper().eval(PropertyKeys.accesskey);
229     }
230     
231     public void setAccesskey(String accesskey)
232     {
233         getStateHelper().put(PropertyKeys.accesskey, accesskey ); 
234         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ACCESSKEY_PROP);
235     }
236     // Property: role
237 
238     public String getRole()
239     {
240         return (String) getStateHelper().eval(PropertyKeys.role);
241     }
242     
243     public void setRole(String role)
244     {
245         getStateHelper().put(PropertyKeys.role, role ); 
246         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ROLE_PROP);
247     }
248     // Property: onchange
249 
250     public String getOnchange()
251     {
252         return (String) getStateHelper().eval(PropertyKeys.onchange);
253     }
254     
255     public void setOnchange(String onchange)
256     {
257         getStateHelper().put(PropertyKeys.onchange, onchange ); 
258         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONCHANGE_PROP);
259     }
260     // Property: onselect
261 
262     public String getOnselect()
263     {
264         return (String) getStateHelper().eval(PropertyKeys.onselect);
265     }
266     
267     public void setOnselect(String onselect)
268     {
269         getStateHelper().put(PropertyKeys.onselect, onselect ); 
270         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONSELECT_PROP);
271     }
272     // Property: onclick
273 
274     public String getOnclick()
275     {
276         return (String) getStateHelper().eval(PropertyKeys.onclick);
277     }
278     
279     public void setOnclick(String onclick)
280     {
281         getStateHelper().put(PropertyKeys.onclick, onclick ); 
282         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONCLICK_PROP);
283     }
284     // Property: ondblclick
285 
286     public String getOndblclick()
287     {
288         return (String) getStateHelper().eval(PropertyKeys.ondblclick);
289     }
290     
291     public void setOndblclick(String ondblclick)
292     {
293         getStateHelper().put(PropertyKeys.ondblclick, ondblclick ); 
294         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONDBLCLICK_PROP);
295     }
296     // Property: onkeydown
297 
298     public String getOnkeydown()
299     {
300         return (String) getStateHelper().eval(PropertyKeys.onkeydown);
301     }
302     
303     public void setOnkeydown(String onkeydown)
304     {
305         getStateHelper().put(PropertyKeys.onkeydown, onkeydown ); 
306         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONKEYDOWN_PROP);
307     }
308     // Property: onkeypress
309 
310     public String getOnkeypress()
311     {
312         return (String) getStateHelper().eval(PropertyKeys.onkeypress);
313     }
314     
315     public void setOnkeypress(String onkeypress)
316     {
317         getStateHelper().put(PropertyKeys.onkeypress, onkeypress ); 
318         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONKEYPRESS_PROP);
319     }
320     // Property: onkeyup
321 
322     public String getOnkeyup()
323     {
324         return (String) getStateHelper().eval(PropertyKeys.onkeyup);
325     }
326     
327     public void setOnkeyup(String onkeyup)
328     {
329         getStateHelper().put(PropertyKeys.onkeyup, onkeyup ); 
330         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONKEYUP_PROP);
331     }
332     // Property: onmousedown
333 
334     public String getOnmousedown()
335     {
336         return (String) getStateHelper().eval(PropertyKeys.onmousedown);
337     }
338     
339     public void setOnmousedown(String onmousedown)
340     {
341         getStateHelper().put(PropertyKeys.onmousedown, onmousedown ); 
342         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEDOWN_PROP);
343     }
344     // Property: onmousemove
345 
346     public String getOnmousemove()
347     {
348         return (String) getStateHelper().eval(PropertyKeys.onmousemove);
349     }
350     
351     public void setOnmousemove(String onmousemove)
352     {
353         getStateHelper().put(PropertyKeys.onmousemove, onmousemove ); 
354         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEMOVE_PROP);
355     }
356     // Property: onmouseout
357 
358     public String getOnmouseout()
359     {
360         return (String) getStateHelper().eval(PropertyKeys.onmouseout);
361     }
362     
363     public void setOnmouseout(String onmouseout)
364     {
365         getStateHelper().put(PropertyKeys.onmouseout, onmouseout ); 
366         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEOUT_PROP);
367     }
368     // Property: onmouseover
369 
370     public String getOnmouseover()
371     {
372         return (String) getStateHelper().eval(PropertyKeys.onmouseover);
373     }
374     
375     public void setOnmouseover(String onmouseover)
376     {
377         getStateHelper().put(PropertyKeys.onmouseover, onmouseover ); 
378         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEOVER_PROP);
379     }
380     // Property: onmouseup
381 
382     public String getOnmouseup()
383     {
384         return (String) getStateHelper().eval(PropertyKeys.onmouseup);
385     }
386     
387     public void setOnmouseup(String onmouseup)
388     {
389         getStateHelper().put(PropertyKeys.onmouseup, onmouseup ); 
390         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEUP_PROP);
391     }
392     // Property: dir
393 
394     public String getDir()
395     {
396         return (String) getStateHelper().eval(PropertyKeys.dir);
397     }
398     
399     public void setDir(String dir)
400     {
401         getStateHelper().put(PropertyKeys.dir, dir ); 
402         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.DIR_PROP);
403     }
404     // Property: lang
405 
406     public String getLang()
407     {
408         return (String) getStateHelper().eval(PropertyKeys.lang);
409     }
410     
411     public void setLang(String lang)
412     {
413         getStateHelper().put(PropertyKeys.lang, lang ); 
414         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.LANG_PROP);
415     }
416     // Property: title
417 
418     public String getTitle()
419     {
420         return (String) getStateHelper().eval(PropertyKeys.title);
421     }
422     
423     public void setTitle(String title)
424     {
425         getStateHelper().put(PropertyKeys.title, title ); 
426         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.TITLE_PROP);
427     }
428     // Property: disabled
429 
430     public boolean isDisabled()
431     {
432         return (Boolean) getStateHelper().eval(PropertyKeys.disabled, false);
433     }
434     
435     public void setDisabled(boolean disabled)
436     {
437         getStateHelper().put(PropertyKeys.disabled, disabled ); 
438         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.DISABLED_PROP);
439     }
440     // Property: readonly
441 
442     public boolean isReadonly()
443     {
444         return (Boolean) getStateHelper().eval(PropertyKeys.readonly, false);
445     }
446     
447     public void setReadonly(boolean readonly)
448     {
449         getStateHelper().put(PropertyKeys.readonly, readonly ); 
450         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.READONLY_PROP);
451     }
452 
453     public void setValueBinding(String name, ValueBinding binding)
454     {
455         super.setValueBinding(name, binding);
456         _CommonPropertyConstants.markProperty(this, name);
457     }
458 
459     public void setValueExpression(String name, ValueExpression expression)
460     {
461         super.setValueExpression(name, expression);
462         _CommonPropertyConstants.markProperty(this, name);
463     }
464 
465     protected enum PropertyKeys
466     {
467          maxlength
468         , redisplay
469         , size
470         , autocomplete
471         , label
472         , style
473         , styleClass
474         , alt
475         , tabindex
476         , onblur
477         , onfocus
478         , accesskey
479         , role
480         , onchange
481         , onselect
482         , onclick
483         , ondblclick
484         , onkeydown
485         , onkeypress
486         , onkeyup
487         , onmousedown
488         , onmousemove
489         , onmouseout
490         , onmouseover
491         , onmouseup
492         , dir
493         , lang
494         , title
495         , disabled
496         , readonly
497     }
498 
499  }