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 org.apache.myfaces.view.facelets.component;
20  
21  import javax.el.ValueExpression;
22  import javax.faces.context.FacesContext;
23  import javax.faces.component.UIComponent;
24  
25  
26  // Generated from class org.apache.myfaces.view.facelets.component._JsfElement.
27  //
28  // WARNING: This file was automatically generated. Do not edit it directly,
29  //          or you will lose your changes.
30  public class JsfElement extends javax.faces.component.UIPanel
31      implements javax.faces.component.behavior.ClientBehaviorHolder
32  {
33  
34      static public final String COMPONENT_FAMILY =
35          "javax.faces.Panel";
36      static public final String COMPONENT_TYPE =
37          "oam.passthrough.Element";
38  
39  
40      public JsfElement()
41      {
42          setRendererType("javax.faces.passthrough.Element");
43      }
44  
45      @Override    
46      public String getFamily()
47      {
48          return COMPONENT_FAMILY;
49      }
50  
51  
52      static private final java.util.Collection<String> CLIENT_EVENTS_LIST = 
53          java.util.Collections.unmodifiableCollection(
54              java.util.Arrays.asList(
55               "load"
56              , "unload"
57              , "blur"
58              , "focus"
59              , "change"
60              , "select"
61              , "click"
62              , "dblclick"
63              , "keydown"
64              , "keypress"
65              , "keyup"
66              , "mousedown"
67              , "mousemove"
68              , "mouseout"
69              , "mouseover"
70              , "mouseup"
71          ));
72  
73      public java.util.Collection<String> getEventNames()
74      {
75          return CLIENT_EVENTS_LIST;
76      }
77  
78      @Override
79      public void addClientBehavior(String eventName, javax.faces.component.behavior.ClientBehavior behavior)
80      {
81          super.addClientBehavior(eventName, behavior);
82          _CommonEventConstants.markEvent(this, eventName);
83      }
84  
85      //ClientBehaviorHolder default: click
86      public String getDefaultEventName()
87      {
88          return "click";
89      }
90  
91      
92      // Property: onload
93  
94      public String getOnload()
95      {
96          return (String) getStateHelper().eval(PropertyKeys.onload);
97      }
98      
99      public void setOnload(String onload)
100     {
101         getStateHelper().put(PropertyKeys.onload, onload ); 
102     }
103     // Property: onunload
104 
105     public String getOnunload()
106     {
107         return (String) getStateHelper().eval(PropertyKeys.onunload);
108     }
109     
110     public void setOnunload(String onunload)
111     {
112         getStateHelper().put(PropertyKeys.onunload, onunload ); 
113     }
114     // Property: style
115 
116     public String getStyle()
117     {
118         return (String) getStateHelper().eval(PropertyKeys.style);
119     }
120     
121     public void setStyle(String style)
122     {
123         getStateHelper().put(PropertyKeys.style, style ); 
124         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.STYLE_PROP);
125     }
126     // Property: styleClass
127 
128     public String getStyleClass()
129     {
130         return (String) getStateHelper().eval(PropertyKeys.styleClass);
131     }
132     
133     public void setStyleClass(String styleClass)
134     {
135         getStateHelper().put(PropertyKeys.styleClass, styleClass ); 
136         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.STYLECLASS_PROP);
137     }
138     // Property: onblur
139 
140     public String getOnblur()
141     {
142         return (String) getStateHelper().eval(PropertyKeys.onblur);
143     }
144     
145     public void setOnblur(String onblur)
146     {
147         getStateHelper().put(PropertyKeys.onblur, onblur ); 
148         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONBLUR_PROP);
149     }
150     // Property: onfocus
151 
152     public String getOnfocus()
153     {
154         return (String) getStateHelper().eval(PropertyKeys.onfocus);
155     }
156     
157     public void setOnfocus(String onfocus)
158     {
159         getStateHelper().put(PropertyKeys.onfocus, onfocus ); 
160         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONFOCUS_PROP);
161     }
162     // Property: onchange
163 
164     public String getOnchange()
165     {
166         return (String) getStateHelper().eval(PropertyKeys.onchange);
167     }
168     
169     public void setOnchange(String onchange)
170     {
171         getStateHelper().put(PropertyKeys.onchange, onchange ); 
172         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONCHANGE_PROP);
173     }
174     // Property: onselect
175 
176     public String getOnselect()
177     {
178         return (String) getStateHelper().eval(PropertyKeys.onselect);
179     }
180     
181     public void setOnselect(String onselect)
182     {
183         getStateHelper().put(PropertyKeys.onselect, onselect ); 
184         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONSELECT_PROP);
185     }
186     // Property: onclick
187 
188     public String getOnclick()
189     {
190         return (String) getStateHelper().eval(PropertyKeys.onclick);
191     }
192     
193     public void setOnclick(String onclick)
194     {
195         getStateHelper().put(PropertyKeys.onclick, onclick ); 
196         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONCLICK_PROP);
197     }
198     // Property: ondblclick
199 
200     public String getOndblclick()
201     {
202         return (String) getStateHelper().eval(PropertyKeys.ondblclick);
203     }
204     
205     public void setOndblclick(String ondblclick)
206     {
207         getStateHelper().put(PropertyKeys.ondblclick, ondblclick ); 
208         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONDBLCLICK_PROP);
209     }
210     // Property: onkeydown
211 
212     public String getOnkeydown()
213     {
214         return (String) getStateHelper().eval(PropertyKeys.onkeydown);
215     }
216     
217     public void setOnkeydown(String onkeydown)
218     {
219         getStateHelper().put(PropertyKeys.onkeydown, onkeydown ); 
220         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONKEYDOWN_PROP);
221     }
222     // Property: onkeypress
223 
224     public String getOnkeypress()
225     {
226         return (String) getStateHelper().eval(PropertyKeys.onkeypress);
227     }
228     
229     public void setOnkeypress(String onkeypress)
230     {
231         getStateHelper().put(PropertyKeys.onkeypress, onkeypress ); 
232         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONKEYPRESS_PROP);
233     }
234     // Property: onkeyup
235 
236     public String getOnkeyup()
237     {
238         return (String) getStateHelper().eval(PropertyKeys.onkeyup);
239     }
240     
241     public void setOnkeyup(String onkeyup)
242     {
243         getStateHelper().put(PropertyKeys.onkeyup, onkeyup ); 
244         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONKEYUP_PROP);
245     }
246     // Property: onmousedown
247 
248     public String getOnmousedown()
249     {
250         return (String) getStateHelper().eval(PropertyKeys.onmousedown);
251     }
252     
253     public void setOnmousedown(String onmousedown)
254     {
255         getStateHelper().put(PropertyKeys.onmousedown, onmousedown ); 
256         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEDOWN_PROP);
257     }
258     // Property: onmousemove
259 
260     public String getOnmousemove()
261     {
262         return (String) getStateHelper().eval(PropertyKeys.onmousemove);
263     }
264     
265     public void setOnmousemove(String onmousemove)
266     {
267         getStateHelper().put(PropertyKeys.onmousemove, onmousemove ); 
268         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEMOVE_PROP);
269     }
270     // Property: onmouseout
271 
272     public String getOnmouseout()
273     {
274         return (String) getStateHelper().eval(PropertyKeys.onmouseout);
275     }
276     
277     public void setOnmouseout(String onmouseout)
278     {
279         getStateHelper().put(PropertyKeys.onmouseout, onmouseout ); 
280         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEOUT_PROP);
281     }
282     // Property: onmouseover
283 
284     public String getOnmouseover()
285     {
286         return (String) getStateHelper().eval(PropertyKeys.onmouseover);
287     }
288     
289     public void setOnmouseover(String onmouseover)
290     {
291         getStateHelper().put(PropertyKeys.onmouseover, onmouseover ); 
292         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEOVER_PROP);
293     }
294     // Property: onmouseup
295 
296     public String getOnmouseup()
297     {
298         return (String) getStateHelper().eval(PropertyKeys.onmouseup);
299     }
300     
301     public void setOnmouseup(String onmouseup)
302     {
303         getStateHelper().put(PropertyKeys.onmouseup, onmouseup ); 
304         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEUP_PROP);
305     }
306 
307 
308     enum PropertyKeys
309     {
310          onload
311         , onunload
312         , style
313         , styleClass
314         , onblur
315         , onfocus
316         , onchange
317         , onselect
318         , onclick
319         , ondblclick
320         , onkeydown
321         , onkeypress
322         , onkeyup
323         , onmousedown
324         , onmousemove
325         , onmouseout
326         , onmouseover
327         , onmouseup
328     }
329 
330  }