Source Code Cross Referenced for TableHeaderBase.java in  » IDE-Netbeans » visualweb.api.designer » com » sun » rave » web » ui » component » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » visualweb.api.designer » com.sun.rave.web.ui.component 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


0001:        /*
0002:         * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
0003:         *
0004:         * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
0005:         *
0006:         * The contents of this file are subject to the terms of either the GNU
0007:         * General Public License Version 2 only ("GPL") or the Common
0008:         * Development and Distribution License("CDDL") (collectively, the
0009:         * "License"). You may not use this file except in compliance with the
0010:         * License. You can obtain a copy of the License at
0011:         * http://www.netbeans.org/cddl-gplv2.html
0012:         * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
0013:         * specific language governing permissions and limitations under the
0014:         * License.  When distributing the software, include this License Header
0015:         * Notice in each file and include the License file at
0016:         * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
0017:         * particular file as subject to the "Classpath" exception as provided
0018:         * by Sun in the GPL Version 2 section of the License file that
0019:         * accompanied this code. If applicable, add the following below the
0020:         * License Header, with the fields enclosed by brackets [] replaced by
0021:         * your own identifying information:
0022:         * "Portions Copyrighted [year] [name of copyright owner]"
0023:         *
0024:         * Contributor(s):
0025:         *
0026:         * The Original Software is NetBeans. The Initial Developer of the Original
0027:         * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
0028:         * Microsystems, Inc. All Rights Reserved.
0029:         *
0030:         * If you wish your version of this file to be governed by only the CDDL
0031:         * or only the GPL Version 2, indicate your decision by adding
0032:         * "[Contributor] elects to include this software in this distribution
0033:         * under the [CDDL or GPL Version 2] license." If you do not indicate a
0034:         * single choice of license, a recipient has the option to distribute
0035:         * your version of this file under either the CDDL, the GPL Version 2 or
0036:         * to extend the choice of license to its licensees as provided above.
0037:         * However, if you add GPL Version 2 code and therefore, elected the GPL
0038:         * Version 2 license, then the option applies only if the new code is
0039:         * made subject to such option by the copyright holder.
0040:         */
0041:        package com.sun.rave.web.ui.component;
0042:
0043:        import java.io.IOException;
0044:        import javax.faces.component.UIComponent;
0045:        import javax.faces.context.FacesContext;
0046:        import javax.faces.el.MethodBinding;
0047:        import javax.faces.el.ValueBinding;
0048:
0049:        /**
0050:         * The tableHeader component provides a layout mechanism for displaying headers.
0051:         * <p>Auto-generated component class.
0052:         * Do <strong>NOT</strong> modify; all changes
0053:         * <strong>will</strong> be lost!</p>
0054:         */
0055:
0056:        public abstract class TableHeaderBase extends
0057:                javax.faces.component.UIComponentBase {
0058:
0059:            /**
0060:             * <p>Construct a new <code>TableHeaderBase</code>.</p>
0061:             */
0062:            public TableHeaderBase() {
0063:                super ();
0064:                setRendererType("com.sun.rave.web.ui.TableHeader");
0065:            }
0066:
0067:            /**
0068:             * <p>Return the identifier of the component family to which this
0069:             * component belongs.  This identifier, in conjunction with the value
0070:             * of the <code>rendererType</code> property, may be used to select
0071:             * the appropriate {@link Renderer} for this component instance.</p>
0072:             */
0073:            public String getFamily() {
0074:                return "com.sun.rave.web.ui.TableHeader";
0075:            }
0076:
0077:            // abbr
0078:            private String abbr = null;
0079:
0080:            public String getAbbr() {
0081:                if (this .abbr != null) {
0082:                    return this .abbr;
0083:                }
0084:                ValueBinding _vb = getValueBinding("abbr");
0085:                if (_vb != null) {
0086:                    return (String) _vb.getValue(getFacesContext());
0087:                }
0088:                return null;
0089:            }
0090:
0091:            public void setAbbr(String abbr) {
0092:                this .abbr = abbr;
0093:            }
0094:
0095:            // align
0096:            private String align = null;
0097:
0098:            /**
0099:             * <p>Sets the horizontal alignment (left, right, justify, center) for the cell contents</p>
0100:             */
0101:            public String getAlign() {
0102:                if (this .align != null) {
0103:                    return this .align;
0104:                }
0105:                ValueBinding _vb = getValueBinding("align");
0106:                if (_vb != null) {
0107:                    return (String) _vb.getValue(getFacesContext());
0108:                }
0109:                return null;
0110:            }
0111:
0112:            /**
0113:             * <p>Sets the horizontal alignment (left, right, justify, center) for the cell contents</p>
0114:             * @see #getAlign()
0115:             */
0116:            public void setAlign(String align) {
0117:                this .align = align;
0118:            }
0119:
0120:            // axis
0121:            private String axis = null;
0122:
0123:            public String getAxis() {
0124:                if (this .axis != null) {
0125:                    return this .axis;
0126:                }
0127:                ValueBinding _vb = getValueBinding("axis");
0128:                if (_vb != null) {
0129:                    return (String) _vb.getValue(getFacesContext());
0130:                }
0131:                return null;
0132:            }
0133:
0134:            public void setAxis(String axis) {
0135:                this .axis = axis;
0136:            }
0137:
0138:            // bgColor
0139:            private String bgColor = null;
0140:
0141:            public String getBgColor() {
0142:                if (this .bgColor != null) {
0143:                    return this .bgColor;
0144:                }
0145:                ValueBinding _vb = getValueBinding("bgColor");
0146:                if (_vb != null) {
0147:                    return (String) _vb.getValue(getFacesContext());
0148:                }
0149:                return null;
0150:            }
0151:
0152:            public void setBgColor(String bgColor) {
0153:                this .bgColor = bgColor;
0154:            }
0155:
0156:            // char
0157:            private String _char = null;
0158:
0159:            public String getChar() {
0160:                if (this ._char != null) {
0161:                    return this ._char;
0162:                }
0163:                ValueBinding _vb = getValueBinding("char");
0164:                if (_vb != null) {
0165:                    return (String) _vb.getValue(getFacesContext());
0166:                }
0167:                return null;
0168:            }
0169:
0170:            public void setChar(String _char) {
0171:                this ._char = _char;
0172:            }
0173:
0174:            // charOff
0175:            private String charOff = null;
0176:
0177:            public String getCharOff() {
0178:                if (this .charOff != null) {
0179:                    return this .charOff;
0180:                }
0181:                ValueBinding _vb = getValueBinding("charOff");
0182:                if (_vb != null) {
0183:                    return (String) _vb.getValue(getFacesContext());
0184:                }
0185:                return null;
0186:            }
0187:
0188:            public void setCharOff(String charOff) {
0189:                this .charOff = charOff;
0190:            }
0191:
0192:            // colSpan
0193:            private int colSpan = Integer.MIN_VALUE;
0194:            private boolean colSpan_set = false;
0195:
0196:            /**
0197:             * <p>The number of columns spanned by a cell</p>
0198:             */
0199:            public int getColSpan() {
0200:                if (this .colSpan_set) {
0201:                    return this .colSpan;
0202:                }
0203:                ValueBinding _vb = getValueBinding("colSpan");
0204:                if (_vb != null) {
0205:                    Object _result = _vb.getValue(getFacesContext());
0206:                    if (_result == null) {
0207:                        return Integer.MIN_VALUE;
0208:                    } else {
0209:                        return ((Integer) _result).intValue();
0210:                    }
0211:                }
0212:                return Integer.MIN_VALUE;
0213:            }
0214:
0215:            /**
0216:             * <p>The number of columns spanned by a cell</p>
0217:             * @see #getColSpan()
0218:             */
0219:            public void setColSpan(int colSpan) {
0220:                this .colSpan = colSpan;
0221:                this .colSpan_set = true;
0222:            }
0223:
0224:            // extraHtml
0225:            private String extraHtml = null;
0226:
0227:            /**
0228:             * <p>Extra HTML to be appended to the tag output by this renderer.</p>
0229:             */
0230:            public String getExtraHtml() {
0231:                if (this .extraHtml != null) {
0232:                    return this .extraHtml;
0233:                }
0234:                ValueBinding _vb = getValueBinding("extraHtml");
0235:                if (_vb != null) {
0236:                    return (String) _vb.getValue(getFacesContext());
0237:                }
0238:                return null;
0239:            }
0240:
0241:            /**
0242:             * <p>Extra HTML to be appended to the tag output by this renderer.</p>
0243:             * @see #getExtraHtml()
0244:             */
0245:            public void setExtraHtml(String extraHtml) {
0246:                this .extraHtml = extraHtml;
0247:            }
0248:
0249:            // groupHeader
0250:            private boolean groupHeader = false;
0251:            private boolean groupHeader_set = false;
0252:
0253:            /**
0254:             * <p>Flag indicating this component should render a group header. The default renders
0255:             * a column header. This should not be used if selectHeader or sortHeader are used.</p>
0256:             */
0257:            public boolean isGroupHeader() {
0258:                if (this .groupHeader_set) {
0259:                    return this .groupHeader;
0260:                }
0261:                ValueBinding _vb = getValueBinding("groupHeader");
0262:                if (_vb != null) {
0263:                    Object _result = _vb.getValue(getFacesContext());
0264:                    if (_result == null) {
0265:                        return false;
0266:                    } else {
0267:                        return ((Boolean) _result).booleanValue();
0268:                    }
0269:                }
0270:                return false;
0271:            }
0272:
0273:            /**
0274:             * <p>Flag indicating this component should render a group header. The default renders
0275:             * a column header. This should not be used if selectHeader or sortHeader are used.</p>
0276:             * @see #isGroupHeader()
0277:             */
0278:            public void setGroupHeader(boolean groupHeader) {
0279:                this .groupHeader = groupHeader;
0280:                this .groupHeader_set = true;
0281:            }
0282:
0283:            // headers
0284:            private String headers = null;
0285:
0286:            /**
0287:             * <p>Space separated list of header cell ID values</p>
0288:             */
0289:            public String getHeaders() {
0290:                if (this .headers != null) {
0291:                    return this .headers;
0292:                }
0293:                ValueBinding _vb = getValueBinding("headers");
0294:                if (_vb != null) {
0295:                    return (String) _vb.getValue(getFacesContext());
0296:                }
0297:                return null;
0298:            }
0299:
0300:            /**
0301:             * <p>Space separated list of header cell ID values</p>
0302:             * @see #getHeaders()
0303:             */
0304:            public void setHeaders(String headers) {
0305:                this .headers = headers;
0306:            }
0307:
0308:            // height
0309:            private String height = null;
0310:
0311:            /**
0312:             * <p>Set the cell height in pixels (deprecated in HTML 4.0)</p>
0313:             */
0314:            public String getHeight() {
0315:                if (this .height != null) {
0316:                    return this .height;
0317:                }
0318:                ValueBinding _vb = getValueBinding("height");
0319:                if (_vb != null) {
0320:                    return (String) _vb.getValue(getFacesContext());
0321:                }
0322:                return null;
0323:            }
0324:
0325:            /**
0326:             * <p>Set the cell height in pixels (deprecated in HTML 4.0)</p>
0327:             * @see #getHeight()
0328:             */
0329:            public void setHeight(String height) {
0330:                this .height = height;
0331:            }
0332:
0333:            // noWrap
0334:            private boolean noWrap = false;
0335:            private boolean noWrap_set = false;
0336:
0337:            /**
0338:             * <p>Disable word wrapping (deprecated in HTML 4.0)</p>
0339:             */
0340:            public boolean isNoWrap() {
0341:                if (this .noWrap_set) {
0342:                    return this .noWrap;
0343:                }
0344:                ValueBinding _vb = getValueBinding("noWrap");
0345:                if (_vb != null) {
0346:                    Object _result = _vb.getValue(getFacesContext());
0347:                    if (_result == null) {
0348:                        return false;
0349:                    } else {
0350:                        return ((Boolean) _result).booleanValue();
0351:                    }
0352:                }
0353:                return false;
0354:            }
0355:
0356:            /**
0357:             * <p>Disable word wrapping (deprecated in HTML 4.0)</p>
0358:             * @see #isNoWrap()
0359:             */
0360:            public void setNoWrap(boolean noWrap) {
0361:                this .noWrap = noWrap;
0362:                this .noWrap_set = true;
0363:            }
0364:
0365:            // onClick
0366:            private String onClick = null;
0367:
0368:            /**
0369:             * <p>Scripting code executed when a mouse click
0370:             *     occurs over this component.</p>
0371:             */
0372:            public String getOnClick() {
0373:                if (this .onClick != null) {
0374:                    return this .onClick;
0375:                }
0376:                ValueBinding _vb = getValueBinding("onClick");
0377:                if (_vb != null) {
0378:                    return (String) _vb.getValue(getFacesContext());
0379:                }
0380:                return null;
0381:            }
0382:
0383:            /**
0384:             * <p>Scripting code executed when a mouse click
0385:             *     occurs over this component.</p>
0386:             * @see #getOnClick()
0387:             */
0388:            public void setOnClick(String onClick) {
0389:                this .onClick = onClick;
0390:            }
0391:
0392:            // onDblClick
0393:            private String onDblClick = null;
0394:
0395:            /**
0396:             * <p>Scripting code executed when a mouse double click
0397:             *     occurs over this component.</p>
0398:             */
0399:            public String getOnDblClick() {
0400:                if (this .onDblClick != null) {
0401:                    return this .onDblClick;
0402:                }
0403:                ValueBinding _vb = getValueBinding("onDblClick");
0404:                if (_vb != null) {
0405:                    return (String) _vb.getValue(getFacesContext());
0406:                }
0407:                return null;
0408:            }
0409:
0410:            /**
0411:             * <p>Scripting code executed when a mouse double click
0412:             *     occurs over this component.</p>
0413:             * @see #getOnDblClick()
0414:             */
0415:            public void setOnDblClick(String onDblClick) {
0416:                this .onDblClick = onDblClick;
0417:            }
0418:
0419:            // onKeyDown
0420:            private String onKeyDown = null;
0421:
0422:            /**
0423:             * <p>Scripting code executed when the user presses down on a key while the
0424:             *     component has focus.</p>
0425:             */
0426:            public String getOnKeyDown() {
0427:                if (this .onKeyDown != null) {
0428:                    return this .onKeyDown;
0429:                }
0430:                ValueBinding _vb = getValueBinding("onKeyDown");
0431:                if (_vb != null) {
0432:                    return (String) _vb.getValue(getFacesContext());
0433:                }
0434:                return null;
0435:            }
0436:
0437:            /**
0438:             * <p>Scripting code executed when the user presses down on a key while the
0439:             *     component has focus.</p>
0440:             * @see #getOnKeyDown()
0441:             */
0442:            public void setOnKeyDown(String onKeyDown) {
0443:                this .onKeyDown = onKeyDown;
0444:            }
0445:
0446:            // onKeyPress
0447:            private String onKeyPress = null;
0448:
0449:            /**
0450:             * <p>Scripting code executed when the user presses and releases a key while
0451:             *     the component has focus.</p>
0452:             */
0453:            public String getOnKeyPress() {
0454:                if (this .onKeyPress != null) {
0455:                    return this .onKeyPress;
0456:                }
0457:                ValueBinding _vb = getValueBinding("onKeyPress");
0458:                if (_vb != null) {
0459:                    return (String) _vb.getValue(getFacesContext());
0460:                }
0461:                return null;
0462:            }
0463:
0464:            /**
0465:             * <p>Scripting code executed when the user presses and releases a key while
0466:             *     the component has focus.</p>
0467:             * @see #getOnKeyPress()
0468:             */
0469:            public void setOnKeyPress(String onKeyPress) {
0470:                this .onKeyPress = onKeyPress;
0471:            }
0472:
0473:            // onKeyUp
0474:            private String onKeyUp = null;
0475:
0476:            /**
0477:             * <p>Scripting code executed when the user releases a key while the
0478:             *     component has focus.</p>
0479:             */
0480:            public String getOnKeyUp() {
0481:                if (this .onKeyUp != null) {
0482:                    return this .onKeyUp;
0483:                }
0484:                ValueBinding _vb = getValueBinding("onKeyUp");
0485:                if (_vb != null) {
0486:                    return (String) _vb.getValue(getFacesContext());
0487:                }
0488:                return null;
0489:            }
0490:
0491:            /**
0492:             * <p>Scripting code executed when the user releases a key while the
0493:             *     component has focus.</p>
0494:             * @see #getOnKeyUp()
0495:             */
0496:            public void setOnKeyUp(String onKeyUp) {
0497:                this .onKeyUp = onKeyUp;
0498:            }
0499:
0500:            // onMouseDown
0501:            private String onMouseDown = null;
0502:
0503:            /**
0504:             * <p>Scripting code executed when the user presses a mouse button while the
0505:             *     mouse pointer is on the component.</p>
0506:             */
0507:            public String getOnMouseDown() {
0508:                if (this .onMouseDown != null) {
0509:                    return this .onMouseDown;
0510:                }
0511:                ValueBinding _vb = getValueBinding("onMouseDown");
0512:                if (_vb != null) {
0513:                    return (String) _vb.getValue(getFacesContext());
0514:                }
0515:                return null;
0516:            }
0517:
0518:            /**
0519:             * <p>Scripting code executed when the user presses a mouse button while the
0520:             *     mouse pointer is on the component.</p>
0521:             * @see #getOnMouseDown()
0522:             */
0523:            public void setOnMouseDown(String onMouseDown) {
0524:                this .onMouseDown = onMouseDown;
0525:            }
0526:
0527:            // onMouseMove
0528:            private String onMouseMove = null;
0529:
0530:            /**
0531:             * <p>Scripting code executed when the user moves the mouse pointer while
0532:             *     over the component.</p>
0533:             */
0534:            public String getOnMouseMove() {
0535:                if (this .onMouseMove != null) {
0536:                    return this .onMouseMove;
0537:                }
0538:                ValueBinding _vb = getValueBinding("onMouseMove");
0539:                if (_vb != null) {
0540:                    return (String) _vb.getValue(getFacesContext());
0541:                }
0542:                return null;
0543:            }
0544:
0545:            /**
0546:             * <p>Scripting code executed when the user moves the mouse pointer while
0547:             *     over the component.</p>
0548:             * @see #getOnMouseMove()
0549:             */
0550:            public void setOnMouseMove(String onMouseMove) {
0551:                this .onMouseMove = onMouseMove;
0552:            }
0553:
0554:            // onMouseOut
0555:            private String onMouseOut = null;
0556:
0557:            /**
0558:             * <p>Scripting code executed when a mouse out movement
0559:             *     occurs over this component.</p>
0560:             */
0561:            public String getOnMouseOut() {
0562:                if (this .onMouseOut != null) {
0563:                    return this .onMouseOut;
0564:                }
0565:                ValueBinding _vb = getValueBinding("onMouseOut");
0566:                if (_vb != null) {
0567:                    return (String) _vb.getValue(getFacesContext());
0568:                }
0569:                return null;
0570:            }
0571:
0572:            /**
0573:             * <p>Scripting code executed when a mouse out movement
0574:             *     occurs over this component.</p>
0575:             * @see #getOnMouseOut()
0576:             */
0577:            public void setOnMouseOut(String onMouseOut) {
0578:                this .onMouseOut = onMouseOut;
0579:            }
0580:
0581:            // onMouseOver
0582:            private String onMouseOver = null;
0583:
0584:            /**
0585:             * <p>Scripting code executed when the user moves the  mouse pointer into
0586:             *     the boundary of this component.</p>
0587:             */
0588:            public String getOnMouseOver() {
0589:                if (this .onMouseOver != null) {
0590:                    return this .onMouseOver;
0591:                }
0592:                ValueBinding _vb = getValueBinding("onMouseOver");
0593:                if (_vb != null) {
0594:                    return (String) _vb.getValue(getFacesContext());
0595:                }
0596:                return null;
0597:            }
0598:
0599:            /**
0600:             * <p>Scripting code executed when the user moves the  mouse pointer into
0601:             *     the boundary of this component.</p>
0602:             * @see #getOnMouseOver()
0603:             */
0604:            public void setOnMouseOver(String onMouseOver) {
0605:                this .onMouseOver = onMouseOver;
0606:            }
0607:
0608:            // onMouseUp
0609:            private String onMouseUp = null;
0610:
0611:            /**
0612:             * <p>Scripting code executed when the user releases a mouse button while
0613:             *     the mouse pointer is on the component.</p>
0614:             */
0615:            public String getOnMouseUp() {
0616:                if (this .onMouseUp != null) {
0617:                    return this .onMouseUp;
0618:                }
0619:                ValueBinding _vb = getValueBinding("onMouseUp");
0620:                if (_vb != null) {
0621:                    return (String) _vb.getValue(getFacesContext());
0622:                }
0623:                return null;
0624:            }
0625:
0626:            /**
0627:             * <p>Scripting code executed when the user releases a mouse button while
0628:             *     the mouse pointer is on the component.</p>
0629:             * @see #getOnMouseUp()
0630:             */
0631:            public void setOnMouseUp(String onMouseUp) {
0632:                this .onMouseUp = onMouseUp;
0633:            }
0634:
0635:            // rowSpan
0636:            private int rowSpan = Integer.MIN_VALUE;
0637:            private boolean rowSpan_set = false;
0638:
0639:            /**
0640:             * <p>The number of rows spanned by a cell</p>
0641:             */
0642:            public int getRowSpan() {
0643:                if (this .rowSpan_set) {
0644:                    return this .rowSpan;
0645:                }
0646:                ValueBinding _vb = getValueBinding("rowSpan");
0647:                if (_vb != null) {
0648:                    Object _result = _vb.getValue(getFacesContext());
0649:                    if (_result == null) {
0650:                        return Integer.MIN_VALUE;
0651:                    } else {
0652:                        return ((Integer) _result).intValue();
0653:                    }
0654:                }
0655:                return Integer.MIN_VALUE;
0656:            }
0657:
0658:            /**
0659:             * <p>The number of rows spanned by a cell</p>
0660:             * @see #getRowSpan()
0661:             */
0662:            public void setRowSpan(int rowSpan) {
0663:                this .rowSpan = rowSpan;
0664:                this .rowSpan_set = true;
0665:            }
0666:
0667:            // scope
0668:            private String scope = null;
0669:
0670:            /**
0671:             * <p>Indicates that information in a cell is also acting as a header</p>
0672:             */
0673:            public String getScope() {
0674:                if (this .scope != null) {
0675:                    return this .scope;
0676:                }
0677:                ValueBinding _vb = getValueBinding("scope");
0678:                if (_vb != null) {
0679:                    return (String) _vb.getValue(getFacesContext());
0680:                }
0681:                return null;
0682:            }
0683:
0684:            /**
0685:             * <p>Indicates that information in a cell is also acting as a header</p>
0686:             * @see #getScope()
0687:             */
0688:            public void setScope(String scope) {
0689:                this .scope = scope;
0690:            }
0691:
0692:            // selectHeader
0693:            private boolean selectHeader = false;
0694:            private boolean selectHeader_set = false;
0695:
0696:            /**
0697:             * <p>Flag indicating this component should render a selection column header. The 
0698:             * default renders a column header. This should not be used if groupHeader or 
0699:             * sortHeader are used.</p>
0700:             */
0701:            public boolean isSelectHeader() {
0702:                if (this .selectHeader_set) {
0703:                    return this .selectHeader;
0704:                }
0705:                ValueBinding _vb = getValueBinding("selectHeader");
0706:                if (_vb != null) {
0707:                    Object _result = _vb.getValue(getFacesContext());
0708:                    if (_result == null) {
0709:                        return false;
0710:                    } else {
0711:                        return ((Boolean) _result).booleanValue();
0712:                    }
0713:                }
0714:                return false;
0715:            }
0716:
0717:            /**
0718:             * <p>Flag indicating this component should render a selection column header. The 
0719:             * default renders a column header. This should not be used if groupHeader or 
0720:             * sortHeader are used.</p>
0721:             * @see #isSelectHeader()
0722:             */
0723:            public void setSelectHeader(boolean selectHeader) {
0724:                this .selectHeader = selectHeader;
0725:                this .selectHeader_set = true;
0726:            }
0727:
0728:            // sortHeader
0729:            private boolean sortHeader = false;
0730:            private boolean sortHeader_set = false;
0731:
0732:            /**
0733:             * <p>Flag indicating this component should render a sortable column header. The 
0734:             * default renders a column header. This should not be used if groupHeader or 
0735:             * selectHeader are used.</p>
0736:             */
0737:            public boolean isSortHeader() {
0738:                if (this .sortHeader_set) {
0739:                    return this .sortHeader;
0740:                }
0741:                ValueBinding _vb = getValueBinding("sortHeader");
0742:                if (_vb != null) {
0743:                    Object _result = _vb.getValue(getFacesContext());
0744:                    if (_result == null) {
0745:                        return false;
0746:                    } else {
0747:                        return ((Boolean) _result).booleanValue();
0748:                    }
0749:                }
0750:                return false;
0751:            }
0752:
0753:            /**
0754:             * <p>Flag indicating this component should render a sortable column header. The 
0755:             * default renders a column header. This should not be used if groupHeader or 
0756:             * selectHeader are used.</p>
0757:             * @see #isSortHeader()
0758:             */
0759:            public void setSortHeader(boolean sortHeader) {
0760:                this .sortHeader = sortHeader;
0761:                this .sortHeader_set = true;
0762:            }
0763:
0764:            // style
0765:            private String style = null;
0766:
0767:            /**
0768:             * <p>CSS style(s) to be applied when this component is rendered.</p>
0769:             */
0770:            public String getStyle() {
0771:                if (this .style != null) {
0772:                    return this .style;
0773:                }
0774:                ValueBinding _vb = getValueBinding("style");
0775:                if (_vb != null) {
0776:                    return (String) _vb.getValue(getFacesContext());
0777:                }
0778:                return null;
0779:            }
0780:
0781:            /**
0782:             * <p>CSS style(s) to be applied when this component is rendered.</p>
0783:             * @see #getStyle()
0784:             */
0785:            public void setStyle(String style) {
0786:                this .style = style;
0787:            }
0788:
0789:            // styleClass
0790:            private String styleClass = null;
0791:
0792:            /**
0793:             * <p>CSS style class(es) to be applied when this component is rendered.</p>
0794:             */
0795:            public String getStyleClass() {
0796:                if (this .styleClass != null) {
0797:                    return this .styleClass;
0798:                }
0799:                ValueBinding _vb = getValueBinding("styleClass");
0800:                if (_vb != null) {
0801:                    return (String) _vb.getValue(getFacesContext());
0802:                }
0803:                return null;
0804:            }
0805:
0806:            /**
0807:             * <p>CSS style class(es) to be applied when this component is rendered.</p>
0808:             * @see #getStyleClass()
0809:             */
0810:            public void setStyleClass(String styleClass) {
0811:                this .styleClass = styleClass;
0812:            }
0813:
0814:            // toolTip
0815:            private String toolTip = null;
0816:
0817:            /**
0818:             * <p>Display the text as a tooltip for this component</p>
0819:             */
0820:            public String getToolTip() {
0821:                if (this .toolTip != null) {
0822:                    return this .toolTip;
0823:                }
0824:                ValueBinding _vb = getValueBinding("toolTip");
0825:                if (_vb != null) {
0826:                    return (String) _vb.getValue(getFacesContext());
0827:                }
0828:                return null;
0829:            }
0830:
0831:            /**
0832:             * <p>Display the text as a tooltip for this component</p>
0833:             * @see #getToolTip()
0834:             */
0835:            public void setToolTip(String toolTip) {
0836:                this .toolTip = toolTip;
0837:            }
0838:
0839:            // valign
0840:            private String valign = null;
0841:
0842:            /**
0843:             * <p>Vertical alignment (top, middle, bottom) for the content of each cell in the column</p>
0844:             */
0845:            public String getValign() {
0846:                if (this .valign != null) {
0847:                    return this .valign;
0848:                }
0849:                ValueBinding _vb = getValueBinding("valign");
0850:                if (_vb != null) {
0851:                    return (String) _vb.getValue(getFacesContext());
0852:                }
0853:                return null;
0854:            }
0855:
0856:            /**
0857:             * <p>Vertical alignment (top, middle, bottom) for the content of each cell in the column</p>
0858:             * @see #getValign()
0859:             */
0860:            public void setValign(String valign) {
0861:                this .valign = valign;
0862:            }
0863:
0864:            // visible
0865:            private boolean visible = false;
0866:            private boolean visible_set = false;
0867:
0868:            /**
0869:             * <p>Use the visible attribute to indicate whether the component should be
0870:             *     viewable by the user in the rendered HTML page. If set to false, the
0871:             *     HTML code for the component is present in the page, but the component
0872:             *     is hidden with style attributes. By default, visible is set to true, so
0873:             *     HTML for the component HTML is included and visible to the user. If the
0874:             *     component is not visible, it can still be processed on subsequent form
0875:             *     submissions because the HTML is present.</p>
0876:             */
0877:            public boolean isVisible() {
0878:                if (this .visible_set) {
0879:                    return this .visible;
0880:                }
0881:                ValueBinding _vb = getValueBinding("visible");
0882:                if (_vb != null) {
0883:                    Object _result = _vb.getValue(getFacesContext());
0884:                    if (_result == null) {
0885:                        return false;
0886:                    } else {
0887:                        return ((Boolean) _result).booleanValue();
0888:                    }
0889:                }
0890:                return true;
0891:            }
0892:
0893:            /**
0894:             * <p>Use the visible attribute to indicate whether the component should be
0895:             *     viewable by the user in the rendered HTML page. If set to false, the
0896:             *     HTML code for the component is present in the page, but the component
0897:             *     is hidden with style attributes. By default, visible is set to true, so
0898:             *     HTML for the component HTML is included and visible to the user. If the
0899:             *     component is not visible, it can still be processed on subsequent form
0900:             *     submissions because the HTML is present.</p>
0901:             * @see #isVisible()
0902:             */
0903:            public void setVisible(boolean visible) {
0904:                this .visible = visible;
0905:                this .visible_set = true;
0906:            }
0907:
0908:            // width
0909:            private String width = null;
0910:
0911:            /**
0912:             * <p>Set the width of the column in either pixels or percent(deprecated in HTML 4.0)</p>
0913:             */
0914:            public String getWidth() {
0915:                if (this .width != null) {
0916:                    return this .width;
0917:                }
0918:                ValueBinding _vb = getValueBinding("width");
0919:                if (_vb != null) {
0920:                    return (String) _vb.getValue(getFacesContext());
0921:                }
0922:                return null;
0923:            }
0924:
0925:            /**
0926:             * <p>Set the width of the column in either pixels or percent(deprecated in HTML 4.0)</p>
0927:             * @see #getWidth()
0928:             */
0929:            public void setWidth(String width) {
0930:                this .width = width;
0931:            }
0932:
0933:            /**
0934:             * <p>Restore the state of this component.</p>
0935:             */
0936:            public void restoreState(FacesContext _context, Object _state) {
0937:                Object _values[] = (Object[]) _state;
0938:                super .restoreState(_context, _values[0]);
0939:                this .abbr = (String) _values[1];
0940:                this .align = (String) _values[2];
0941:                this .axis = (String) _values[3];
0942:                this .bgColor = (String) _values[4];
0943:                this ._char = (String) _values[5];
0944:                this .charOff = (String) _values[6];
0945:                this .colSpan = ((Integer) _values[7]).intValue();
0946:                this .colSpan_set = ((Boolean) _values[8]).booleanValue();
0947:                this .extraHtml = (String) _values[9];
0948:                this .groupHeader = ((Boolean) _values[10]).booleanValue();
0949:                this .groupHeader_set = ((Boolean) _values[11]).booleanValue();
0950:                this .headers = (String) _values[12];
0951:                this .height = (String) _values[13];
0952:                this .noWrap = ((Boolean) _values[14]).booleanValue();
0953:                this .noWrap_set = ((Boolean) _values[15]).booleanValue();
0954:                this .onClick = (String) _values[16];
0955:                this .onDblClick = (String) _values[17];
0956:                this .onKeyDown = (String) _values[18];
0957:                this .onKeyPress = (String) _values[19];
0958:                this .onKeyUp = (String) _values[20];
0959:                this .onMouseDown = (String) _values[21];
0960:                this .onMouseMove = (String) _values[22];
0961:                this .onMouseOut = (String) _values[23];
0962:                this .onMouseOver = (String) _values[24];
0963:                this .onMouseUp = (String) _values[25];
0964:                this .rowSpan = ((Integer) _values[26]).intValue();
0965:                this .rowSpan_set = ((Boolean) _values[27]).booleanValue();
0966:                this .scope = (String) _values[28];
0967:                this .selectHeader = ((Boolean) _values[29]).booleanValue();
0968:                this .selectHeader_set = ((Boolean) _values[30]).booleanValue();
0969:                this .sortHeader = ((Boolean) _values[31]).booleanValue();
0970:                this .sortHeader_set = ((Boolean) _values[32]).booleanValue();
0971:                this .style = (String) _values[33];
0972:                this .styleClass = (String) _values[34];
0973:                this .toolTip = (String) _values[35];
0974:                this .valign = (String) _values[36];
0975:                this .visible = ((Boolean) _values[37]).booleanValue();
0976:                this .visible_set = ((Boolean) _values[38]).booleanValue();
0977:                this .width = (String) _values[39];
0978:            }
0979:
0980:            /**
0981:             * <p>Save the state of this component.</p>
0982:             */
0983:            public Object saveState(FacesContext _context) {
0984:                Object _values[] = new Object[40];
0985:                _values[0] = super .saveState(_context);
0986:                _values[1] = this .abbr;
0987:                _values[2] = this .align;
0988:                _values[3] = this .axis;
0989:                _values[4] = this .bgColor;
0990:                _values[5] = this ._char;
0991:                _values[6] = this .charOff;
0992:                _values[7] = new Integer(this .colSpan);
0993:                _values[8] = this .colSpan_set ? Boolean.TRUE : Boolean.FALSE;
0994:                _values[9] = this .extraHtml;
0995:                _values[10] = this .groupHeader ? Boolean.TRUE : Boolean.FALSE;
0996:                _values[11] = this .groupHeader_set ? Boolean.TRUE
0997:                        : Boolean.FALSE;
0998:                _values[12] = this .headers;
0999:                _values[13] = this .height;
1000:                _values[14] = this .noWrap ? Boolean.TRUE : Boolean.FALSE;
1001:                _values[15] = this .noWrap_set ? Boolean.TRUE : Boolean.FALSE;
1002:                _values[16] = this .onClick;
1003:                _values[17] = this .onDblClick;
1004:                _values[18] = this .onKeyDown;
1005:                _values[19] = this .onKeyPress;
1006:                _values[20] = this .onKeyUp;
1007:                _values[21] = this .onMouseDown;
1008:                _values[22] = this .onMouseMove;
1009:                _values[23] = this .onMouseOut;
1010:                _values[24] = this .onMouseOver;
1011:                _values[25] = this .onMouseUp;
1012:                _values[26] = new Integer(this .rowSpan);
1013:                _values[27] = this .rowSpan_set ? Boolean.TRUE : Boolean.FALSE;
1014:                _values[28] = this .scope;
1015:                _values[29] = this .selectHeader ? Boolean.TRUE : Boolean.FALSE;
1016:                _values[30] = this .selectHeader_set ? Boolean.TRUE
1017:                        : Boolean.FALSE;
1018:                _values[31] = this .sortHeader ? Boolean.TRUE : Boolean.FALSE;
1019:                _values[32] = this .sortHeader_set ? Boolean.TRUE
1020:                        : Boolean.FALSE;
1021:                _values[33] = this .style;
1022:                _values[34] = this .styleClass;
1023:                _values[35] = this .toolTip;
1024:                _values[36] = this .valign;
1025:                _values[37] = this .visible ? Boolean.TRUE : Boolean.FALSE;
1026:                _values[38] = this .visible_set ? Boolean.TRUE : Boolean.FALSE;
1027:                _values[39] = this.width;
1028:                return _values;
1029:            }
1030:
1031:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.