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._HtmlSelectBooleanCheckbox.
30  //
31  // WARNING: This file was automatically generated. Do not edit it directly,
32  //          or you will lose your changes.
33  public class HtmlSelectBooleanCheckbox extends javax.faces.component.UISelectBoolean
34      implements javax.faces.component.behavior.ClientBehaviorHolder
35  {
36  
37      static public final String COMPONENT_FAMILY =
38          "javax.faces.SelectBoolean";
39      static public final String COMPONENT_TYPE =
40          "javax.faces.HtmlSelectBooleanCheckbox";
41  
42  
43      public HtmlSelectBooleanCheckbox()
44      {
45          setRendererType("javax.faces.Checkbox");
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              , "click"
61              , "dblclick"
62              , "keydown"
63              , "keypress"
64              , "keyup"
65              , "mousedown"
66              , "mousemove"
67              , "mouseout"
68              , "mouseover"
69              , "mouseup"
70              , "change"
71              , "select"
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: label
95  
96      public String getLabel()
97      {
98          return (String) getStateHelper().eval(PropertyKeys.label);
99      }
100     
101     public void setLabel(String label)
102     {
103         getStateHelper().put(PropertyKeys.label, label ); 
104         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.LABEL_PROP);
105     }
106     // Property: style
107 
108     public String getStyle()
109     {
110         return (String) getStateHelper().eval(PropertyKeys.style);
111     }
112     
113     public void setStyle(String style)
114     {
115         getStateHelper().put(PropertyKeys.style, style ); 
116         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.STYLE_PROP);
117     }
118     // Property: styleClass
119 
120     public String getStyleClass()
121     {
122         return (String) getStateHelper().eval(PropertyKeys.styleClass);
123     }
124     
125     public void setStyleClass(String styleClass)
126     {
127         getStateHelper().put(PropertyKeys.styleClass, styleClass ); 
128         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.STYLECLASS_PROP);
129     }
130     // Property: tabindex
131 
132     public String getTabindex()
133     {
134         return (String) getStateHelper().eval(PropertyKeys.tabindex);
135     }
136     
137     public void setTabindex(String tabindex)
138     {
139         getStateHelper().put(PropertyKeys.tabindex, tabindex ); 
140         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.TABINDEX_PROP);
141     }
142     // Property: onblur
143 
144     public String getOnblur()
145     {
146         return (String) getStateHelper().eval(PropertyKeys.onblur);
147     }
148     
149     public void setOnblur(String onblur)
150     {
151         getStateHelper().put(PropertyKeys.onblur, onblur ); 
152         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONBLUR_PROP);
153     }
154     // Property: onfocus
155 
156     public String getOnfocus()
157     {
158         return (String) getStateHelper().eval(PropertyKeys.onfocus);
159     }
160     
161     public void setOnfocus(String onfocus)
162     {
163         getStateHelper().put(PropertyKeys.onfocus, onfocus ); 
164         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONFOCUS_PROP);
165     }
166     // Property: accesskey
167 
168     public String getAccesskey()
169     {
170         return (String) getStateHelper().eval(PropertyKeys.accesskey);
171     }
172     
173     public void setAccesskey(String accesskey)
174     {
175         getStateHelper().put(PropertyKeys.accesskey, accesskey ); 
176         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ACCESSKEY_PROP);
177     }
178     // Property: role
179 
180     public String getRole()
181     {
182         return (String) getStateHelper().eval(PropertyKeys.role);
183     }
184     
185     public void setRole(String role)
186     {
187         getStateHelper().put(PropertyKeys.role, role ); 
188         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ROLE_PROP);
189     }
190     // Property: onclick
191 
192     public String getOnclick()
193     {
194         return (String) getStateHelper().eval(PropertyKeys.onclick);
195     }
196     
197     public void setOnclick(String onclick)
198     {
199         getStateHelper().put(PropertyKeys.onclick, onclick ); 
200         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONCLICK_PROP);
201     }
202     // Property: ondblclick
203 
204     public String getOndblclick()
205     {
206         return (String) getStateHelper().eval(PropertyKeys.ondblclick);
207     }
208     
209     public void setOndblclick(String ondblclick)
210     {
211         getStateHelper().put(PropertyKeys.ondblclick, ondblclick ); 
212         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONDBLCLICK_PROP);
213     }
214     // Property: onkeydown
215 
216     public String getOnkeydown()
217     {
218         return (String) getStateHelper().eval(PropertyKeys.onkeydown);
219     }
220     
221     public void setOnkeydown(String onkeydown)
222     {
223         getStateHelper().put(PropertyKeys.onkeydown, onkeydown ); 
224         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONKEYDOWN_PROP);
225     }
226     // Property: onkeypress
227 
228     public String getOnkeypress()
229     {
230         return (String) getStateHelper().eval(PropertyKeys.onkeypress);
231     }
232     
233     public void setOnkeypress(String onkeypress)
234     {
235         getStateHelper().put(PropertyKeys.onkeypress, onkeypress ); 
236         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONKEYPRESS_PROP);
237     }
238     // Property: onkeyup
239 
240     public String getOnkeyup()
241     {
242         return (String) getStateHelper().eval(PropertyKeys.onkeyup);
243     }
244     
245     public void setOnkeyup(String onkeyup)
246     {
247         getStateHelper().put(PropertyKeys.onkeyup, onkeyup ); 
248         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONKEYUP_PROP);
249     }
250     // Property: onmousedown
251 
252     public String getOnmousedown()
253     {
254         return (String) getStateHelper().eval(PropertyKeys.onmousedown);
255     }
256     
257     public void setOnmousedown(String onmousedown)
258     {
259         getStateHelper().put(PropertyKeys.onmousedown, onmousedown ); 
260         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEDOWN_PROP);
261     }
262     // Property: onmousemove
263 
264     public String getOnmousemove()
265     {
266         return (String) getStateHelper().eval(PropertyKeys.onmousemove);
267     }
268     
269     public void setOnmousemove(String onmousemove)
270     {
271         getStateHelper().put(PropertyKeys.onmousemove, onmousemove ); 
272         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEMOVE_PROP);
273     }
274     // Property: onmouseout
275 
276     public String getOnmouseout()
277     {
278         return (String) getStateHelper().eval(PropertyKeys.onmouseout);
279     }
280     
281     public void setOnmouseout(String onmouseout)
282     {
283         getStateHelper().put(PropertyKeys.onmouseout, onmouseout ); 
284         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEOUT_PROP);
285     }
286     // Property: onmouseover
287 
288     public String getOnmouseover()
289     {
290         return (String) getStateHelper().eval(PropertyKeys.onmouseover);
291     }
292     
293     public void setOnmouseover(String onmouseover)
294     {
295         getStateHelper().put(PropertyKeys.onmouseover, onmouseover ); 
296         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEOVER_PROP);
297     }
298     // Property: onmouseup
299 
300     public String getOnmouseup()
301     {
302         return (String) getStateHelper().eval(PropertyKeys.onmouseup);
303     }
304     
305     public void setOnmouseup(String onmouseup)
306     {
307         getStateHelper().put(PropertyKeys.onmouseup, onmouseup ); 
308         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEUP_PROP);
309     }
310     // Property: onchange
311 
312     public String getOnchange()
313     {
314         return (String) getStateHelper().eval(PropertyKeys.onchange);
315     }
316     
317     public void setOnchange(String onchange)
318     {
319         getStateHelper().put(PropertyKeys.onchange, onchange ); 
320         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONCHANGE_PROP);
321     }
322     // Property: onselect
323 
324     public String getOnselect()
325     {
326         return (String) getStateHelper().eval(PropertyKeys.onselect);
327     }
328     
329     public void setOnselect(String onselect)
330     {
331         getStateHelper().put(PropertyKeys.onselect, onselect ); 
332         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONSELECT_PROP);
333     }
334     // Property: dir
335 
336     public String getDir()
337     {
338         return (String) getStateHelper().eval(PropertyKeys.dir);
339     }
340     
341     public void setDir(String dir)
342     {
343         getStateHelper().put(PropertyKeys.dir, dir ); 
344         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.DIR_PROP);
345     }
346     // Property: lang
347 
348     public String getLang()
349     {
350         return (String) getStateHelper().eval(PropertyKeys.lang);
351     }
352     
353     public void setLang(String lang)
354     {
355         getStateHelper().put(PropertyKeys.lang, lang ); 
356         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.LANG_PROP);
357     }
358     // Property: title
359 
360     public String getTitle()
361     {
362         return (String) getStateHelper().eval(PropertyKeys.title);
363     }
364     
365     public void setTitle(String title)
366     {
367         getStateHelper().put(PropertyKeys.title, title ); 
368         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.TITLE_PROP);
369     }
370     // Property: disabled
371 
372     public boolean isDisabled()
373     {
374         return (Boolean) getStateHelper().eval(PropertyKeys.disabled, false);
375     }
376     
377     public void setDisabled(boolean disabled)
378     {
379         getStateHelper().put(PropertyKeys.disabled, disabled ); 
380         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.DISABLED_PROP);
381     }
382     // Property: readonly
383 
384     public boolean isReadonly()
385     {
386         return (Boolean) getStateHelper().eval(PropertyKeys.readonly, false);
387     }
388     
389     public void setReadonly(boolean readonly)
390     {
391         getStateHelper().put(PropertyKeys.readonly, readonly ); 
392         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.READONLY_PROP);
393     }
394 
395     public void setValueBinding(String name, ValueBinding binding)
396     {
397         super.setValueBinding(name, binding);
398         _CommonPropertyConstants.markProperty(this, name);
399     }
400 
401     public void setValueExpression(String name, ValueExpression expression)
402     {
403         super.setValueExpression(name, expression);
404         _CommonPropertyConstants.markProperty(this, name);
405     }
406 
407     protected enum PropertyKeys
408     {
409          label
410         , style
411         , styleClass
412         , tabindex
413         , onblur
414         , onfocus
415         , accesskey
416         , role
417         , onclick
418         , ondblclick
419         , onkeydown
420         , onkeypress
421         , onkeyup
422         , onmousedown
423         , onmousemove
424         , onmouseout
425         , onmouseover
426         , onmouseup
427         , onchange
428         , onselect
429         , dir
430         , lang
431         , title
432         , disabled
433         , readonly
434     }
435 
436  }