1 /*
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3 *
4 * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
5 *
6 * The contents of this file are subject to the terms of either the GNU
7 * General Public License Version 2 only ("GPL") or the Common Development
8 * and Distribution License("CDDL") (collectively, the "License"). You
9 * may not use this file except in compliance with the License. You can obtain
10 * a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
11 * or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific
12 * language governing permissions and limitations under the License.
13 *
14 * When distributing the software, include this License Header Notice in each
15 * file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
16 * Sun designates this particular file as subject to the "Classpath" exception
17 * as provided by Sun in the GPL Version 2 section of the License file that
18 * accompanied this code. If applicable, add the following below the License
19 * Header, with the fields enclosed by brackets [] replaced by your own
20 * identifying information: "Portions Copyrighted [year]
21 * [name of copyright owner]"
22 *
23 * Contributor(s):
24 *
25 * If you wish your version of this file to be governed by only the CDDL or
26 * only the GPL Version 2, indicate your decision by adding "[Contributor]
27 * elects to include this software in this distribution under the [CDDL or GPL
28 * Version 2] license." If you don't indicate a single choice of license, a
29 * recipient has the option to distribute your version of this file under
30 * either the CDDL, the GPL Version 2 or to extend the choice of license to
31 * its licensees as provided above. However, if you add GPL Version 2 code
32 * and therefore, elected the GPL Version 2 license, then the option applies
33 * only if the new code is made subject to such option by the copyright
34 * holder.
35 */
36 package javax.faces.component.html;
37
38 import java.io.IOException;
39 import java.util.List;
40 import java.util.ArrayList;
41 import java.util.Arrays;
42
43 import javax.faces.context.FacesContext;
44 import javax.el.MethodExpression;
45 import javax.el.ValueExpression;
46
47
48 /*
49 * ******* GENERATED CODE - DO NOT EDIT *******
50 */
51
52
53 /**
54 * <p>Renders child components in a table, starting a new
55 * row after the specified number of columns.</p>
56 * <p>By default, the <code>rendererType</code> property must be set to "<code>javax.faces.Grid</code>".
57 * This value can be changed by calling the <code>setRendererType()</code> method.</p>
58 */
59 public class HtmlPanelGrid extends javax.faces.component.UIPanel {
60
61
62
63 private static final String[] OPTIMIZED_PACKAGES = {
64 "javax.faces.component",
65 "javax.faces.component.html"
66 };
67
68 public HtmlPanelGrid() {
69 super();
70 setRendererType("javax.faces.Grid");
71 }
72
73
74 /**
75 * <p>The standard component type for this component.</p>
76 */
77 public static final String COMPONENT_TYPE = "javax.faces.HtmlPanelGrid";
78
79
80 private java.lang.String bgcolor;
81 /**
82 * <p>Return the value of the <code>bgcolor</code> property.</p>
83 * <p>Contents: Name or code of the background color for this table.
84 */
85 public java.lang.String getBgcolor() {
86 if (null != this.bgcolor) {
87 return this.bgcolor;
88 }
89 ValueExpression _ve = getValueExpression("bgcolor");
90 if (_ve != null) {
91 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
92 } else {
93 return null;
94 }
95 }
96
97 /**
98 * <p>Set the value of the <code>bgcolor</code> property.</p>
99 */
100 public void setBgcolor(java.lang.String bgcolor) {
101 this.bgcolor = bgcolor;
102 handleAttribute("bgcolor", bgcolor);
103 }
104
105
106 private java.lang.Integer border;
107 /**
108 * <p>Return the value of the <code>border</code> property.</p>
109 * <p>Contents: Width (in pixels) of the border to be drawn
110 * around this table.
111 */
112 public int getBorder() {
113 if (null != this.border) {
114 return this.border;
115 }
116 ValueExpression _ve = getValueExpression("border");
117 if (_ve != null) {
118 return (java.lang.Integer) _ve.getValue(getFacesContext().getELContext());
119 } else {
120 return Integer.MIN_VALUE;
121 }
122 }
123
124 /**
125 * <p>Set the value of the <code>border</code> property.</p>
126 */
127 public void setBorder(int border) {
128 this.border = border;
129 handleAttribute("border", border);
130 }
131
132
133 private java.lang.String captionClass;
134 /**
135 * <p>Return the value of the <code>captionClass</code> property.</p>
136 * <p>Contents: Space-separated list of CSS style class(es) that will be
137 * applied to any caption generated for this table.
138 */
139 public java.lang.String getCaptionClass() {
140 if (null != this.captionClass) {
141 return this.captionClass;
142 }
143 ValueExpression _ve = getValueExpression("captionClass");
144 if (_ve != null) {
145 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
146 } else {
147 return null;
148 }
149 }
150
151 /**
152 * <p>Set the value of the <code>captionClass</code> property.</p>
153 */
154 public void setCaptionClass(java.lang.String captionClass) {
155 this.captionClass = captionClass;
156 }
157
158
159 private java.lang.String captionStyle;
160 /**
161 * <p>Return the value of the <code>captionStyle</code> property.</p>
162 * <p>Contents: CSS style(s) to be applied when this caption is rendered.
163 */
164 public java.lang.String getCaptionStyle() {
165 if (null != this.captionStyle) {
166 return this.captionStyle;
167 }
168 ValueExpression _ve = getValueExpression("captionStyle");
169 if (_ve != null) {
170 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
171 } else {
172 return null;
173 }
174 }
175
176 /**
177 * <p>Set the value of the <code>captionStyle</code> property.</p>
178 */
179 public void setCaptionStyle(java.lang.String captionStyle) {
180 this.captionStyle = captionStyle;
181 }
182
183
184 private java.lang.String cellpadding;
185 /**
186 * <p>Return the value of the <code>cellpadding</code> property.</p>
187 * <p>Contents: Definition of how much space the user agent should
188 * leave between the border of each cell and its contents.
189 */
190 public java.lang.String getCellpadding() {
191 if (null != this.cellpadding) {
192 return this.cellpadding;
193 }
194 ValueExpression _ve = getValueExpression("cellpadding");
195 if (_ve != null) {
196 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
197 } else {
198 return null;
199 }
200 }
201
202 /**
203 * <p>Set the value of the <code>cellpadding</code> property.</p>
204 */
205 public void setCellpadding(java.lang.String cellpadding) {
206 this.cellpadding = cellpadding;
207 handleAttribute("cellpadding", cellpadding);
208 }
209
210
211 private java.lang.String cellspacing;
212 /**
213 * <p>Return the value of the <code>cellspacing</code> property.</p>
214 * <p>Contents: Definition of how much space the user agent should
215 * leave between the left side of the table and the
216 * leftmost column, the top of the table and the top of
217 * the top side of the topmost row, and so on for the
218 * right and bottom of the table. It also specifies
219 * the amount of space to leave between cells.
220 */
221 public java.lang.String getCellspacing() {
222 if (null != this.cellspacing) {
223 return this.cellspacing;
224 }
225 ValueExpression _ve = getValueExpression("cellspacing");
226 if (_ve != null) {
227 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
228 } else {
229 return null;
230 }
231 }
232
233 /**
234 * <p>Set the value of the <code>cellspacing</code> property.</p>
235 */
236 public void setCellspacing(java.lang.String cellspacing) {
237 this.cellspacing = cellspacing;
238 handleAttribute("cellspacing", cellspacing);
239 }
240
241
242 private java.lang.String columnClasses;
243 /**
244 * <p>Return the value of the <code>columnClasses</code> property.</p>
245 * <p>Contents: Comma-delimited list of CSS style classes that will be applied
246 * to the columns of this table. A space separated list of
247 * classes may also be specified for any individual column. If
248 * the number of elements in this list is less than the number of
249 * columns specified in the "columns" attribute, no "class"
250 * attribute is output for each column greater than the number of
251 * elements in the list. If the number of elements in the list
252 * is greater than the number of columns specified in the
253 * "columns" attribute, the elements at the posisiton in the list
254 * after the value of the "columns" attribute are ignored.
255 */
256 public java.lang.String getColumnClasses() {
257 if (null != this.columnClasses) {
258 return this.columnClasses;
259 }
260 ValueExpression _ve = getValueExpression("columnClasses");
261 if (_ve != null) {
262 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
263 } else {
264 return null;
265 }
266 }
267
268 /**
269 * <p>Set the value of the <code>columnClasses</code> property.</p>
270 */
271 public void setColumnClasses(java.lang.String columnClasses) {
272 this.columnClasses = columnClasses;
273 }
274
275
276 private java.lang.Integer columns;
277 /**
278 * <p>Return the value of the <code>columns</code> property.</p>
279 * <p>Contents: The number of columns to render before
280 * starting a new row.
281 */
282 public int getColumns() {
283 if (null != this.columns) {
284 return this.columns;
285 }
286 ValueExpression _ve = getValueExpression("columns");
287 if (_ve != null) {
288 return (java.lang.Integer) _ve.getValue(getFacesContext().getELContext());
289 } else {
290 return Integer.MIN_VALUE;
291 }
292 }
293
294 /**
295 * <p>Set the value of the <code>columns</code> property.</p>
296 */
297 public void setColumns(int columns) {
298 this.columns = columns;
299 }
300
301
302 private java.lang.String dir;
303 /**
304 * <p>Return the value of the <code>dir</code> property.</p>
305 * <p>Contents: Direction indication for text that does not inherit directionality.
306 * Valid values are "LTR" (left-to-right) and "RTL" (right-to-left).
307 */
308 public java.lang.String getDir() {
309 if (null != this.dir) {
310 return this.dir;
311 }
312 ValueExpression _ve = getValueExpression("dir");
313 if (_ve != null) {
314 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
315 } else {
316 return null;
317 }
318 }
319
320 /**
321 * <p>Set the value of the <code>dir</code> property.</p>
322 */
323 public void setDir(java.lang.String dir) {
324 this.dir = dir;
325 handleAttribute("dir", dir);
326 }
327
328
329 private java.lang.String footerClass;
330 /**
331 * <p>Return the value of the <code>footerClass</code> property.</p>
332 * <p>Contents: Space-separated list of CSS style class(es) that will be
333 * applied to any footer generated for this table.
334 */
335 public java.lang.String getFooterClass() {
336 if (null != this.footerClass) {
337 return this.footerClass;
338 }
339 ValueExpression _ve = getValueExpression("footerClass");
340 if (_ve != null) {
341 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
342 } else {
343 return null;
344 }
345 }
346
347 /**
348 * <p>Set the value of the <code>footerClass</code> property.</p>
349 */
350 public void setFooterClass(java.lang.String footerClass) {
351 this.footerClass = footerClass;
352 }
353
354
355 private java.lang.String frame;
356 /**
357 * <p>Return the value of the <code>frame</code> property.</p>
358 * <p>Contents: Code specifying which sides of the frame surrounding
359 * this table will be visible. Valid values are:
360 * none (no sides, default value); above (top side only);
361 * below (bottom side only); hsides (top and bottom sides
362 * only); vsides (right and left sides only); lhs (left
363 * hand side only); rhs (right hand side only); box
364 * (all four sides); and border (all four sides).
365 */
366 public java.lang.String getFrame() {
367 if (null != this.frame) {
368 return this.frame;
369 }
370 ValueExpression _ve = getValueExpression("frame");
371 if (_ve != null) {
372 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
373 } else {
374 return null;
375 }
376 }
377
378 /**
379 * <p>Set the value of the <code>frame</code> property.</p>
380 */
381 public void setFrame(java.lang.String frame) {
382 this.frame = frame;
383 handleAttribute("frame", frame);
384 }
385
386
387 private java.lang.String headerClass;
388 /**
389 * <p>Return the value of the <code>headerClass</code> property.</p>
390 * <p>Contents: Space-separated list of CSS style class(es) that will be
391 * applied to any header generated for this table.
392 */
393 public java.lang.String getHeaderClass() {
394 if (null != this.headerClass) {
395 return this.headerClass;
396 }
397 ValueExpression _ve = getValueExpression("headerClass");
398 if (_ve != null) {
399 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
400 } else {
401 return null;
402 }
403 }
404
405 /**
406 * <p>Set the value of the <code>headerClass</code> property.</p>
407 */
408 public void setHeaderClass(java.lang.String headerClass) {
409 this.headerClass = headerClass;
410 }
411
412
413 private java.lang.String lang;
414 /**
415 * <p>Return the value of the <code>lang</code> property.</p>
416 * <p>Contents: Code describing the language used in the generated markup
417 * for this component.
418 */
419 public java.lang.String getLang() {
420 if (null != this.lang) {
421 return this.lang;
422 }
423 ValueExpression _ve = getValueExpression("lang");
424 if (_ve != null) {
425 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
426 } else {
427 return null;
428 }
429 }
430
431 /**
432 * <p>Set the value of the <code>lang</code> property.</p>
433 */
434 public void setLang(java.lang.String lang) {
435 this.lang = lang;
436 handleAttribute("lang", lang);
437 }
438
439
440 private java.lang.String onclick;
441 /**
442 * <p>Return the value of the <code>onclick</code> property.</p>
443 * <p>Contents: Javascript code executed when a pointer button is
444 * clicked over this element.
445 */
446 public java.lang.String getOnclick() {
447 if (null != this.onclick) {
448 return this.onclick;
449 }
450 ValueExpression _ve = getValueExpression("onclick");
451 if (_ve != null) {
452 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
453 } else {
454 return null;
455 }
456 }
457
458 /**
459 * <p>Set the value of the <code>onclick</code> property.</p>
460 */
461 public void setOnclick(java.lang.String onclick) {
462 this.onclick = onclick;
463 handleAttribute("onclick", onclick);
464 }
465
466
467 private java.lang.String ondblclick;
468 /**
469 * <p>Return the value of the <code>ondblclick</code> property.</p>
470 * <p>Contents: Javascript code executed when a pointer button is
471 * double clicked over this element.
472 */
473 public java.lang.String getOndblclick() {
474 if (null != this.ondblclick) {
475 return this.ondblclick;
476 }
477 ValueExpression _ve = getValueExpression("ondblclick");
478 if (_ve != null) {
479 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
480 } else {
481 return null;
482 }
483 }
484
485 /**
486 * <p>Set the value of the <code>ondblclick</code> property.</p>
487 */
488 public void setOndblclick(java.lang.String ondblclick) {
489 this.ondblclick = ondblclick;
490 handleAttribute("ondblclick", ondblclick);
491 }
492
493
494 private java.lang.String onkeydown;
495 /**
496 * <p>Return the value of the <code>onkeydown</code> property.</p>
497 * <p>Contents: Javascript code executed when a key is
498 * pressed down over this element.
499 */
500 public java.lang.String getOnkeydown() {
501 if (null != this.onkeydown) {
502 return this.onkeydown;
503 }
504 ValueExpression _ve = getValueExpression("onkeydown");
505 if (_ve != null) {
506 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
507 } else {
508 return null;
509 }
510 }
511
512 /**
513 * <p>Set the value of the <code>onkeydown</code> property.</p>
514 */
515 public void setOnkeydown(java.lang.String onkeydown) {
516 this.onkeydown = onkeydown;
517 handleAttribute("onkeydown", onkeydown);
518 }
519
520
521 private java.lang.String onkeypress;
522 /**
523 * <p>Return the value of the <code>onkeypress</code> property.</p>
524 * <p>Contents: Javascript code executed when a key is
525 * pressed and released over this element.
526 */
527 public java.lang.String getOnkeypress() {
528 if (null != this.onkeypress) {
529 return this.onkeypress;
530 }
531 ValueExpression _ve = getValueExpression("onkeypress");
532 if (_ve != null) {
533 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
534 } else {
535 return null;
536 }
537 }
538
539 /**
540 * <p>Set the value of the <code>onkeypress</code> property.</p>
541 */
542 public void setOnkeypress(java.lang.String onkeypress) {
543 this.onkeypress = onkeypress;
544 handleAttribute("onkeypress", onkeypress);
545 }
546
547
548 private java.lang.String onkeyup;
549 /**
550 * <p>Return the value of the <code>onkeyup</code> property.</p>
551 * <p>Contents: Javascript code executed when a key is
552 * released over this element.
553 */
554 public java.lang.String getOnkeyup() {
555 if (null != this.onkeyup) {
556 return this.onkeyup;
557 }
558 ValueExpression _ve = getValueExpression("onkeyup");
559 if (_ve != null) {
560 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
561 } else {
562 return null;
563 }
564 }
565
566 /**
567 * <p>Set the value of the <code>onkeyup</code> property.</p>
568 */
569 public void setOnkeyup(java.lang.String onkeyup) {
570 this.onkeyup = onkeyup;
571 handleAttribute("onkeyup", onkeyup);
572 }
573
574
575 private java.lang.String onmousedown;
576 /**
577 * <p>Return the value of the <code>onmousedown</code> property.</p>
578 * <p>Contents: Javascript code executed when a pointer button is
579 * pressed down over this element.
580 */
581 public java.lang.String getOnmousedown() {
582 if (null != this.onmousedown) {
583 return this.onmousedown;
584 }
585 ValueExpression _ve = getValueExpression("onmousedown");
586 if (_ve != null) {
587 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
588 } else {
589 return null;
590 }
591 }
592
593 /**
594 * <p>Set the value of the <code>onmousedown</code> property.</p>
595 */
596 public void setOnmousedown(java.lang.String onmousedown) {
597 this.onmousedown = onmousedown;
598 handleAttribute("onmousedown", onmousedown);
599 }
600
601
602 private java.lang.String onmousemove;
603 /**
604 * <p>Return the value of the <code>onmousemove</code> property.</p>
605 * <p>Contents: Javascript code executed when a pointer button is
606 * moved within this element.
607 */
608 public java.lang.String getOnmousemove() {
609 if (null != this.onmousemove) {
610 return this.onmousemove;
611 }
612 ValueExpression _ve = getValueExpression("onmousemove");
613 if (_ve != null) {
614 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
615 } else {
616 return null;
617 }
618 }
619
620 /**
621 * <p>Set the value of the <code>onmousemove</code> property.</p>
622 */
623 public void setOnmousemove(java.lang.String onmousemove) {
624 this.onmousemove = onmousemove;
625 handleAttribute("onmousemove", onmousemove);
626 }
627
628
629 private java.lang.String onmouseout;
630 /**
631 * <p>Return the value of the <code>onmouseout</code> property.</p>
632 * <p>Contents: Javascript code executed when a pointer button is
633 * moved away from this element.
634 */
635 public java.lang.String getOnmouseout() {
636 if (null != this.onmouseout) {
637 return this.onmouseout;
638 }
639 ValueExpression _ve = getValueExpression("onmouseout");
640 if (_ve != null) {
641 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
642 } else {
643 return null;
644 }
645 }
646
647 /**
648 * <p>Set the value of the <code>onmouseout</code> property.</p>
649 */
650 public void setOnmouseout(java.lang.String onmouseout) {
651 this.onmouseout = onmouseout;
652 handleAttribute("onmouseout", onmouseout);
653 }
654
655
656 private java.lang.String onmouseover;
657 /**
658 * <p>Return the value of the <code>onmouseover</code> property.</p>
659 * <p>Contents: Javascript code executed when a pointer button is
660 * moved onto this element.
661 */
662 public java.lang.String getOnmouseover() {
663 if (null != this.onmouseover) {
664 return this.onmouseover;
665 }
666 ValueExpression _ve = getValueExpression("onmouseover");
667 if (_ve != null) {
668 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
669 } else {
670 return null;
671 }
672 }
673
674 /**
675 * <p>Set the value of the <code>onmouseover</code> property.</p>
676 */
677 public void setOnmouseover(java.lang.String onmouseover) {
678 this.onmouseover = onmouseover;
679 handleAttribute("onmouseover", onmouseover);
680 }
681
682
683 private java.lang.String onmouseup;
684 /**
685 * <p>Return the value of the <code>onmouseup</code> property.</p>
686 * <p>Contents: Javascript code executed when a pointer button is
687 * released over this element.
688 */
689 public java.lang.String getOnmouseup() {
690 if (null != this.onmouseup) {
691 return this.onmouseup;
692 }
693 ValueExpression _ve = getValueExpression("onmouseup");
694 if (_ve != null) {
695 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
696 } else {
697 return null;
698 }
699 }
700
701 /**
702 * <p>Set the value of the <code>onmouseup</code> property.</p>
703 */
704 public void setOnmouseup(java.lang.String onmouseup) {
705 this.onmouseup = onmouseup;
706 handleAttribute("onmouseup", onmouseup);
707 }
708
709
710 private java.lang.String rowClasses;
711 /**
712 * <p>Return the value of the <code>rowClasses</code> property.</p>
713 * <p>Contents: Comma-delimited list of CSS style classes that will be applied
714 * to the rows of this table. A space separated list of classes
715 * may also be specified for any individual row. Thes styles are
716 * applied, in turn, to each row in the table. For example, if
717 * the list has two elements, the first style class in the list
718 * is applied to the first row, the second to the second row, the
719 * first to the third row, the second to the fourth row, etc. In
720 * other words, we keep iterating through the list until we reach
721 * the end, and then we start at the beginning again.
722 */
723 public java.lang.String getRowClasses() {
724 if (null != this.rowClasses) {
725 return this.rowClasses;
726 }
727 ValueExpression _ve = getValueExpression("rowClasses");
728 if (_ve != null) {
729 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
730 } else {
731 return null;
732 }
733 }
734
735 /**
736 * <p>Set the value of the <code>rowClasses</code> property.</p>
737 */
738 public void setRowClasses(java.lang.String rowClasses) {
739 this.rowClasses = rowClasses;
740 }
741
742
743 private java.lang.String rules;
744 /**
745 * <p>Return the value of the <code>rules</code> property.</p>
746 * <p>Contents: Code specifying which rules will appear between cells
747 * within this table. Valid values are: none (no rules,
748 * default value); groups (between row groups); rows
749 * (between rows only); cols (between columns only); and
750 * all (between all rows and columns).
751 */
752 public java.lang.String getRules() {
753 if (null != this.rules) {
754 return this.rules;
755 }
756 ValueExpression _ve = getValueExpression("rules");
757 if (_ve != null) {
758 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
759 } else {
760 return null;
761 }
762 }
763
764 /**
765 * <p>Set the value of the <code>rules</code> property.</p>
766 */
767 public void setRules(java.lang.String rules) {
768 this.rules = rules;
769 handleAttribute("rules", rules);
770 }
771
772
773 private java.lang.String style;
774 /**
775 * <p>Return the value of the <code>style</code> property.</p>
776 * <p>Contents: CSS style(s) to be applied when this component is rendered.
777 */
778 public java.lang.String getStyle() {
779 if (null != this.style) {
780 return this.style;
781 }
782 ValueExpression _ve = getValueExpression("style");
783 if (_ve != null) {
784 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
785 } else {
786 return null;
787 }
788 }
789
790 /**
791 * <p>Set the value of the <code>style</code> property.</p>
792 */
793 public void setStyle(java.lang.String style) {
794 this.style = style;
795 handleAttribute("style", style);
796 }
797
798
799 private java.lang.String styleClass;
800 /**
801 * <p>Return the value of the <code>styleClass</code> property.</p>
802 * <p>Contents: Space-separated list of CSS style class(es) to be applied when
803 * this element is rendered. This value must be passed through
804 * as the "class" attribute on generated markup.
805 */
806 public java.lang.String getStyleClass() {
807 if (null != this.styleClass) {
808 return this.styleClass;
809 }
810 ValueExpression _ve = getValueExpression("styleClass");
811 if (_ve != null) {
812 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
813 } else {
814 return null;
815 }
816 }
817
818 /**
819 * <p>Set the value of the <code>styleClass</code> property.</p>
820 */
821 public void setStyleClass(java.lang.String styleClass) {
822 this.styleClass = styleClass;
823 }
824
825
826 private java.lang.String summary;
827 /**
828 * <p>Return the value of the <code>summary</code> property.</p>
829 * <p>Contents: Summary of this table's purpose and structure, for
830 * user agents rendering to non-visual media such as
831 * speech and Braille.
832 */
833 public java.lang.String getSummary() {
834 if (null != this.summary) {
835 return this.summary;
836 }
837 ValueExpression _ve = getValueExpression("summary");
838 if (_ve != null) {
839 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
840 } else {
841 return null;
842 }
843 }
844
845 /**
846 * <p>Set the value of the <code>summary</code> property.</p>
847 */
848 public void setSummary(java.lang.String summary) {
849 this.summary = summary;
850 handleAttribute("summary", summary);
851 }
852
853
854 private java.lang.String title;
855 /**
856 * <p>Return the value of the <code>title</code> property.</p>
857 * <p>Contents: Advisory title information about markup elements generated
858 * for this component.
859 */
860 public java.lang.String getTitle() {
861 if (null != this.title) {
862 return this.title;
863 }
864 ValueExpression _ve = getValueExpression("title");
865 if (_ve != null) {
866 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
867 } else {
868 return null;
869 }
870 }
871
872 /**
873 * <p>Set the value of the <code>title</code> property.</p>
874 */
875 public void setTitle(java.lang.String title) {
876 this.title = title;
877 handleAttribute("title", title);
878 }
879
880
881 private java.lang.String width;
882 /**
883 * <p>Return the value of the <code>width</code> property.</p>
884 * <p>Contents: Width of the entire table, for visual user agents.
885 */
886 public java.lang.String getWidth() {
887 if (null != this.width) {
888 return this.width;
889 }
890 ValueExpression _ve = getValueExpression("width");
891 if (_ve != null) {
892 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
893 } else {
894 return null;
895 }
896 }
897
898 /**
899 * <p>Set the value of the <code>width</code> property.</p>
900 */
901 public void setWidth(java.lang.String width) {
902 this.width = width;
903 handleAttribute("width", width);
904 }
905
906
907 private Object[] _values;
908
909 public Object saveState(FacesContext _context) {
910 if (_values == null) {
911 _values = new Object[31];
912 }
913 _values[0] = super.saveState(_context);
914 _values[1] = bgcolor;
915 _values[2] = border;
916 _values[3] = captionClass;
917 _values[4] = captionStyle;
918 _values[5] = cellpadding;
919 _values[6] = cellspacing;
920 _values[7] = columnClasses;
921 _values[8] = columns;
922 _values[9] = dir;
923 _values[10] = footerClass;
924 _values[11] = frame;
925 _values[12] = headerClass;
926 _values[13] = lang;
927 _values[14] = onclick;
928 _values[15] = ondblclick;
929 _values[16] = onkeydown;
930 _values[17] = onkeypress;
931 _values[18] = onkeyup;
932 _values[19] = onmousedown;
933 _values[20] = onmousemove;
934 _values[21] = onmouseout;
935 _values[22] = onmouseover;
936 _values[23] = onmouseup;
937 _values[24] = rowClasses;
938 _values[25] = rules;
939 _values[26] = style;
940 _values[27] = styleClass;
941 _values[28] = summary;
942 _values[29] = title;
943 _values[30] = width;
944 return _values;
945 }
946
947
948 public void restoreState(FacesContext _context, Object _state) {
949 _values = (Object[]) _state;
950 super.restoreState(_context, _values[0]);
951 this.bgcolor = (java.lang.String) _values[1];
952 this.border = (java.lang.Integer) _values[2];
953 this.captionClass = (java.lang.String) _values[3];
954 this.captionStyle = (java.lang.String) _values[4];
955 this.cellpadding = (java.lang.String) _values[5];
956 this.cellspacing = (java.lang.String) _values[6];
957 this.columnClasses = (java.lang.String) _values[7];
958 this.columns = (java.lang.Integer) _values[8];
959 this.dir = (java.lang.String) _values[9];
960 this.footerClass = (java.lang.String) _values[10];
961 this.frame = (java.lang.String) _values[11];
962 this.headerClass = (java.lang.String) _values[12];
963 this.lang = (java.lang.String) _values[13];
964 this.onclick = (java.lang.String) _values[14];
965 this.ondblclick = (java.lang.String) _values[15];
966 this.onkeydown = (java.lang.String) _values[16];
967 this.onkeypress = (java.lang.String) _values[17];
968 this.onkeyup = (java.lang.String) _values[18];
969 this.onmousedown = (java.lang.String) _values[19];
970 this.onmousemove = (java.lang.String) _values[20];
971 this.onmouseout = (java.lang.String) _values[21];
972 this.onmouseover = (java.lang.String) _values[22];
973 this.onmouseup = (java.lang.String) _values[23];
974 this.rowClasses = (java.lang.String) _values[24];
975 this.rules = (java.lang.String) _values[25];
976 this.style = (java.lang.String) _values[26];
977 this.styleClass = (java.lang.String) _values[27];
978 this.summary = (java.lang.String) _values[28];
979 this.title = (java.lang.String) _values[29];
980 this.width = (java.lang.String) _values[30];
981 }
982
983
984 private void handleAttribute(String name, Object value) {
985 List<String> setAttributes = null;
986 String pkg = this.getClass().getPackage().getName();
987 if (Arrays.binarySearch(OPTIMIZED_PACKAGES, pkg) >= 0) {
988 setAttributes = (List<String>) this.getAttributes().get("javax.faces.component.UIComponentBase.attributesThatAreSet");
989 if (setAttributes == null) {
990 setAttributes = new ArrayList<String>(6);
991 this.getAttributes().put("javax.faces.component.UIComponentBase.attributesThatAreSet", setAttributes);
992 }
993 if (value == null) {
994 setAttributes.remove(name);
995 } else if (!setAttributes.contains(name)) {
996 setAttributes.add(name);
997 }
998 }
999 }
1000
1001 }