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