001: /*
002: * Copyright (c) 1998-2008 Caucho Technology -- all rights reserved
003: *
004: * This file is part of Resin(R) Open Source
005: *
006: * Each copy or derived work must preserve the copyright notice and this
007: * notice unmodified.
008: *
009: * Resin Open Source is free software; you can redistribute it and/or modify
010: * it under the terms of the GNU General Public License version 2
011: * as published by the Free Software Foundation.
012: *
013: * Resin Open Source is distributed in the hope that it will be useful,
014: * but WITHOUT ANY WARRANTY; without even the implied warranty of
015: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, or any warranty
016: * of NON-INFRINGEMENT. See the GNU General Public License for more
017: * details.
018: *
019: * You should have received a copy of the GNU General Public License
020: * along with Resin Open Source; if not, write to the
021: *
022: * Free Software Foundation, Inc.
023: * 59 Temple Place, Suite 330
024: * Boston, MA 02111-1307 USA
025: *
026: * @author Scott Ferguson
027: */
028:
029: package javax.faces.component.html;
030:
031: import java.util.*;
032:
033: import javax.el.*;
034:
035: import javax.faces.component.*;
036: import javax.faces.context.*;
037:
038: public class HtmlDataTable extends UIData {
039: public static final String COMPONENT_TYPE = "javax.faces.HtmlDataTable";
040:
041: private static final HashMap<String, PropEnum> _propMap = new HashMap<String, PropEnum>();
042:
043: private String _bgcolor;
044: private ValueExpression _bgcolorExpr;
045:
046: private Integer _border;
047: private ValueExpression _borderExpr;
048:
049: private String _captionClass;
050: private ValueExpression _captionClassExpr;
051:
052: private String _captionStyle;
053: private ValueExpression _captionStyleExpr;
054:
055: private String _cellpadding;
056: private ValueExpression _cellpaddingExpr;
057:
058: private String _cellspacing;
059: private ValueExpression _cellspacingExpr;
060:
061: private String _columnClasses;
062: private ValueExpression _columnClassesExpr;
063:
064: private Integer _columns;
065: private ValueExpression _columnsExpr;
066:
067: private String _dir;
068: private ValueExpression _dirExpr;
069:
070: private String _footerClass;
071: private ValueExpression _footerClassExpr;
072:
073: private String _frame;
074: private ValueExpression _frameExpr;
075:
076: private String _headerClass;
077: private ValueExpression _headerClassExpr;
078:
079: private String _lang;
080: private ValueExpression _langExpr;
081:
082: private String _onclick;
083: private ValueExpression _onclickExpr;
084:
085: private String _ondblclick;
086: private ValueExpression _ondblclickExpr;
087:
088: private String _onkeydown;
089: private ValueExpression _onkeydownExpr;
090:
091: private String _onkeypress;
092: private ValueExpression _onkeypressExpr;
093:
094: private String _onkeyup;
095: private ValueExpression _onkeyupExpr;
096:
097: private String _onmousedown;
098: private ValueExpression _onmousedownExpr;
099:
100: private String _onmousemove;
101: private ValueExpression _onmousemoveExpr;
102:
103: private String _onmouseout;
104: private ValueExpression _onmouseoutExpr;
105:
106: private String _onmouseover;
107: private ValueExpression _onmouseoverExpr;
108:
109: private String _onmouseup;
110: private ValueExpression _onmouseupExpr;
111:
112: private String _rowClasses;
113: private ValueExpression _rowClassesExpr;
114:
115: private String _rules;
116: private ValueExpression _rulesExpr;
117:
118: private String _style;
119: private ValueExpression _styleExpr;
120:
121: private String _styleClass;
122: private ValueExpression _styleClassExpr;
123:
124: private String _summary;
125: private ValueExpression _summaryExpr;
126:
127: private String _title;
128: private ValueExpression _titleExpr;
129:
130: private String _width;
131: private ValueExpression _widthExpr;
132:
133: public HtmlDataTable() {
134: setRendererType("javax.faces.Table");
135: }
136:
137: //
138: // properties
139: //
140:
141: public String getBgcolor() {
142: if (_bgcolor != null)
143: return _bgcolor;
144: else if (_bgcolorExpr != null)
145: return Util.evalString(_bgcolorExpr);
146: else
147: return null;
148: }
149:
150: public void setBgcolor(String value) {
151: _bgcolor = value;
152: }
153:
154: public int getBorder() {
155: if (_border != null)
156: return _border;
157: else if (_borderExpr != null)
158: return Util.evalInt(_borderExpr);
159: else
160: return Integer.MIN_VALUE;
161: }
162:
163: public void setBorder(int value) {
164: _border = value;
165: }
166:
167: public String getCaptionClass() {
168: if (_captionClass != null)
169: return _captionClass;
170: else if (_captionClassExpr != null)
171: return Util.evalString(_captionClassExpr);
172: else
173: return null;
174: }
175:
176: public void setCaptionClass(String value) {
177: _captionClass = value;
178: }
179:
180: public String getCaptionStyle() {
181: if (_captionStyle != null)
182: return _captionStyle;
183: else if (_captionStyleExpr != null)
184: return Util.evalString(_captionStyleExpr);
185: else
186: return null;
187: }
188:
189: public void setCaptionStyle(String value) {
190: _captionStyle = value;
191: }
192:
193: public String getCellpadding() {
194: if (_cellpadding != null)
195: return _cellpadding;
196: else if (_cellpaddingExpr != null)
197: return Util.evalString(_cellpaddingExpr);
198: else
199: return null;
200: }
201:
202: public void setCellpadding(String value) {
203: _cellpadding = value;
204: }
205:
206: public String getCellspacing() {
207: if (_cellspacing != null)
208: return _cellspacing;
209: else if (_cellspacingExpr != null)
210: return Util.evalString(_cellspacingExpr);
211: else
212: return null;
213: }
214:
215: public void setCellspacing(String value) {
216: _cellspacing = value;
217: }
218:
219: public String getColumnClasses() {
220: if (_columnClasses != null)
221: return _columnClasses;
222: else if (_columnClassesExpr != null)
223: return Util.evalString(_columnClassesExpr);
224: else
225: return null;
226: }
227:
228: public void setColumnClasses(String value) {
229: _columnClasses = value;
230: }
231:
232: public int getColumns() {
233: if (_columns != null)
234: return _columns;
235: else if (_columnsExpr != null)
236: return Util.evalInt(_columnsExpr);
237: else
238: return Integer.MIN_VALUE;
239: }
240:
241: public void setColumns(int value) {
242: _columns = value;
243: }
244:
245: public String getDir() {
246: if (_dir != null)
247: return _dir;
248: else if (_dirExpr != null)
249: return Util.evalString(_dirExpr);
250: else
251: return null;
252: }
253:
254: public void setDir(String value) {
255: _dir = value;
256: }
257:
258: public String getFooterClass() {
259: if (_footerClass != null)
260: return _footerClass;
261: else if (_footerClassExpr != null)
262: return Util.evalString(_footerClassExpr);
263: else
264: return null;
265: }
266:
267: public void setFooterClass(String value) {
268: _footerClass = value;
269: }
270:
271: public String getFrame() {
272: if (_frame != null)
273: return _frame;
274: else if (_frameExpr != null)
275: return Util.evalString(_frameExpr);
276: else
277: return null;
278: }
279:
280: public void setFrame(String value) {
281: _frame = value;
282: }
283:
284: public String getHeaderClass() {
285: if (_headerClass != null)
286: return _headerClass;
287: else if (_headerClassExpr != null)
288: return Util.evalString(_headerClassExpr);
289: else
290: return null;
291: }
292:
293: public void setHeaderClass(String value) {
294: _headerClass = value;
295: }
296:
297: public String getLang() {
298: if (_lang != null)
299: return _lang;
300: else if (_langExpr != null)
301: return Util.evalString(_langExpr);
302: else
303: return null;
304: }
305:
306: public void setLang(String value) {
307: _lang = value;
308: }
309:
310: public String getOnclick() {
311: if (_onclick != null)
312: return _onclick;
313: else if (_onclickExpr != null)
314: return Util.evalString(_onclickExpr);
315: else
316: return null;
317: }
318:
319: public void setOnclick(String value) {
320: _onclick = value;
321: }
322:
323: public String getOndblclick() {
324: if (_ondblclick != null)
325: return _ondblclick;
326: else if (_ondblclickExpr != null)
327: return Util.evalString(_ondblclickExpr);
328: else
329: return null;
330: }
331:
332: public void setOndblclick(String value) {
333: _ondblclick = value;
334: }
335:
336: public String getOnkeydown() {
337: if (_onkeydown != null)
338: return _onkeydown;
339: else if (_onkeydownExpr != null)
340: return Util.evalString(_onkeydownExpr);
341: else
342: return null;
343: }
344:
345: public void setOnkeydown(String value) {
346: _onkeydown = value;
347: }
348:
349: public String getOnkeypress() {
350: if (_onkeypress != null)
351: return _onkeypress;
352: else if (_onkeypressExpr != null)
353: return Util.evalString(_onkeypressExpr);
354: else
355: return null;
356: }
357:
358: public void setOnkeypress(String value) {
359: _onkeypress = value;
360: }
361:
362: public String getOnkeyup() {
363: if (_onkeyup != null)
364: return _onkeyup;
365: else if (_onkeyupExpr != null)
366: return Util.evalString(_onkeyupExpr);
367: else
368: return null;
369: }
370:
371: public void setOnkeyup(String value) {
372: _onkeyup = value;
373: }
374:
375: public String getOnmousedown() {
376: if (_onmousedown != null)
377: return _onmousedown;
378: else if (_onmousedownExpr != null)
379: return Util.evalString(_onmousedownExpr);
380: else
381: return null;
382: }
383:
384: public void setOnmousedown(String value) {
385: _onmousedown = value;
386: }
387:
388: public String getOnmousemove() {
389: if (_onmousemove != null)
390: return _onmousemove;
391: else if (_onmousemoveExpr != null)
392: return Util.evalString(_onmousemoveExpr);
393: else
394: return null;
395: }
396:
397: public void setOnmousemove(String value) {
398: _onmousemove = value;
399: }
400:
401: public String getOnmouseout() {
402: if (_onmouseout != null)
403: return _onmouseout;
404: else if (_onmouseoutExpr != null)
405: return Util.evalString(_onmouseoutExpr);
406: else
407: return null;
408: }
409:
410: public void setOnmouseout(String value) {
411: _onmouseout = value;
412: }
413:
414: public String getOnmouseover() {
415: if (_onmouseover != null)
416: return _onmouseover;
417: else if (_onmouseoverExpr != null)
418: return Util.evalString(_onmouseoverExpr);
419: else
420: return null;
421: }
422:
423: public void setOnmouseover(String value) {
424: _onmouseover = value;
425: }
426:
427: public String getOnmouseup() {
428: if (_onmouseup != null)
429: return _onmouseup;
430: else if (_onmouseupExpr != null)
431: return Util.evalString(_onmouseupExpr);
432: else
433: return null;
434: }
435:
436: public void setOnmouseup(String value) {
437: _onmouseup = value;
438: }
439:
440: public String getRowClasses() {
441: if (_rowClasses != null)
442: return _rowClasses;
443: else if (_rowClassesExpr != null)
444: return Util.evalString(_rowClassesExpr);
445: else
446: return null;
447: }
448:
449: public void setRowClasses(String value) {
450: _rowClasses = value;
451: }
452:
453: public String getRules() {
454: if (_rules != null)
455: return _rules;
456: else if (_rulesExpr != null)
457: return Util.evalString(_rulesExpr);
458: else
459: return null;
460: }
461:
462: public void setRules(String value) {
463: _rules = value;
464: }
465:
466: public String getStyle() {
467: if (_style != null)
468: return _style;
469: else if (_styleExpr != null)
470: return Util.evalString(_styleExpr);
471: else
472: return null;
473: }
474:
475: public void setStyle(String value) {
476: _style = value;
477: }
478:
479: public String getStyleClass() {
480: if (_styleClass != null)
481: return _styleClass;
482: else if (_styleClassExpr != null)
483: return Util.evalString(_styleClassExpr);
484: else
485: return null;
486: }
487:
488: public void setStyleClass(String value) {
489: _styleClass = value;
490: }
491:
492: public String getSummary() {
493: if (_summary != null)
494: return _summary;
495: else if (_summaryExpr != null)
496: return Util.evalString(_summaryExpr);
497: else
498: return null;
499: }
500:
501: public void setSummary(String value) {
502: _summary = value;
503: }
504:
505: public String getTitle() {
506: if (_title != null)
507: return _title;
508: else if (_titleExpr != null)
509: return Util.evalString(_titleExpr);
510: else
511: return null;
512: }
513:
514: public void setTitle(String value) {
515: _title = value;
516: }
517:
518: public String getWidth() {
519: if (_width != null)
520: return _width;
521: else if (_widthExpr != null)
522: return Util.evalString(_widthExpr);
523: else
524: return null;
525: }
526:
527: public void setWidth(String value) {
528: _width = value;
529: }
530:
531: //
532: // value expression override
533: //
534:
535: /**
536: * Returns the value expression with the given name.
537: */
538: @Override
539: public ValueExpression getValueExpression(String name) {
540: PropEnum prop = _propMap.get(name);
541:
542: if (prop != null) {
543: switch (prop) {
544: case BGCOLOR:
545: return _bgcolorExpr;
546: case BORDER:
547: return _borderExpr;
548: case CAPTION_CLASS:
549: return _captionClassExpr;
550: case CAPTION_STYLE:
551: return _captionStyleExpr;
552: case CELLPADDING:
553: return _cellpaddingExpr;
554: case CELLSPACING:
555: return _cellspacingExpr;
556: case COLUMN_CLASSES:
557: return _columnClassesExpr;
558: case COLUMNS:
559: return _columnsExpr;
560: case DIR:
561: return _dirExpr;
562: case FOOTER_CLASS:
563: return _footerClassExpr;
564: case FRAME:
565: return _frameExpr;
566: case HEADER_CLASS:
567: return _headerClassExpr;
568: case LANG:
569: return _langExpr;
570: case ONCLICK:
571: return _onclickExpr;
572: case ONDBLCLICK:
573: return _ondblclickExpr;
574: case ONKEYDOWN:
575: return _onkeydownExpr;
576: case ONKEYPRESS:
577: return _onkeypressExpr;
578: case ONKEYUP:
579: return _onkeyupExpr;
580: case ONMOUSEDOWN:
581: return _onmousedownExpr;
582: case ONMOUSEMOVE:
583: return _onmousemoveExpr;
584: case ONMOUSEOUT:
585: return _onmouseoutExpr;
586: case ONMOUSEOVER:
587: return _onmouseoverExpr;
588: case ONMOUSEUP:
589: return _onmouseupExpr;
590: case ROW_CLASSES:
591: return _rowClassesExpr;
592: case RULES:
593: return _rulesExpr;
594: case STYLE:
595: return _styleExpr;
596: case STYLE_CLASS:
597: return _styleClassExpr;
598: case SUMMARY:
599: return _summaryExpr;
600: case TITLE:
601: return _titleExpr;
602: case WIDTH:
603: return _widthExpr;
604: }
605: }
606:
607: return super .getValueExpression(name);
608: }
609:
610: /**
611: * Sets the value expression with the given name.
612: */
613: @Override
614: public void setValueExpression(String name, ValueExpression expr) {
615: PropEnum prop = _propMap.get(name);
616:
617: if (prop != null) {
618: switch (prop) {
619: case BGCOLOR:
620: if (expr != null && expr.isLiteralText()) {
621: _bgcolor = Util.evalString(expr);
622: return;
623: } else
624: _bgcolorExpr = expr;
625: break;
626:
627: case BORDER:
628: if (expr != null && expr.isLiteralText()) {
629: _border = Util.evalInt(expr);
630: return;
631: } else
632: _borderExpr = expr;
633: break;
634:
635: case CAPTION_CLASS:
636: if (expr != null && expr.isLiteralText()) {
637: _captionClass = Util.evalString(expr);
638: return;
639: } else
640: _captionClassExpr = expr;
641: break;
642:
643: case CAPTION_STYLE:
644: if (expr != null && expr.isLiteralText()) {
645: _captionStyle = Util.evalString(expr);
646: return;
647: } else
648: _captionStyleExpr = expr;
649: break;
650:
651: case CELLPADDING:
652: if (expr != null && expr.isLiteralText()) {
653: _cellpadding = Util.evalString(expr);
654: return;
655: } else
656: _cellpaddingExpr = expr;
657: break;
658:
659: case CELLSPACING:
660: if (expr != null && expr.isLiteralText()) {
661: _cellspacing = Util.evalString(expr);
662: return;
663: } else
664: _cellspacingExpr = expr;
665: break;
666:
667: case COLUMN_CLASSES:
668: if (expr != null && expr.isLiteralText()) {
669: _columnClasses = Util.evalString(expr);
670: return;
671: } else
672: _columnClassesExpr = expr;
673: break;
674:
675: case COLUMNS:
676: if (expr != null && expr.isLiteralText()) {
677: _columns = Util.evalInt(expr);
678: return;
679: } else
680: _columnsExpr = expr;
681: break;
682:
683: case DIR:
684: if (expr != null && expr.isLiteralText()) {
685: _dir = Util.evalString(expr);
686: return;
687: } else
688: _dirExpr = expr;
689: break;
690:
691: case FOOTER_CLASS:
692: if (expr != null && expr.isLiteralText()) {
693: _footerClass = Util.evalString(expr);
694: return;
695: } else
696: _footerClassExpr = expr;
697: break;
698:
699: case FRAME:
700: if (expr != null && expr.isLiteralText()) {
701: _frame = Util.evalString(expr);
702: return;
703: } else
704: _frameExpr = expr;
705: break;
706:
707: case HEADER_CLASS:
708: if (expr != null && expr.isLiteralText()) {
709: _headerClass = Util.evalString(expr);
710: return;
711: } else
712: _headerClassExpr = expr;
713: break;
714:
715: case LANG:
716: if (expr != null && expr.isLiteralText()) {
717: _lang = Util.evalString(expr);
718: return;
719: } else
720: _langExpr = expr;
721: break;
722:
723: case ONCLICK:
724: if (expr != null && expr.isLiteralText()) {
725: _onclick = Util.evalString(expr);
726: return;
727: } else
728: _onclickExpr = expr;
729: break;
730:
731: case ONDBLCLICK:
732: if (expr != null && expr.isLiteralText()) {
733: _ondblclick = Util.evalString(expr);
734: return;
735: } else
736: _ondblclickExpr = expr;
737: break;
738:
739: case ONKEYDOWN:
740: if (expr != null && expr.isLiteralText()) {
741: _onkeydown = Util.evalString(expr);
742: return;
743: } else
744: _onkeydownExpr = expr;
745: break;
746:
747: case ONKEYPRESS:
748: if (expr != null && expr.isLiteralText()) {
749: _onkeypress = Util.evalString(expr);
750: return;
751: } else
752: _onkeypressExpr = expr;
753: break;
754:
755: case ONKEYUP:
756: if (expr != null && expr.isLiteralText()) {
757: _onkeyup = Util.evalString(expr);
758: return;
759: } else
760: _onkeyupExpr = expr;
761: break;
762:
763: case ONMOUSEDOWN:
764: if (expr != null && expr.isLiteralText()) {
765: _onmousedown = Util.evalString(expr);
766: return;
767: } else
768: _onmousedownExpr = expr;
769: break;
770:
771: case ONMOUSEMOVE:
772: if (expr != null && expr.isLiteralText()) {
773: _onmousemove = Util.evalString(expr);
774: return;
775: } else
776: _onmousemoveExpr = expr;
777: break;
778:
779: case ONMOUSEOUT:
780: if (expr != null && expr.isLiteralText()) {
781: _onmouseout = Util.evalString(expr);
782: return;
783: } else
784: _onmouseoutExpr = expr;
785: break;
786:
787: case ONMOUSEOVER:
788: if (expr != null && expr.isLiteralText()) {
789: _onmouseover = Util.evalString(expr);
790: return;
791: } else
792: _onmouseoverExpr = expr;
793: break;
794:
795: case ONMOUSEUP:
796: if (expr != null && expr.isLiteralText()) {
797: _onmouseup = Util.evalString(expr);
798: return;
799: } else
800: _onmouseupExpr = expr;
801: break;
802:
803: case ROW_CLASSES:
804: if (expr != null && expr.isLiteralText()) {
805: _rowClasses = Util.evalString(expr);
806: return;
807: } else
808: _rowClassesExpr = expr;
809: break;
810:
811: case RULES:
812: if (expr != null && expr.isLiteralText()) {
813: _rules = Util.evalString(expr);
814: return;
815: } else
816: _rulesExpr = expr;
817: break;
818:
819: case STYLE:
820: if (expr != null && expr.isLiteralText()) {
821: _style = Util.evalString(expr);
822: return;
823: } else
824: _styleExpr = expr;
825: break;
826:
827: case STYLE_CLASS:
828: if (expr != null && expr.isLiteralText()) {
829: _styleClass = Util.evalString(expr);
830: return;
831: } else
832: _styleClassExpr = expr;
833: break;
834:
835: case SUMMARY:
836: if (expr != null && expr.isLiteralText()) {
837: _summary = Util.evalString(expr);
838: return;
839: } else
840: _summaryExpr = expr;
841: break;
842:
843: case TITLE:
844: if (expr != null && expr.isLiteralText()) {
845: _title = Util.evalString(expr);
846: return;
847: } else
848: _titleExpr = expr;
849: break;
850:
851: case WIDTH:
852: if (expr != null && expr.isLiteralText()) {
853: _width = Util.evalString(expr);
854: return;
855: } else
856: _widthExpr = expr;
857: break;
858: }
859: }
860:
861: super .setValueExpression(name, expr);
862: }
863:
864: //
865: // state
866: //
867:
868: @Override
869: public Object saveState(FacesContext context) {
870: Object parent = super .saveState(context);
871:
872: return new Object[] { parent, _bgcolor, _border, _captionClass,
873: _captionStyle, _cellpadding, _cellspacing,
874: _columnClasses, _columns, _dir, _footerClass, _frame,
875: _headerClass, _lang,
876:
877: _onclick, _ondblclick, _onkeydown, _onkeypress,
878: _onkeyup,
879:
880: _onmousedown, _onmousemove, _onmouseout, _onmouseover,
881: _onmouseup,
882:
883: _rowClasses, _rules,
884:
885: _style, _styleClass, _summary, _title, _width, };
886: }
887:
888: @Override
889: public void restoreState(FacesContext context, Object value) {
890: Object[] state = (Object[]) value;
891:
892: int i = 0;
893:
894: if (state != null)
895: super .restoreState(context, state[i++]);
896:
897: _bgcolor = (String) state[i++];
898: _border = (Integer) state[i++];
899: _captionClass = (String) state[i++];
900: _captionStyle = (String) state[i++];
901: _cellpadding = (String) state[i++];
902: _cellspacing = (String) state[i++];
903: _columnClasses = (String) state[i++];
904: _columns = (Integer) state[i++];
905: _dir = (String) state[i++];
906: _footerClass = (String) state[i++];
907: _frame = (String) state[i++];
908: _headerClass = (String) state[i++];
909: _lang = (String) state[i++];
910: _onclick = (String) state[i++];
911: _ondblclick = (String) state[i++];
912: _onkeydown = (String) state[i++];
913: _onkeypress = (String) state[i++];
914: _onkeyup = (String) state[i++];
915: _onmousedown = (String) state[i++];
916: _onmousemove = (String) state[i++];
917: _onmouseout = (String) state[i++];
918: _onmouseover = (String) state[i++];
919: _onmouseup = (String) state[i++];
920: _rowClasses = (String) state[i++];
921: _rules = (String) state[i++];
922: _style = (String) state[i++];
923: _styleClass = (String) state[i++];
924: _summary = (String) state[i++];
925: _title = (String) state[i++];
926: _width = (String) state[i++];
927: }
928:
929: //
930: // utility
931: //
932:
933: private enum PropEnum {
934: BGCOLOR, BORDER, CAPTION_CLASS, CAPTION_STYLE, CELLPADDING, CELLSPACING, COLUMN_CLASSES, COLUMNS, DIR, FOOTER_CLASS, FRAME, HEADER_CLASS, LANG, ONCLICK, ONDBLCLICK, ONKEYDOWN, ONKEYPRESS, ONKEYUP, ONMOUSEDOWN, ONMOUSEMOVE, ONMOUSEOUT, ONMOUSEOVER, ONMOUSEUP, ROW_CLASSES, RULES, STYLE, STYLE_CLASS, SUMMARY, TITLE, WIDTH,
935: }
936:
937: static {
938: _propMap.put("bgcolor", PropEnum.BGCOLOR);
939: _propMap.put("border", PropEnum.BORDER);
940: _propMap.put("captionClass", PropEnum.CAPTION_CLASS);
941: _propMap.put("captionStyle", PropEnum.CAPTION_STYLE);
942: _propMap.put("cellpadding", PropEnum.CELLPADDING);
943: _propMap.put("cellspacing", PropEnum.CELLSPACING);
944: _propMap.put("columnClasses", PropEnum.COLUMN_CLASSES);
945: _propMap.put("columns", PropEnum.COLUMNS);
946: _propMap.put("dir", PropEnum.DIR);
947: _propMap.put("footerClass", PropEnum.FOOTER_CLASS);
948: _propMap.put("frame", PropEnum.FRAME);
949: _propMap.put("headerClass", PropEnum.HEADER_CLASS);
950: _propMap.put("lang", PropEnum.LANG);
951: _propMap.put("onclick", PropEnum.ONCLICK);
952: _propMap.put("ondblclick", PropEnum.ONDBLCLICK);
953: _propMap.put("onkeydown", PropEnum.ONKEYDOWN);
954: _propMap.put("onkeypress", PropEnum.ONKEYPRESS);
955: _propMap.put("onkeyup", PropEnum.ONKEYUP);
956: _propMap.put("onmousedown", PropEnum.ONMOUSEDOWN);
957: _propMap.put("onmousemove", PropEnum.ONMOUSEMOVE);
958: _propMap.put("onmouseover", PropEnum.ONMOUSEOVER);
959: _propMap.put("onmouseout", PropEnum.ONMOUSEOUT);
960: _propMap.put("onmouseup", PropEnum.ONMOUSEUP);
961: _propMap.put("rowClasses", PropEnum.ROW_CLASSES);
962: _propMap.put("rules", PropEnum.RULES);
963: _propMap.put("style", PropEnum.STYLE);
964: _propMap.put("styleClass", PropEnum.STYLE_CLASS);
965: _propMap.put("summary", PropEnum.SUMMARY);
966: _propMap.put("title", PropEnum.TITLE);
967: _propMap.put("width", PropEnum.WIDTH);
968: }
969: }
|