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  
26  
27  // Generated from class javax.faces.component.html._HtmlPanelGroup.
28  //
29  // WARNING: This file was automatically generated. Do not edit it directly,
30  //          or you will lose your changes.
31  public class HtmlPanelGroup extends javax.faces.component.UIPanel
32      implements javax.faces.component.behavior.ClientBehaviorHolder
33  {
34  
35      static public final String COMPONENT_FAMILY =
36          "javax.faces.Panel";
37      static public final String COMPONENT_TYPE =
38          "javax.faces.HtmlPanelGroup";
39  
40  
41      public HtmlPanelGroup()
42      {
43          setRendererType("javax.faces.Group");
44      }
45  
46      @Override    
47      public String getFamily()
48      {
49          return COMPONENT_FAMILY;
50      }
51  
52  
53      static private final java.util.Collection<String> CLIENT_EVENTS_LIST = 
54          java.util.Collections.unmodifiableCollection(
55              java.util.Arrays.asList(
56               "click"
57              , "dblclick"
58              , "keydown"
59              , "keypress"
60              , "keyup"
61              , "mousedown"
62              , "mousemove"
63              , "mouseout"
64              , "mouseover"
65              , "mouseup"
66          ));
67  
68      public java.util.Collection<String> getEventNames()
69      {
70          return CLIENT_EVENTS_LIST;
71      }
72  
73      @Override
74      public void addClientBehavior(String eventName, javax.faces.component.behavior.ClientBehavior behavior)
75      {
76          super.addClientBehavior(eventName, behavior);
77          _CommonEventConstants.markEvent(this, eventName);
78      }
79  
80      
81      // Property: layout
82  
83      public String getLayout()
84      {
85          return (String) getStateHelper().eval(PropertyKeys.layout);
86      }
87      
88      public void setLayout(String layout)
89      {
90          getStateHelper().put(PropertyKeys.layout, layout ); 
91      }
92      // Property: style
93  
94      public String getStyle()
95      {
96          return (String) getStateHelper().eval(PropertyKeys.style);
97      }
98      
99      public void setStyle(String style)
100     {
101         getStateHelper().put(PropertyKeys.style, style ); 
102         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.STYLE_PROP);
103     }
104     // Property: styleClass
105 
106     public String getStyleClass()
107     {
108         return (String) getStateHelper().eval(PropertyKeys.styleClass);
109     }
110     
111     public void setStyleClass(String styleClass)
112     {
113         getStateHelper().put(PropertyKeys.styleClass, styleClass ); 
114         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.STYLECLASS_PROP);
115     }
116     // Property: onclick
117 
118     public String getOnclick()
119     {
120         return (String) getStateHelper().eval(PropertyKeys.onclick);
121     }
122     
123     public void setOnclick(String onclick)
124     {
125         getStateHelper().put(PropertyKeys.onclick, onclick ); 
126         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONCLICK_PROP);
127     }
128     // Property: ondblclick
129 
130     public String getOndblclick()
131     {
132         return (String) getStateHelper().eval(PropertyKeys.ondblclick);
133     }
134     
135     public void setOndblclick(String ondblclick)
136     {
137         getStateHelper().put(PropertyKeys.ondblclick, ondblclick ); 
138         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONDBLCLICK_PROP);
139     }
140     // Property: onkeydown
141 
142     public String getOnkeydown()
143     {
144         return (String) getStateHelper().eval(PropertyKeys.onkeydown);
145     }
146     
147     public void setOnkeydown(String onkeydown)
148     {
149         getStateHelper().put(PropertyKeys.onkeydown, onkeydown ); 
150         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONKEYDOWN_PROP);
151     }
152     // Property: onkeypress
153 
154     public String getOnkeypress()
155     {
156         return (String) getStateHelper().eval(PropertyKeys.onkeypress);
157     }
158     
159     public void setOnkeypress(String onkeypress)
160     {
161         getStateHelper().put(PropertyKeys.onkeypress, onkeypress ); 
162         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONKEYPRESS_PROP);
163     }
164     // Property: onkeyup
165 
166     public String getOnkeyup()
167     {
168         return (String) getStateHelper().eval(PropertyKeys.onkeyup);
169     }
170     
171     public void setOnkeyup(String onkeyup)
172     {
173         getStateHelper().put(PropertyKeys.onkeyup, onkeyup ); 
174         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONKEYUP_PROP);
175     }
176     // Property: onmousedown
177 
178     public String getOnmousedown()
179     {
180         return (String) getStateHelper().eval(PropertyKeys.onmousedown);
181     }
182     
183     public void setOnmousedown(String onmousedown)
184     {
185         getStateHelper().put(PropertyKeys.onmousedown, onmousedown ); 
186         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEDOWN_PROP);
187     }
188     // Property: onmousemove
189 
190     public String getOnmousemove()
191     {
192         return (String) getStateHelper().eval(PropertyKeys.onmousemove);
193     }
194     
195     public void setOnmousemove(String onmousemove)
196     {
197         getStateHelper().put(PropertyKeys.onmousemove, onmousemove ); 
198         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEMOVE_PROP);
199     }
200     // Property: onmouseout
201 
202     public String getOnmouseout()
203     {
204         return (String) getStateHelper().eval(PropertyKeys.onmouseout);
205     }
206     
207     public void setOnmouseout(String onmouseout)
208     {
209         getStateHelper().put(PropertyKeys.onmouseout, onmouseout ); 
210         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEOUT_PROP);
211     }
212     // Property: onmouseover
213 
214     public String getOnmouseover()
215     {
216         return (String) getStateHelper().eval(PropertyKeys.onmouseover);
217     }
218     
219     public void setOnmouseover(String onmouseover)
220     {
221         getStateHelper().put(PropertyKeys.onmouseover, onmouseover ); 
222         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEOVER_PROP);
223     }
224     // Property: onmouseup
225 
226     public String getOnmouseup()
227     {
228         return (String) getStateHelper().eval(PropertyKeys.onmouseup);
229     }
230     
231     public void setOnmouseup(String onmouseup)
232     {
233         getStateHelper().put(PropertyKeys.onmouseup, onmouseup ); 
234         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEUP_PROP);
235     }
236 
237     public void setValueBinding(String name, ValueBinding binding)
238     {
239         super.setValueBinding(name, binding);
240         _CommonPropertyConstants.markProperty(this, name);
241     }
242 
243     public void setValueExpression(String name, ValueExpression expression)
244     {
245         super.setValueExpression(name, expression);
246         _CommonPropertyConstants.markProperty(this, name);
247     }
248 
249     protected enum PropertyKeys
250     {
251          layout
252         , style
253         , styleClass
254         , onclick
255         , ondblclick
256         , onkeydown
257         , onkeypress
258         , onkeyup
259         , onmousedown
260         , onmousemove
261         , onmouseout
262         , onmouseover
263         , onmouseup
264     }
265 
266  }