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 HtmlPanelGrid 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.HtmlPanelGrid"; |
39 | |
|
40 | |
|
41 | |
public HtmlPanelGrid() |
42 | 0 | { |
43 | 0 | setRendererType("javax.faces.Grid"); |
44 | 0 | } |
45 | |
|
46 | |
@Override |
47 | |
public String getFamily() |
48 | |
{ |
49 | 0 | return COMPONENT_FAMILY; |
50 | |
} |
51 | |
|
52 | |
|
53 | 0 | 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 getBgcolor() |
84 | |
{ |
85 | 0 | return (String) getStateHelper().eval(PropertyKeys.bgcolor); |
86 | |
} |
87 | |
|
88 | |
public void setBgcolor(String bgcolor) |
89 | |
{ |
90 | 0 | getStateHelper().put(PropertyKeys.bgcolor, bgcolor ); |
91 | 0 | } |
92 | |
|
93 | |
|
94 | |
public String getBodyrows() |
95 | |
{ |
96 | 0 | return (String) getStateHelper().eval(PropertyKeys.bodyrows); |
97 | |
} |
98 | |
|
99 | |
public void setBodyrows(String bodyrows) |
100 | |
{ |
101 | 0 | getStateHelper().put(PropertyKeys.bodyrows, bodyrows ); |
102 | 0 | } |
103 | |
|
104 | |
|
105 | |
public int getBorder() |
106 | |
{ |
107 | 0 | return (Integer) getStateHelper().eval(PropertyKeys.border, Integer.MIN_VALUE); |
108 | |
} |
109 | |
|
110 | |
public void setBorder(int border) |
111 | |
{ |
112 | 0 | getStateHelper().put(PropertyKeys.border, border ); |
113 | 0 | } |
114 | |
|
115 | |
|
116 | |
public String getCellpadding() |
117 | |
{ |
118 | 0 | return (String) getStateHelper().eval(PropertyKeys.cellpadding); |
119 | |
} |
120 | |
|
121 | |
public void setCellpadding(String cellpadding) |
122 | |
{ |
123 | 0 | getStateHelper().put(PropertyKeys.cellpadding, cellpadding ); |
124 | 0 | } |
125 | |
|
126 | |
|
127 | |
public String getCellspacing() |
128 | |
{ |
129 | 0 | return (String) getStateHelper().eval(PropertyKeys.cellspacing); |
130 | |
} |
131 | |
|
132 | |
public void setCellspacing(String cellspacing) |
133 | |
{ |
134 | 0 | getStateHelper().put(PropertyKeys.cellspacing, cellspacing ); |
135 | 0 | } |
136 | |
|
137 | |
|
138 | |
public String getColumnClasses() |
139 | |
{ |
140 | 0 | return (String) getStateHelper().eval(PropertyKeys.columnClasses); |
141 | |
} |
142 | |
|
143 | |
public void setColumnClasses(String columnClasses) |
144 | |
{ |
145 | 0 | getStateHelper().put(PropertyKeys.columnClasses, columnClasses ); |
146 | 0 | } |
147 | |
|
148 | |
|
149 | |
public int getColumns() |
150 | |
{ |
151 | 0 | return (Integer) getStateHelper().eval(PropertyKeys.columns, 1); |
152 | |
} |
153 | |
|
154 | |
public void setColumns(int columns) |
155 | |
{ |
156 | 0 | getStateHelper().put(PropertyKeys.columns, columns ); |
157 | 0 | } |
158 | |
|
159 | |
|
160 | |
public String getFooterClass() |
161 | |
{ |
162 | 0 | return (String) getStateHelper().eval(PropertyKeys.footerClass); |
163 | |
} |
164 | |
|
165 | |
public void setFooterClass(String footerClass) |
166 | |
{ |
167 | 0 | getStateHelper().put(PropertyKeys.footerClass, footerClass ); |
168 | 0 | } |
169 | |
|
170 | |
|
171 | |
public String getFrame() |
172 | |
{ |
173 | 0 | return (String) getStateHelper().eval(PropertyKeys.frame); |
174 | |
} |
175 | |
|
176 | |
public void setFrame(String frame) |
177 | |
{ |
178 | 0 | getStateHelper().put(PropertyKeys.frame, frame ); |
179 | 0 | } |
180 | |
|
181 | |
|
182 | |
public String getHeaderClass() |
183 | |
{ |
184 | 0 | return (String) getStateHelper().eval(PropertyKeys.headerClass); |
185 | |
} |
186 | |
|
187 | |
public void setHeaderClass(String headerClass) |
188 | |
{ |
189 | 0 | getStateHelper().put(PropertyKeys.headerClass, headerClass ); |
190 | 0 | } |
191 | |
|
192 | |
|
193 | |
public String getRowClasses() |
194 | |
{ |
195 | 0 | return (String) getStateHelper().eval(PropertyKeys.rowClasses); |
196 | |
} |
197 | |
|
198 | |
public void setRowClasses(String rowClasses) |
199 | |
{ |
200 | 0 | getStateHelper().put(PropertyKeys.rowClasses, rowClasses ); |
201 | 0 | } |
202 | |
|
203 | |
|
204 | |
public String getRules() |
205 | |
{ |
206 | 0 | return (String) getStateHelper().eval(PropertyKeys.rules); |
207 | |
} |
208 | |
|
209 | |
public void setRules(String rules) |
210 | |
{ |
211 | 0 | getStateHelper().put(PropertyKeys.rules, rules ); |
212 | 0 | } |
213 | |
|
214 | |
|
215 | |
public String getSummary() |
216 | |
{ |
217 | 0 | return (String) getStateHelper().eval(PropertyKeys.summary); |
218 | |
} |
219 | |
|
220 | |
public void setSummary(String summary) |
221 | |
{ |
222 | 0 | getStateHelper().put(PropertyKeys.summary, summary ); |
223 | 0 | } |
224 | |
|
225 | |
|
226 | |
public String getWidth() |
227 | |
{ |
228 | 0 | return (String) getStateHelper().eval(PropertyKeys.width); |
229 | |
} |
230 | |
|
231 | |
public void setWidth(String width) |
232 | |
{ |
233 | 0 | getStateHelper().put(PropertyKeys.width, width ); |
234 | 0 | } |
235 | |
|
236 | |
|
237 | |
public String getCaptionClass() |
238 | |
{ |
239 | 0 | return (String) getStateHelper().eval(PropertyKeys.captionClass); |
240 | |
} |
241 | |
|
242 | |
public void setCaptionClass(String captionClass) |
243 | |
{ |
244 | 0 | getStateHelper().put(PropertyKeys.captionClass, captionClass ); |
245 | 0 | } |
246 | |
|
247 | |
|
248 | |
public String getCaptionStyle() |
249 | |
{ |
250 | 0 | return (String) getStateHelper().eval(PropertyKeys.captionStyle); |
251 | |
} |
252 | |
|
253 | |
public void setCaptionStyle(String captionStyle) |
254 | |
{ |
255 | 0 | getStateHelper().put(PropertyKeys.captionStyle, captionStyle ); |
256 | 0 | } |
257 | |
|
258 | |
|
259 | |
public String getStyle() |
260 | |
{ |
261 | 0 | return (String) getStateHelper().eval(PropertyKeys.style); |
262 | |
} |
263 | |
|
264 | |
public void setStyle(String style) |
265 | |
{ |
266 | 0 | getStateHelper().put(PropertyKeys.style, style ); |
267 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.STYLE_PROP); |
268 | 0 | } |
269 | |
|
270 | |
|
271 | |
public String getStyleClass() |
272 | |
{ |
273 | 0 | return (String) getStateHelper().eval(PropertyKeys.styleClass); |
274 | |
} |
275 | |
|
276 | |
public void setStyleClass(String styleClass) |
277 | |
{ |
278 | 0 | getStateHelper().put(PropertyKeys.styleClass, styleClass ); |
279 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.STYLECLASS_PROP); |
280 | 0 | } |
281 | |
|
282 | |
|
283 | |
public String getRole() |
284 | |
{ |
285 | 0 | return (String) getStateHelper().eval(PropertyKeys.role); |
286 | |
} |
287 | |
|
288 | |
public void setRole(String role) |
289 | |
{ |
290 | 0 | getStateHelper().put(PropertyKeys.role, role ); |
291 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ROLE_PROP); |
292 | 0 | } |
293 | |
|
294 | |
|
295 | |
public String getOnclick() |
296 | |
{ |
297 | 0 | return (String) getStateHelper().eval(PropertyKeys.onclick); |
298 | |
} |
299 | |
|
300 | |
public void setOnclick(String onclick) |
301 | |
{ |
302 | 0 | getStateHelper().put(PropertyKeys.onclick, onclick ); |
303 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONCLICK_PROP); |
304 | 0 | } |
305 | |
|
306 | |
|
307 | |
public String getOndblclick() |
308 | |
{ |
309 | 0 | return (String) getStateHelper().eval(PropertyKeys.ondblclick); |
310 | |
} |
311 | |
|
312 | |
public void setOndblclick(String ondblclick) |
313 | |
{ |
314 | 0 | getStateHelper().put(PropertyKeys.ondblclick, ondblclick ); |
315 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONDBLCLICK_PROP); |
316 | 0 | } |
317 | |
|
318 | |
|
319 | |
public String getOnkeydown() |
320 | |
{ |
321 | 0 | return (String) getStateHelper().eval(PropertyKeys.onkeydown); |
322 | |
} |
323 | |
|
324 | |
public void setOnkeydown(String onkeydown) |
325 | |
{ |
326 | 0 | getStateHelper().put(PropertyKeys.onkeydown, onkeydown ); |
327 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONKEYDOWN_PROP); |
328 | 0 | } |
329 | |
|
330 | |
|
331 | |
public String getOnkeypress() |
332 | |
{ |
333 | 0 | return (String) getStateHelper().eval(PropertyKeys.onkeypress); |
334 | |
} |
335 | |
|
336 | |
public void setOnkeypress(String onkeypress) |
337 | |
{ |
338 | 0 | getStateHelper().put(PropertyKeys.onkeypress, onkeypress ); |
339 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONKEYPRESS_PROP); |
340 | 0 | } |
341 | |
|
342 | |
|
343 | |
public String getOnkeyup() |
344 | |
{ |
345 | 0 | return (String) getStateHelper().eval(PropertyKeys.onkeyup); |
346 | |
} |
347 | |
|
348 | |
public void setOnkeyup(String onkeyup) |
349 | |
{ |
350 | 0 | getStateHelper().put(PropertyKeys.onkeyup, onkeyup ); |
351 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONKEYUP_PROP); |
352 | 0 | } |
353 | |
|
354 | |
|
355 | |
public String getOnmousedown() |
356 | |
{ |
357 | 0 | return (String) getStateHelper().eval(PropertyKeys.onmousedown); |
358 | |
} |
359 | |
|
360 | |
public void setOnmousedown(String onmousedown) |
361 | |
{ |
362 | 0 | getStateHelper().put(PropertyKeys.onmousedown, onmousedown ); |
363 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEDOWN_PROP); |
364 | 0 | } |
365 | |
|
366 | |
|
367 | |
public String getOnmousemove() |
368 | |
{ |
369 | 0 | return (String) getStateHelper().eval(PropertyKeys.onmousemove); |
370 | |
} |
371 | |
|
372 | |
public void setOnmousemove(String onmousemove) |
373 | |
{ |
374 | 0 | getStateHelper().put(PropertyKeys.onmousemove, onmousemove ); |
375 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEMOVE_PROP); |
376 | 0 | } |
377 | |
|
378 | |
|
379 | |
public String getOnmouseout() |
380 | |
{ |
381 | 0 | return (String) getStateHelper().eval(PropertyKeys.onmouseout); |
382 | |
} |
383 | |
|
384 | |
public void setOnmouseout(String onmouseout) |
385 | |
{ |
386 | 0 | getStateHelper().put(PropertyKeys.onmouseout, onmouseout ); |
387 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEOUT_PROP); |
388 | 0 | } |
389 | |
|
390 | |
|
391 | |
public String getOnmouseover() |
392 | |
{ |
393 | 0 | return (String) getStateHelper().eval(PropertyKeys.onmouseover); |
394 | |
} |
395 | |
|
396 | |
public void setOnmouseover(String onmouseover) |
397 | |
{ |
398 | 0 | getStateHelper().put(PropertyKeys.onmouseover, onmouseover ); |
399 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEOVER_PROP); |
400 | 0 | } |
401 | |
|
402 | |
|
403 | |
public String getOnmouseup() |
404 | |
{ |
405 | 0 | return (String) getStateHelper().eval(PropertyKeys.onmouseup); |
406 | |
} |
407 | |
|
408 | |
public void setOnmouseup(String onmouseup) |
409 | |
{ |
410 | 0 | getStateHelper().put(PropertyKeys.onmouseup, onmouseup ); |
411 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEUP_PROP); |
412 | 0 | } |
413 | |
|
414 | |
|
415 | |
public String getDir() |
416 | |
{ |
417 | 0 | return (String) getStateHelper().eval(PropertyKeys.dir); |
418 | |
} |
419 | |
|
420 | |
public void setDir(String dir) |
421 | |
{ |
422 | 0 | getStateHelper().put(PropertyKeys.dir, dir ); |
423 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.DIR_PROP); |
424 | 0 | } |
425 | |
|
426 | |
|
427 | |
public String getLang() |
428 | |
{ |
429 | 0 | return (String) getStateHelper().eval(PropertyKeys.lang); |
430 | |
} |
431 | |
|
432 | |
public void setLang(String lang) |
433 | |
{ |
434 | 0 | getStateHelper().put(PropertyKeys.lang, lang ); |
435 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.LANG_PROP); |
436 | 0 | } |
437 | |
|
438 | |
|
439 | |
public String getTitle() |
440 | |
{ |
441 | 0 | return (String) getStateHelper().eval(PropertyKeys.title); |
442 | |
} |
443 | |
|
444 | |
public void setTitle(String title) |
445 | |
{ |
446 | 0 | getStateHelper().put(PropertyKeys.title, title ); |
447 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.TITLE_PROP); |
448 | 0 | } |
449 | |
|
450 | |
public void setValueBinding(String name, ValueBinding binding) |
451 | |
{ |
452 | 0 | super.setValueBinding(name, binding); |
453 | 0 | _CommonPropertyConstants.markProperty(this, name); |
454 | 0 | } |
455 | |
|
456 | |
public void setValueExpression(String name, ValueExpression expression) |
457 | |
{ |
458 | 0 | super.setValueExpression(name, expression); |
459 | 0 | _CommonPropertyConstants.markProperty(this, name); |
460 | 0 | } |
461 | |
|
462 | 0 | protected enum PropertyKeys |
463 | |
{ |
464 | 0 | bgcolor |
465 | 0 | , bodyrows |
466 | 0 | , border |
467 | 0 | , cellpadding |
468 | 0 | , cellspacing |
469 | 0 | , columnClasses |
470 | 0 | , columns |
471 | 0 | , footerClass |
472 | 0 | , frame |
473 | 0 | , headerClass |
474 | 0 | , rowClasses |
475 | 0 | , rules |
476 | 0 | , summary |
477 | 0 | , width |
478 | 0 | , captionClass |
479 | 0 | , captionStyle |
480 | 0 | , style |
481 | 0 | , styleClass |
482 | 0 | , role |
483 | 0 | , onclick |
484 | 0 | , ondblclick |
485 | 0 | , onkeydown |
486 | 0 | , onkeypress |
487 | 0 | , onkeyup |
488 | 0 | , onmousedown |
489 | 0 | , onmousemove |
490 | 0 | , onmouseout |
491 | 0 | , onmouseover |
492 | 0 | , onmouseup |
493 | 0 | , dir |
494 | 0 | , lang |
495 | 0 | , title |
496 | |
} |
497 | |
|
498 | |
} |