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  
27  
28  // Generated from class javax.faces.component.html._HtmlOutcomeTargetButton.
29  //
30  // WARNING: This file was automatically generated. Do not edit it directly,
31  //          or you will lose your changes.
32  public class HtmlOutcomeTargetButton extends javax.faces.component.UIOutcomeTarget
33      implements javax.faces.component.behavior.ClientBehaviorHolder
34  {
35  
36      static public final String COMPONENT_FAMILY =
37          "javax.faces.OutcomeTarget";
38      static public final String COMPONENT_TYPE =
39          "javax.faces.HtmlOutcomeTargetButton";
40  
41  
42      public HtmlOutcomeTargetButton()
43      {
44          setRendererType("javax.faces.Button");
45      }
46  
47      @Override    
48      public String getFamily()
49      {
50          return COMPONENT_FAMILY;
51      }
52  
53  
54      static private final java.util.Collection<String> CLIENT_EVENTS_LIST = 
55          java.util.Collections.unmodifiableCollection(
56              java.util.Arrays.asList(
57               "blur"
58              , "focus"
59              , "click"
60              , "dblclick"
61              , "keydown"
62              , "keypress"
63              , "keyup"
64              , "mousedown"
65              , "mousemove"
66              , "mouseout"
67              , "mouseover"
68              , "mouseup"
69          ));
70  
71      public java.util.Collection<String> getEventNames()
72      {
73          return CLIENT_EVENTS_LIST;
74      }
75  
76      @Override
77      public void addClientBehavior(String eventName, javax.faces.component.behavior.ClientBehavior behavior)
78      {
79          super.addClientBehavior(eventName, behavior);
80          _CommonEventConstants.markEvent(this, eventName);
81      }
82  
83      
84      // Property: image
85  
86      public String getImage()
87      {
88          return (String) getStateHelper().eval(PropertyKeys.image);
89      }
90      
91      public void setImage(String image)
92      {
93          getStateHelper().put(PropertyKeys.image, image ); 
94      }
95      // Property: style
96  
97      public String getStyle()
98      {
99          return (String) getStateHelper().eval(PropertyKeys.style);
100     }
101     
102     public void setStyle(String style)
103     {
104         getStateHelper().put(PropertyKeys.style, style ); 
105         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.STYLE_PROP);
106     }
107     // Property: styleClass
108 
109     public String getStyleClass()
110     {
111         return (String) getStateHelper().eval(PropertyKeys.styleClass);
112     }
113     
114     public void setStyleClass(String styleClass)
115     {
116         getStateHelper().put(PropertyKeys.styleClass, styleClass ); 
117         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.STYLECLASS_PROP);
118     }
119     // Property: alt
120 
121     public String getAlt()
122     {
123         return (String) getStateHelper().eval(PropertyKeys.alt);
124     }
125     
126     public void setAlt(String alt)
127     {
128         getStateHelper().put(PropertyKeys.alt, alt ); 
129         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ALT_PROP);
130     }
131     // Property: tabindex
132 
133     public String getTabindex()
134     {
135         return (String) getStateHelper().eval(PropertyKeys.tabindex);
136     }
137     
138     public void setTabindex(String tabindex)
139     {
140         getStateHelper().put(PropertyKeys.tabindex, tabindex ); 
141         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.TABINDEX_PROP);
142     }
143     // Property: onblur
144 
145     public String getOnblur()
146     {
147         return (String) getStateHelper().eval(PropertyKeys.onblur);
148     }
149     
150     public void setOnblur(String onblur)
151     {
152         getStateHelper().put(PropertyKeys.onblur, onblur ); 
153         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONBLUR_PROP);
154     }
155     // Property: onfocus
156 
157     public String getOnfocus()
158     {
159         return (String) getStateHelper().eval(PropertyKeys.onfocus);
160     }
161     
162     public void setOnfocus(String onfocus)
163     {
164         getStateHelper().put(PropertyKeys.onfocus, onfocus ); 
165         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONFOCUS_PROP);
166     }
167     // Property: accesskey
168 
169     public String getAccesskey()
170     {
171         return (String) getStateHelper().eval(PropertyKeys.accesskey);
172     }
173     
174     public void setAccesskey(String accesskey)
175     {
176         getStateHelper().put(PropertyKeys.accesskey, accesskey ); 
177         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ACCESSKEY_PROP);
178     }
179     // Property: role
180 
181     public String getRole()
182     {
183         return (String) getStateHelper().eval(PropertyKeys.role);
184     }
185     
186     public void setRole(String role)
187     {
188         getStateHelper().put(PropertyKeys.role, role ); 
189         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ROLE_PROP);
190     }
191     // Property: onclick
192 
193     public String getOnclick()
194     {
195         return (String) getStateHelper().eval(PropertyKeys.onclick);
196     }
197     
198     public void setOnclick(String onclick)
199     {
200         getStateHelper().put(PropertyKeys.onclick, onclick ); 
201         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONCLICK_PROP);
202     }
203     // Property: ondblclick
204 
205     public String getOndblclick()
206     {
207         return (String) getStateHelper().eval(PropertyKeys.ondblclick);
208     }
209     
210     public void setOndblclick(String ondblclick)
211     {
212         getStateHelper().put(PropertyKeys.ondblclick, ondblclick ); 
213         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONDBLCLICK_PROP);
214     }
215     // Property: onkeydown
216 
217     public String getOnkeydown()
218     {
219         return (String) getStateHelper().eval(PropertyKeys.onkeydown);
220     }
221     
222     public void setOnkeydown(String onkeydown)
223     {
224         getStateHelper().put(PropertyKeys.onkeydown, onkeydown ); 
225         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONKEYDOWN_PROP);
226     }
227     // Property: onkeypress
228 
229     public String getOnkeypress()
230     {
231         return (String) getStateHelper().eval(PropertyKeys.onkeypress);
232     }
233     
234     public void setOnkeypress(String onkeypress)
235     {
236         getStateHelper().put(PropertyKeys.onkeypress, onkeypress ); 
237         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONKEYPRESS_PROP);
238     }
239     // Property: onkeyup
240 
241     public String getOnkeyup()
242     {
243         return (String) getStateHelper().eval(PropertyKeys.onkeyup);
244     }
245     
246     public void setOnkeyup(String onkeyup)
247     {
248         getStateHelper().put(PropertyKeys.onkeyup, onkeyup ); 
249         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONKEYUP_PROP);
250     }
251     // Property: onmousedown
252 
253     public String getOnmousedown()
254     {
255         return (String) getStateHelper().eval(PropertyKeys.onmousedown);
256     }
257     
258     public void setOnmousedown(String onmousedown)
259     {
260         getStateHelper().put(PropertyKeys.onmousedown, onmousedown ); 
261         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEDOWN_PROP);
262     }
263     // Property: onmousemove
264 
265     public String getOnmousemove()
266     {
267         return (String) getStateHelper().eval(PropertyKeys.onmousemove);
268     }
269     
270     public void setOnmousemove(String onmousemove)
271     {
272         getStateHelper().put(PropertyKeys.onmousemove, onmousemove ); 
273         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEMOVE_PROP);
274     }
275     // Property: onmouseout
276 
277     public String getOnmouseout()
278     {
279         return (String) getStateHelper().eval(PropertyKeys.onmouseout);
280     }
281     
282     public void setOnmouseout(String onmouseout)
283     {
284         getStateHelper().put(PropertyKeys.onmouseout, onmouseout ); 
285         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEOUT_PROP);
286     }
287     // Property: onmouseover
288 
289     public String getOnmouseover()
290     {
291         return (String) getStateHelper().eval(PropertyKeys.onmouseover);
292     }
293     
294     public void setOnmouseover(String onmouseover)
295     {
296         getStateHelper().put(PropertyKeys.onmouseover, onmouseover ); 
297         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEOVER_PROP);
298     }
299     // Property: onmouseup
300 
301     public String getOnmouseup()
302     {
303         return (String) getStateHelper().eval(PropertyKeys.onmouseup);
304     }
305     
306     public void setOnmouseup(String onmouseup)
307     {
308         getStateHelper().put(PropertyKeys.onmouseup, onmouseup ); 
309         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEUP_PROP);
310     }
311     // Property: dir
312 
313     public String getDir()
314     {
315         return (String) getStateHelper().eval(PropertyKeys.dir);
316     }
317     
318     public void setDir(String dir)
319     {
320         getStateHelper().put(PropertyKeys.dir, dir ); 
321         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.DIR_PROP);
322     }
323     // Property: lang
324 
325     public String getLang()
326     {
327         return (String) getStateHelper().eval(PropertyKeys.lang);
328     }
329     
330     public void setLang(String lang)
331     {
332         getStateHelper().put(PropertyKeys.lang, lang ); 
333         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.LANG_PROP);
334     }
335     // Property: title
336 
337     public String getTitle()
338     {
339         return (String) getStateHelper().eval(PropertyKeys.title);
340     }
341     
342     public void setTitle(String title)
343     {
344         getStateHelper().put(PropertyKeys.title, title ); 
345         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.TITLE_PROP);
346     }
347 
348     public void setValueBinding(String name, ValueBinding binding)
349     {
350         super.setValueBinding(name, binding);
351         _CommonPropertyConstants.markProperty(this, name);
352     }
353 
354     public void setValueExpression(String name, ValueExpression expression)
355     {
356         super.setValueExpression(name, expression);
357         _CommonPropertyConstants.markProperty(this, name);
358     }
359 
360     protected enum PropertyKeys
361     {
362          image
363         , style
364         , styleClass
365         , alt
366         , tabindex
367         , onblur
368         , onfocus
369         , accesskey
370         , role
371         , onclick
372         , ondblclick
373         , onkeydown
374         , onkeypress
375         , onkeyup
376         , onmousedown
377         , onmousemove
378         , onmouseout
379         , onmouseover
380         , onmouseup
381         , dir
382         , lang
383         , title
384     }
385 
386  }