1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
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 | |
|
28 | |
|
29 | |
|
30 | |
|
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 | 8 | { |
43 | 8 | setRendererType("javax.faces.Group"); |
44 | 8 | } |
45 | |
|
46 | |
@Override |
47 | |
public String getFamily() |
48 | |
{ |
49 | 0 | return COMPONENT_FAMILY; |
50 | |
} |
51 | |
|
52 | |
|
53 | 2 | 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 | 0 | return CLIENT_EVENTS_LIST; |
71 | |
} |
72 | |
|
73 | |
@Override |
74 | |
public void addClientBehavior(String eventName, javax.faces.component.behavior.ClientBehavior behavior) |
75 | |
{ |
76 | 0 | super.addClientBehavior(eventName, behavior); |
77 | 0 | _CommonEventConstants.markEvent(this, eventName); |
78 | 0 | } |
79 | |
|
80 | |
|
81 | |
|
82 | |
|
83 | |
public String getLayout() |
84 | |
{ |
85 | 0 | return (String) getStateHelper().eval(PropertyKeys.layout); |
86 | |
} |
87 | |
|
88 | |
public void setLayout(String layout) |
89 | |
{ |
90 | 0 | getStateHelper().put(PropertyKeys.layout, layout ); |
91 | 0 | } |
92 | |
|
93 | |
|
94 | |
public String getStyle() |
95 | |
{ |
96 | 0 | return (String) getStateHelper().eval(PropertyKeys.style); |
97 | |
} |
98 | |
|
99 | |
public void setStyle(String style) |
100 | |
{ |
101 | 0 | getStateHelper().put(PropertyKeys.style, style ); |
102 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.STYLE_PROP); |
103 | 0 | } |
104 | |
|
105 | |
|
106 | |
public String getStyleClass() |
107 | |
{ |
108 | 0 | return (String) getStateHelper().eval(PropertyKeys.styleClass); |
109 | |
} |
110 | |
|
111 | |
public void setStyleClass(String styleClass) |
112 | |
{ |
113 | 0 | getStateHelper().put(PropertyKeys.styleClass, styleClass ); |
114 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.STYLECLASS_PROP); |
115 | 0 | } |
116 | |
|
117 | |
|
118 | |
public String getOnclick() |
119 | |
{ |
120 | 0 | return (String) getStateHelper().eval(PropertyKeys.onclick); |
121 | |
} |
122 | |
|
123 | |
public void setOnclick(String onclick) |
124 | |
{ |
125 | 0 | getStateHelper().put(PropertyKeys.onclick, onclick ); |
126 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONCLICK_PROP); |
127 | 0 | } |
128 | |
|
129 | |
|
130 | |
public String getOndblclick() |
131 | |
{ |
132 | 0 | return (String) getStateHelper().eval(PropertyKeys.ondblclick); |
133 | |
} |
134 | |
|
135 | |
public void setOndblclick(String ondblclick) |
136 | |
{ |
137 | 0 | getStateHelper().put(PropertyKeys.ondblclick, ondblclick ); |
138 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONDBLCLICK_PROP); |
139 | 0 | } |
140 | |
|
141 | |
|
142 | |
public String getOnkeydown() |
143 | |
{ |
144 | 0 | return (String) getStateHelper().eval(PropertyKeys.onkeydown); |
145 | |
} |
146 | |
|
147 | |
public void setOnkeydown(String onkeydown) |
148 | |
{ |
149 | 0 | getStateHelper().put(PropertyKeys.onkeydown, onkeydown ); |
150 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONKEYDOWN_PROP); |
151 | 0 | } |
152 | |
|
153 | |
|
154 | |
public String getOnkeypress() |
155 | |
{ |
156 | 0 | return (String) getStateHelper().eval(PropertyKeys.onkeypress); |
157 | |
} |
158 | |
|
159 | |
public void setOnkeypress(String onkeypress) |
160 | |
{ |
161 | 0 | getStateHelper().put(PropertyKeys.onkeypress, onkeypress ); |
162 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONKEYPRESS_PROP); |
163 | 0 | } |
164 | |
|
165 | |
|
166 | |
public String getOnkeyup() |
167 | |
{ |
168 | 0 | return (String) getStateHelper().eval(PropertyKeys.onkeyup); |
169 | |
} |
170 | |
|
171 | |
public void setOnkeyup(String onkeyup) |
172 | |
{ |
173 | 0 | getStateHelper().put(PropertyKeys.onkeyup, onkeyup ); |
174 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONKEYUP_PROP); |
175 | 0 | } |
176 | |
|
177 | |
|
178 | |
public String getOnmousedown() |
179 | |
{ |
180 | 0 | return (String) getStateHelper().eval(PropertyKeys.onmousedown); |
181 | |
} |
182 | |
|
183 | |
public void setOnmousedown(String onmousedown) |
184 | |
{ |
185 | 0 | getStateHelper().put(PropertyKeys.onmousedown, onmousedown ); |
186 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEDOWN_PROP); |
187 | 0 | } |
188 | |
|
189 | |
|
190 | |
public String getOnmousemove() |
191 | |
{ |
192 | 0 | return (String) getStateHelper().eval(PropertyKeys.onmousemove); |
193 | |
} |
194 | |
|
195 | |
public void setOnmousemove(String onmousemove) |
196 | |
{ |
197 | 0 | getStateHelper().put(PropertyKeys.onmousemove, onmousemove ); |
198 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEMOVE_PROP); |
199 | 0 | } |
200 | |
|
201 | |
|
202 | |
public String getOnmouseout() |
203 | |
{ |
204 | 0 | return (String) getStateHelper().eval(PropertyKeys.onmouseout); |
205 | |
} |
206 | |
|
207 | |
public void setOnmouseout(String onmouseout) |
208 | |
{ |
209 | 0 | getStateHelper().put(PropertyKeys.onmouseout, onmouseout ); |
210 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEOUT_PROP); |
211 | 0 | } |
212 | |
|
213 | |
|
214 | |
public String getOnmouseover() |
215 | |
{ |
216 | 0 | return (String) getStateHelper().eval(PropertyKeys.onmouseover); |
217 | |
} |
218 | |
|
219 | |
public void setOnmouseover(String onmouseover) |
220 | |
{ |
221 | 0 | getStateHelper().put(PropertyKeys.onmouseover, onmouseover ); |
222 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEOVER_PROP); |
223 | 0 | } |
224 | |
|
225 | |
|
226 | |
public String getOnmouseup() |
227 | |
{ |
228 | 0 | return (String) getStateHelper().eval(PropertyKeys.onmouseup); |
229 | |
} |
230 | |
|
231 | |
public void setOnmouseup(String onmouseup) |
232 | |
{ |
233 | 0 | getStateHelper().put(PropertyKeys.onmouseup, onmouseup ); |
234 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEUP_PROP); |
235 | 0 | } |
236 | |
|
237 | |
public void setValueBinding(String name, ValueBinding binding) |
238 | |
{ |
239 | 0 | super.setValueBinding(name, binding); |
240 | 0 | _CommonPropertyConstants.markProperty(this, name); |
241 | 0 | } |
242 | |
|
243 | |
public void setValueExpression(String name, ValueExpression expression) |
244 | |
{ |
245 | 0 | super.setValueExpression(name, expression); |
246 | 0 | _CommonPropertyConstants.markProperty(this, name); |
247 | 0 | } |
248 | |
|
249 | 0 | protected enum PropertyKeys |
250 | |
{ |
251 | 0 | layout |
252 | 0 | , style |
253 | 0 | , styleClass |
254 | 0 | , onclick |
255 | 0 | , ondblclick |
256 | 0 | , onkeydown |
257 | 0 | , onkeypress |
258 | 0 | , onkeyup |
259 | 0 | , onmousedown |
260 | 0 | , onmousemove |
261 | 0 | , onmouseout |
262 | 0 | , onmouseover |
263 | 0 | , onmouseup |
264 | |
} |
265 | |
|
266 | |
} |