0001: // WARNING: This file was automatically generated. Do not edit it directly,
0002: // or you will lose your changes.
0003:
0004: /*
0005: * Licensed to the Apache Software Foundation (ASF) under one
0006: * or more contributor license agreements. See the NOTICE file
0007: * distributed with this work for additional information
0008: * regarding copyright ownership. The ASF licenses this file
0009: * to you under the Apache License, Version 2.0 (the
0010: * "License"); you may not use this file except in compliance
0011: * with the License. You may obtain a copy of the License at
0012: *
0013: * http://www.apache.org/licenses/LICENSE-2.0
0014: *
0015: * Unless required by applicable law or agreed to in writing,
0016: * software distributed under the License is distributed on an
0017: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
0018: * KIND, either express or implied. See the License for the
0019: * specific language governing permissions and limitations
0020: * under the License.
0021: */
0022: package javax.faces.component.html;
0023:
0024: import javax.el.ValueExpression;
0025: import javax.faces.component.UIPanel;
0026: import javax.faces.context.FacesContext;
0027:
0028: /**
0029: */
0030: public class HtmlPanelGrid extends UIPanel {
0031:
0032: static public final String COMPONENT_FAMILY = "javax.faces.Panel";
0033: static public final String COMPONENT_TYPE = "javax.faces.HtmlPanelGrid";
0034:
0035: /**
0036: * Construct an instance of the HtmlPanelGrid.
0037: */
0038: public HtmlPanelGrid() {
0039: setRendererType("javax.faces.Grid");
0040: }
0041:
0042: // Property: style
0043: private String _style;
0044:
0045: /**
0046: * Gets CSS styling instructions.
0047: *
0048: * @return the new style value
0049: */
0050: public String getStyle() {
0051: if (_style != null) {
0052: return _style;
0053: }
0054: ValueExpression expression = getValueExpression("style");
0055: if (expression != null) {
0056: return (String) expression.getValue(getFacesContext()
0057: .getELContext());
0058: }
0059: return null;
0060: }
0061:
0062: /**
0063: * Sets CSS styling instructions.
0064: *
0065: * @param style the new style value
0066: */
0067: public void setStyle(String style) {
0068: this ._style = style;
0069: }
0070:
0071: // Property: styleClass
0072: private String _styleClass;
0073:
0074: /**
0075: * Gets The CSS class for this element. Corresponds to the HTML 'class' attribute.
0076: *
0077: * @return the new styleClass value
0078: */
0079: public String getStyleClass() {
0080: if (_styleClass != null) {
0081: return _styleClass;
0082: }
0083: ValueExpression expression = getValueExpression("styleClass");
0084: if (expression != null) {
0085: return (String) expression.getValue(getFacesContext()
0086: .getELContext());
0087: }
0088: return null;
0089: }
0090:
0091: /**
0092: * Sets The CSS class for this element. Corresponds to the HTML 'class' attribute.
0093: *
0094: * @param styleClass the new styleClass value
0095: */
0096: public void setStyleClass(String styleClass) {
0097: this ._styleClass = styleClass;
0098: }
0099:
0100: // Property: dir
0101: private String _dir;
0102:
0103: /**
0104: * Gets The direction of text display, either 'ltr' (left-to-right) or 'rtl' (right-to-left).
0105: *
0106: * @return the new dir value
0107: */
0108: public String getDir() {
0109: if (_dir != null) {
0110: return _dir;
0111: }
0112: ValueExpression expression = getValueExpression("dir");
0113: if (expression != null) {
0114: return (String) expression.getValue(getFacesContext()
0115: .getELContext());
0116: }
0117: return null;
0118: }
0119:
0120: /**
0121: * Sets The direction of text display, either 'ltr' (left-to-right) or 'rtl' (right-to-left).
0122: *
0123: * @param dir the new dir value
0124: */
0125: public void setDir(String dir) {
0126: this ._dir = dir;
0127: }
0128:
0129: // Property: lang
0130: private String _lang;
0131:
0132: /**
0133: * Gets The base language of this document.
0134: *
0135: * @return the new lang value
0136: */
0137: public String getLang() {
0138: if (_lang != null) {
0139: return _lang;
0140: }
0141: ValueExpression expression = getValueExpression("lang");
0142: if (expression != null) {
0143: return (String) expression.getValue(getFacesContext()
0144: .getELContext());
0145: }
0146: return null;
0147: }
0148:
0149: /**
0150: * Sets The base language of this document.
0151: *
0152: * @param lang the new lang value
0153: */
0154: public void setLang(String lang) {
0155: this ._lang = lang;
0156: }
0157:
0158: // Property: title
0159: private String _title;
0160:
0161: /**
0162: * Gets An advisory title for this element. Often used by the user agent as a tooltip.
0163: *
0164: * @return the new title value
0165: */
0166: public String getTitle() {
0167: if (_title != null) {
0168: return _title;
0169: }
0170: ValueExpression expression = getValueExpression("title");
0171: if (expression != null) {
0172: return (String) expression.getValue(getFacesContext()
0173: .getELContext());
0174: }
0175: return null;
0176: }
0177:
0178: /**
0179: * Sets An advisory title for this element. Often used by the user agent as a tooltip.
0180: *
0181: * @param title the new title value
0182: */
0183: public void setTitle(String title) {
0184: this ._title = title;
0185: }
0186:
0187: // Property: onclick
0188: private String _onclick;
0189:
0190: /**
0191: * Gets Script to be invoked when the element is clicked.
0192: *
0193: * @return the new onclick value
0194: */
0195: public String getOnclick() {
0196: if (_onclick != null) {
0197: return _onclick;
0198: }
0199: ValueExpression expression = getValueExpression("onclick");
0200: if (expression != null) {
0201: return (String) expression.getValue(getFacesContext()
0202: .getELContext());
0203: }
0204: return null;
0205: }
0206:
0207: /**
0208: * Sets Script to be invoked when the element is clicked.
0209: *
0210: * @param onclick the new onclick value
0211: */
0212: public void setOnclick(String onclick) {
0213: this ._onclick = onclick;
0214: }
0215:
0216: // Property: ondblclick
0217: private String _ondblclick;
0218:
0219: /**
0220: * Gets Script to be invoked when the element is double-clicked.
0221: *
0222: * @return the new ondblclick value
0223: */
0224: public String getOndblclick() {
0225: if (_ondblclick != null) {
0226: return _ondblclick;
0227: }
0228: ValueExpression expression = getValueExpression("ondblclick");
0229: if (expression != null) {
0230: return (String) expression.getValue(getFacesContext()
0231: .getELContext());
0232: }
0233: return null;
0234: }
0235:
0236: /**
0237: * Sets Script to be invoked when the element is double-clicked.
0238: *
0239: * @param ondblclick the new ondblclick value
0240: */
0241: public void setOndblclick(String ondblclick) {
0242: this ._ondblclick = ondblclick;
0243: }
0244:
0245: // Property: onmousedown
0246: private String _onmousedown;
0247:
0248: /**
0249: * Gets Script to be invoked when the pointing device is pressed over this element.
0250: *
0251: * @return the new onmousedown value
0252: */
0253: public String getOnmousedown() {
0254: if (_onmousedown != null) {
0255: return _onmousedown;
0256: }
0257: ValueExpression expression = getValueExpression("onmousedown");
0258: if (expression != null) {
0259: return (String) expression.getValue(getFacesContext()
0260: .getELContext());
0261: }
0262: return null;
0263: }
0264:
0265: /**
0266: * Sets Script to be invoked when the pointing device is pressed over this element.
0267: *
0268: * @param onmousedown the new onmousedown value
0269: */
0270: public void setOnmousedown(String onmousedown) {
0271: this ._onmousedown = onmousedown;
0272: }
0273:
0274: // Property: onmouseup
0275: private String _onmouseup;
0276:
0277: /**
0278: * Gets Script to be invoked when the pointing device is released over this element.
0279: *
0280: * @return the new onmouseup value
0281: */
0282: public String getOnmouseup() {
0283: if (_onmouseup != null) {
0284: return _onmouseup;
0285: }
0286: ValueExpression expression = getValueExpression("onmouseup");
0287: if (expression != null) {
0288: return (String) expression.getValue(getFacesContext()
0289: .getELContext());
0290: }
0291: return null;
0292: }
0293:
0294: /**
0295: * Sets Script to be invoked when the pointing device is released over this element.
0296: *
0297: * @param onmouseup the new onmouseup value
0298: */
0299: public void setOnmouseup(String onmouseup) {
0300: this ._onmouseup = onmouseup;
0301: }
0302:
0303: // Property: onmouseover
0304: private String _onmouseover;
0305:
0306: /**
0307: * Gets Script to be invoked when the pointing device is moved into this element.
0308: *
0309: * @return the new onmouseover value
0310: */
0311: public String getOnmouseover() {
0312: if (_onmouseover != null) {
0313: return _onmouseover;
0314: }
0315: ValueExpression expression = getValueExpression("onmouseover");
0316: if (expression != null) {
0317: return (String) expression.getValue(getFacesContext()
0318: .getELContext());
0319: }
0320: return null;
0321: }
0322:
0323: /**
0324: * Sets Script to be invoked when the pointing device is moved into this element.
0325: *
0326: * @param onmouseover the new onmouseover value
0327: */
0328: public void setOnmouseover(String onmouseover) {
0329: this ._onmouseover = onmouseover;
0330: }
0331:
0332: // Property: onmousemove
0333: private String _onmousemove;
0334:
0335: /**
0336: * Gets Script to be invoked when the pointing device is moved while it is in this element.
0337: *
0338: * @return the new onmousemove value
0339: */
0340: public String getOnmousemove() {
0341: if (_onmousemove != null) {
0342: return _onmousemove;
0343: }
0344: ValueExpression expression = getValueExpression("onmousemove");
0345: if (expression != null) {
0346: return (String) expression.getValue(getFacesContext()
0347: .getELContext());
0348: }
0349: return null;
0350: }
0351:
0352: /**
0353: * Sets Script to be invoked when the pointing device is moved while it is in this element.
0354: *
0355: * @param onmousemove the new onmousemove value
0356: */
0357: public void setOnmousemove(String onmousemove) {
0358: this ._onmousemove = onmousemove;
0359: }
0360:
0361: // Property: onmouseout
0362: private String _onmouseout;
0363:
0364: /**
0365: * Gets Script to be invoked when the pointing device is moves out of this element.
0366: *
0367: * @return the new onmouseout value
0368: */
0369: public String getOnmouseout() {
0370: if (_onmouseout != null) {
0371: return _onmouseout;
0372: }
0373: ValueExpression expression = getValueExpression("onmouseout");
0374: if (expression != null) {
0375: return (String) expression.getValue(getFacesContext()
0376: .getELContext());
0377: }
0378: return null;
0379: }
0380:
0381: /**
0382: * Sets Script to be invoked when the pointing device is moves out of this element.
0383: *
0384: * @param onmouseout the new onmouseout value
0385: */
0386: public void setOnmouseout(String onmouseout) {
0387: this ._onmouseout = onmouseout;
0388: }
0389:
0390: // Property: onkeypress
0391: private String _onkeypress;
0392:
0393: /**
0394: * Gets Script to be invoked when a key is pressed over this element.
0395: *
0396: * @return the new onkeypress value
0397: */
0398: public String getOnkeypress() {
0399: if (_onkeypress != null) {
0400: return _onkeypress;
0401: }
0402: ValueExpression expression = getValueExpression("onkeypress");
0403: if (expression != null) {
0404: return (String) expression.getValue(getFacesContext()
0405: .getELContext());
0406: }
0407: return null;
0408: }
0409:
0410: /**
0411: * Sets Script to be invoked when a key is pressed over this element.
0412: *
0413: * @param onkeypress the new onkeypress value
0414: */
0415: public void setOnkeypress(String onkeypress) {
0416: this ._onkeypress = onkeypress;
0417: }
0418:
0419: // Property: onkeydown
0420: private String _onkeydown;
0421:
0422: /**
0423: * Gets Script to be invoked when a key is pressed down over this element.
0424: *
0425: * @return the new onkeydown value
0426: */
0427: public String getOnkeydown() {
0428: if (_onkeydown != null) {
0429: return _onkeydown;
0430: }
0431: ValueExpression expression = getValueExpression("onkeydown");
0432: if (expression != null) {
0433: return (String) expression.getValue(getFacesContext()
0434: .getELContext());
0435: }
0436: return null;
0437: }
0438:
0439: /**
0440: * Sets Script to be invoked when a key is pressed down over this element.
0441: *
0442: * @param onkeydown the new onkeydown value
0443: */
0444: public void setOnkeydown(String onkeydown) {
0445: this ._onkeydown = onkeydown;
0446: }
0447:
0448: // Property: onkeyup
0449: private String _onkeyup;
0450:
0451: /**
0452: * Gets Script to be invoked when a key is released over this element.
0453: *
0454: * @return the new onkeyup value
0455: */
0456: public String getOnkeyup() {
0457: if (_onkeyup != null) {
0458: return _onkeyup;
0459: }
0460: ValueExpression expression = getValueExpression("onkeyup");
0461: if (expression != null) {
0462: return (String) expression.getValue(getFacesContext()
0463: .getELContext());
0464: }
0465: return null;
0466: }
0467:
0468: /**
0469: * Sets Script to be invoked when a key is released over this element.
0470: *
0471: * @param onkeyup the new onkeyup value
0472: */
0473: public void setOnkeyup(String onkeyup) {
0474: this ._onkeyup = onkeyup;
0475: }
0476:
0477: // Property: border
0478: private int _border = -2147483648;
0479: private boolean _borderSet;
0480:
0481: /**
0482: * Gets Specifies the width of the border of this element, in pixels. Deprecated in HTML 4.01.
0483: *
0484: * @return the new border value
0485: */
0486: public int getBorder() {
0487: if (_borderSet) {
0488: return _border;
0489: }
0490: ValueExpression expression = getValueExpression("border");
0491: if (expression != null) {
0492: return (Integer) expression.getValue(getFacesContext()
0493: .getELContext());
0494: }
0495: return -2147483648;
0496: }
0497:
0498: /**
0499: * Sets Specifies the width of the border of this element, in pixels. Deprecated in HTML 4.01.
0500: *
0501: * @param border the new border value
0502: */
0503: public void setBorder(int border) {
0504: this ._border = border;
0505: this ._borderSet = true;
0506: }
0507:
0508: // Property: bgcolor
0509: private String _bgcolor;
0510:
0511: /**
0512: * Gets The background color of this element.
0513: *
0514: * @return the new bgcolor value
0515: */
0516: public String getBgcolor() {
0517: if (_bgcolor != null) {
0518: return _bgcolor;
0519: }
0520: ValueExpression expression = getValueExpression("bgcolor");
0521: if (expression != null) {
0522: return (String) expression.getValue(getFacesContext()
0523: .getELContext());
0524: }
0525: return null;
0526: }
0527:
0528: /**
0529: * Sets The background color of this element.
0530: *
0531: * @param bgcolor the new bgcolor value
0532: */
0533: public void setBgcolor(String bgcolor) {
0534: this ._bgcolor = bgcolor;
0535: }
0536:
0537: // Property: cellpadding
0538: private String _cellpadding;
0539:
0540: /**
0541: * Gets Specifies the amount of empty space between the cell border and
0542: * its contents. It can be either a pixel length or a percentage.
0543: *
0544: * @return the new cellpadding value
0545: */
0546: public String getCellpadding() {
0547: if (_cellpadding != null) {
0548: return _cellpadding;
0549: }
0550: ValueExpression expression = getValueExpression("cellpadding");
0551: if (expression != null) {
0552: return (String) expression.getValue(getFacesContext()
0553: .getELContext());
0554: }
0555: return null;
0556: }
0557:
0558: /**
0559: * Sets Specifies the amount of empty space between the cell border and
0560: * its contents. It can be either a pixel length or a percentage.
0561: *
0562: * @param cellpadding the new cellpadding value
0563: */
0564: public void setCellpadding(String cellpadding) {
0565: this ._cellpadding = cellpadding;
0566: }
0567:
0568: // Property: cellspacing
0569: private String _cellspacing;
0570:
0571: /**
0572: * Gets Specifies the amount of space between the cells of the table.
0573: * It can be either a pixel length or a percentage of available
0574: * space.
0575: *
0576: * @return the new cellspacing value
0577: */
0578: public String getCellspacing() {
0579: if (_cellspacing != null) {
0580: return _cellspacing;
0581: }
0582: ValueExpression expression = getValueExpression("cellspacing");
0583: if (expression != null) {
0584: return (String) expression.getValue(getFacesContext()
0585: .getELContext());
0586: }
0587: return null;
0588: }
0589:
0590: /**
0591: * Sets Specifies the amount of space between the cells of the table.
0592: * It can be either a pixel length or a percentage of available
0593: * space.
0594: *
0595: * @param cellspacing the new cellspacing value
0596: */
0597: public void setCellspacing(String cellspacing) {
0598: this ._cellspacing = cellspacing;
0599: }
0600:
0601: // Property: frame
0602: private String _frame;
0603:
0604: /**
0605: * Gets Controls what part of the frame that surrounds a table is
0606: * visible. Values include: void, above, below, hsides, lhs,
0607: * rhs, vsides, box, and border.
0608: *
0609: * @return the new frame value
0610: */
0611: public String getFrame() {
0612: if (_frame != null) {
0613: return _frame;
0614: }
0615: ValueExpression expression = getValueExpression("frame");
0616: if (expression != null) {
0617: return (String) expression.getValue(getFacesContext()
0618: .getELContext());
0619: }
0620: return null;
0621: }
0622:
0623: /**
0624: * Sets Controls what part of the frame that surrounds a table is
0625: * visible. Values include: void, above, below, hsides, lhs,
0626: * rhs, vsides, box, and border.
0627: *
0628: * @param frame the new frame value
0629: */
0630: public void setFrame(String frame) {
0631: this ._frame = frame;
0632: }
0633:
0634: // Property: rules
0635: private String _rules;
0636:
0637: /**
0638: * Gets Controls how rules are rendered between cells. Values include:
0639: * none, groups, rows, cols, and all.
0640: *
0641: * @return the new rules value
0642: */
0643: public String getRules() {
0644: if (_rules != null) {
0645: return _rules;
0646: }
0647: ValueExpression expression = getValueExpression("rules");
0648: if (expression != null) {
0649: return (String) expression.getValue(getFacesContext()
0650: .getELContext());
0651: }
0652: return null;
0653: }
0654:
0655: /**
0656: * Sets Controls how rules are rendered between cells. Values include:
0657: * none, groups, rows, cols, and all.
0658: *
0659: * @param rules the new rules value
0660: */
0661: public void setRules(String rules) {
0662: this ._rules = rules;
0663: }
0664:
0665: // Property: summary
0666: private String _summary;
0667:
0668: /**
0669: * Gets Provides a summary of the contents of the table, for
0670: * accessibility purposes.
0671: *
0672: * @return the new summary value
0673: */
0674: public String getSummary() {
0675: if (_summary != null) {
0676: return _summary;
0677: }
0678: ValueExpression expression = getValueExpression("summary");
0679: if (expression != null) {
0680: return (String) expression.getValue(getFacesContext()
0681: .getELContext());
0682: }
0683: return null;
0684: }
0685:
0686: /**
0687: * Sets Provides a summary of the contents of the table, for
0688: * accessibility purposes.
0689: *
0690: * @param summary the new summary value
0691: */
0692: public void setSummary(String summary) {
0693: this ._summary = summary;
0694: }
0695:
0696: // Property: width
0697: private String _width;
0698:
0699: /**
0700: * Gets Specifies the desired width of the table, as a pixel length or
0701: * a percentage of available space.
0702: *
0703: * @return the new width value
0704: */
0705: public String getWidth() {
0706: if (_width != null) {
0707: return _width;
0708: }
0709: ValueExpression expression = getValueExpression("width");
0710: if (expression != null) {
0711: return (String) expression.getValue(getFacesContext()
0712: .getELContext());
0713: }
0714: return null;
0715: }
0716:
0717: /**
0718: * Sets Specifies the desired width of the table, as a pixel length or
0719: * a percentage of available space.
0720: *
0721: * @param width the new width value
0722: */
0723: public void setWidth(String width) {
0724: this ._width = width;
0725: }
0726:
0727: // Property: columns
0728: private int _columns = 1;
0729: private boolean _columnsSet;
0730:
0731: /**
0732: * Gets Specifies the number of columns in the grid.
0733: *
0734: * @return the new columns value
0735: */
0736: public int getColumns() {
0737: if (_columnsSet) {
0738: return _columns;
0739: }
0740: ValueExpression expression = getValueExpression("columns");
0741: if (expression != null) {
0742: return (Integer) expression.getValue(getFacesContext()
0743: .getELContext());
0744: }
0745: return 1;
0746: }
0747:
0748: /**
0749: * Sets Specifies the number of columns in the grid.
0750: *
0751: * @param columns the new columns value
0752: */
0753: public void setColumns(int columns) {
0754: this ._columns = columns;
0755: this ._columnsSet = true;
0756: }
0757:
0758: // Property: captionStyle
0759: private String _captionStyle;
0760:
0761: /**
0762: * Gets CSS style to be used for the caption.
0763: *
0764: * @return the new captionStyle value
0765: */
0766: public String getCaptionStyle() {
0767: if (_captionStyle != null) {
0768: return _captionStyle;
0769: }
0770: ValueExpression expression = getValueExpression("captionStyle");
0771: if (expression != null) {
0772: return (String) expression.getValue(getFacesContext()
0773: .getELContext());
0774: }
0775: return null;
0776: }
0777:
0778: /**
0779: * Sets CSS style to be used for the caption.
0780: *
0781: * @param captionStyle the new captionStyle value
0782: */
0783: public void setCaptionStyle(String captionStyle) {
0784: this ._captionStyle = captionStyle;
0785: }
0786:
0787: // Property: captionClass
0788: private String _captionClass;
0789:
0790: /**
0791: * Gets CSS class to be used for the caption.
0792: *
0793: * @return the new captionClass value
0794: */
0795: public String getCaptionClass() {
0796: if (_captionClass != null) {
0797: return _captionClass;
0798: }
0799: ValueExpression expression = getValueExpression("captionClass");
0800: if (expression != null) {
0801: return (String) expression.getValue(getFacesContext()
0802: .getELContext());
0803: }
0804: return null;
0805: }
0806:
0807: /**
0808: * Sets CSS class to be used for the caption.
0809: *
0810: * @param captionClass the new captionClass value
0811: */
0812: public void setCaptionClass(String captionClass) {
0813: this ._captionClass = captionClass;
0814: }
0815:
0816: // Property: columnClasses
0817: private String _columnClasses;
0818:
0819: /**
0820: * Gets CSS class to be used for the columns.
0821: *
0822: * @return the new columnClasses value
0823: */
0824: public String getColumnClasses() {
0825: if (_columnClasses != null) {
0826: return _columnClasses;
0827: }
0828: ValueExpression expression = getValueExpression("columnClasses");
0829: if (expression != null) {
0830: return (String) expression.getValue(getFacesContext()
0831: .getELContext());
0832: }
0833: return null;
0834: }
0835:
0836: /**
0837: * Sets CSS class to be used for the columns.
0838: *
0839: * @param columnClasses the new columnClasses value
0840: */
0841: public void setColumnClasses(String columnClasses) {
0842: this ._columnClasses = columnClasses;
0843: }
0844:
0845: // Property: footerClass
0846: private String _footerClass;
0847:
0848: /**
0849: * Gets CSS class to be used for the footer.
0850: *
0851: * @return the new footerClass value
0852: */
0853: public String getFooterClass() {
0854: if (_footerClass != null) {
0855: return _footerClass;
0856: }
0857: ValueExpression expression = getValueExpression("footerClass");
0858: if (expression != null) {
0859: return (String) expression.getValue(getFacesContext()
0860: .getELContext());
0861: }
0862: return null;
0863: }
0864:
0865: /**
0866: * Sets CSS class to be used for the footer.
0867: *
0868: * @param footerClass the new footerClass value
0869: */
0870: public void setFooterClass(String footerClass) {
0871: this ._footerClass = footerClass;
0872: }
0873:
0874: // Property: headerClass
0875: private String _headerClass;
0876:
0877: /**
0878: * Gets CSS class to be used for the header.
0879: *
0880: * @return the new headerClass value
0881: */
0882: public String getHeaderClass() {
0883: if (_headerClass != null) {
0884: return _headerClass;
0885: }
0886: ValueExpression expression = getValueExpression("headerClass");
0887: if (expression != null) {
0888: return (String) expression.getValue(getFacesContext()
0889: .getELContext());
0890: }
0891: return null;
0892: }
0893:
0894: /**
0895: * Sets CSS class to be used for the header.
0896: *
0897: * @param headerClass the new headerClass value
0898: */
0899: public void setHeaderClass(String headerClass) {
0900: this ._headerClass = headerClass;
0901: }
0902:
0903: // Property: rowClasses
0904: private String _rowClasses;
0905:
0906: /**
0907: * Gets CSS class to be used for the rows.
0908: *
0909: * @return the new rowClasses value
0910: */
0911: public String getRowClasses() {
0912: if (_rowClasses != null) {
0913: return _rowClasses;
0914: }
0915: ValueExpression expression = getValueExpression("rowClasses");
0916: if (expression != null) {
0917: return (String) expression.getValue(getFacesContext()
0918: .getELContext());
0919: }
0920: return null;
0921: }
0922:
0923: /**
0924: * Sets CSS class to be used for the rows.
0925: *
0926: * @param rowClasses the new rowClasses value
0927: */
0928: public void setRowClasses(String rowClasses) {
0929: this ._rowClasses = rowClasses;
0930: }
0931:
0932: @Override
0933: public Object saveState(FacesContext facesContext) {
0934: Object[] values = new Object[33];
0935: values[0] = super .saveState(facesContext);
0936: values[1] = _style;
0937: values[2] = _styleClass;
0938: values[3] = _dir;
0939: values[4] = _lang;
0940: values[5] = _title;
0941: values[6] = _onclick;
0942: values[7] = _ondblclick;
0943: values[8] = _onmousedown;
0944: values[9] = _onmouseup;
0945: values[10] = _onmouseover;
0946: values[11] = _onmousemove;
0947: values[12] = _onmouseout;
0948: values[13] = _onkeypress;
0949: values[14] = _onkeydown;
0950: values[15] = _onkeyup;
0951: values[16] = _border;
0952: values[17] = _borderSet;
0953: values[18] = _bgcolor;
0954: values[19] = _cellpadding;
0955: values[20] = _cellspacing;
0956: values[21] = _frame;
0957: values[22] = _rules;
0958: values[23] = _summary;
0959: values[24] = _width;
0960: values[25] = _columns;
0961: values[26] = _columnsSet;
0962: values[27] = _captionStyle;
0963: values[28] = _captionClass;
0964: values[29] = _columnClasses;
0965: values[30] = _footerClass;
0966: values[31] = _headerClass;
0967: values[32] = _rowClasses;
0968:
0969: return values;
0970: }
0971:
0972: @Override
0973: public void restoreState(FacesContext facesContext, Object state) {
0974: Object[] values = (Object[]) state;
0975: super .restoreState(facesContext, values[0]);
0976: _style = (String) values[1];
0977: _styleClass = (String) values[2];
0978: _dir = (String) values[3];
0979: _lang = (String) values[4];
0980: _title = (String) values[5];
0981: _onclick = (String) values[6];
0982: _ondblclick = (String) values[7];
0983: _onmousedown = (String) values[8];
0984: _onmouseup = (String) values[9];
0985: _onmouseover = (String) values[10];
0986: _onmousemove = (String) values[11];
0987: _onmouseout = (String) values[12];
0988: _onkeypress = (String) values[13];
0989: _onkeydown = (String) values[14];
0990: _onkeyup = (String) values[15];
0991: _border = (Integer) values[16];
0992: _borderSet = (Boolean) values[17];
0993: _bgcolor = (String) values[18];
0994: _cellpadding = (String) values[19];
0995: _cellspacing = (String) values[20];
0996: _frame = (String) values[21];
0997: _rules = (String) values[22];
0998: _summary = (String) values[23];
0999: _width = (String) values[24];
1000: _columns = (Integer) values[25];
1001: _columnsSet = (Boolean) values[26];
1002: _captionStyle = (String) values[27];
1003: _captionClass = (String) values[28];
1004: _columnClasses = (String) values[29];
1005: _footerClass = (String) values[30];
1006: _headerClass = (String) values[31];
1007: _rowClasses = (String) values[32];
1008: }
1009:
1010: @Override
1011: public String getFamily() {
1012: return COMPONENT_FAMILY;
1013: }
1014: }
|