Source Code Cross Referenced for TablePanelsBase.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) 


001:        /*
002:         * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003:         *
004:         * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005:         *
006:         * The contents of this file are subject to the terms of either the GNU
007:         * General Public License Version 2 only ("GPL") or the Common
008:         * Development and Distribution License("CDDL") (collectively, the
009:         * "License"). You may not use this file except in compliance with the
010:         * License. You can obtain a copy of the License at
011:         * http://www.netbeans.org/cddl-gplv2.html
012:         * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013:         * specific language governing permissions and limitations under the
014:         * License.  When distributing the software, include this License Header
015:         * Notice in each file and include the License file at
016:         * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
017:         * particular file as subject to the "Classpath" exception as provided
018:         * by Sun in the GPL Version 2 section of the License file that
019:         * accompanied this code. If applicable, add the following below the
020:         * License Header, with the fields enclosed by brackets [] replaced by
021:         * your own identifying information:
022:         * "Portions Copyrighted [year] [name of copyright owner]"
023:         *
024:         * Contributor(s):
025:         *
026:         * The Original Software is NetBeans. The Initial Developer of the Original
027:         * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
028:         * Microsystems, Inc. All Rights Reserved.
029:         *
030:         * If you wish your version of this file to be governed by only the CDDL
031:         * or only the GPL Version 2, indicate your decision by adding
032:         * "[Contributor] elects to include this software in this distribution
033:         * under the [CDDL or GPL Version 2] license." If you do not indicate a
034:         * single choice of license, a recipient has the option to distribute
035:         * your version of this file under either the CDDL, the GPL Version 2 or
036:         * to extend the choice of license to its licensees as provided above.
037:         * However, if you add GPL Version 2 code and therefore, elected the GPL
038:         * Version 2 license, then the option applies only if the new code is
039:         * made subject to such option by the copyright holder.
040:         */
041:        package com.sun.rave.web.ui.component;
042:
043:        import java.io.IOException;
044:        import javax.faces.component.UIComponent;
045:        import javax.faces.context.FacesContext;
046:        import javax.faces.el.MethodBinding;
047:        import javax.faces.el.ValueBinding;
048:
049:        /**
050:         * Render embedded panels of a table.
051:         * <p>Auto-generated component class.
052:         * Do <strong>NOT</strong> modify; all changes
053:         * <strong>will</strong> be lost!</p>
054:         */
055:
056:        public abstract class TablePanelsBase extends
057:                javax.faces.component.UIComponentBase {
058:
059:            /**
060:             * <p>Construct a new <code>TablePanelsBase</code>.</p>
061:             */
062:            public TablePanelsBase() {
063:                super ();
064:                setRendererType("com.sun.rave.web.ui.TablePanels");
065:            }
066:
067:            /**
068:             * <p>Return the identifier of the component family to which this
069:             * component belongs.  This identifier, in conjunction with the value
070:             * of the <code>rendererType</code> property, may be used to select
071:             * the appropriate {@link Renderer} for this component instance.</p>
072:             */
073:            public String getFamily() {
074:                return "com.sun.rave.web.ui.TablePanels";
075:            }
076:
077:            // abbr
078:            private String abbr = null;
079:
080:            /**
081:             * <p>An abbreviated version of the cell's content</p>
082:             */
083:            public String getAbbr() {
084:                if (this .abbr != null) {
085:                    return this .abbr;
086:                }
087:                ValueBinding _vb = getValueBinding("abbr");
088:                if (_vb != null) {
089:                    return (String) _vb.getValue(getFacesContext());
090:                }
091:                return null;
092:            }
093:
094:            /**
095:             * <p>An abbreviated version of the cell's content</p>
096:             * @see #getAbbr()
097:             */
098:            public void setAbbr(String abbr) {
099:                this .abbr = abbr;
100:            }
101:
102:            // align
103:            private String align = null;
104:
105:            /**
106:             * <p>Sets the horizontal alignment (left, right, justify, center) for the cell contents</p>
107:             */
108:            public String getAlign() {
109:                if (this .align != null) {
110:                    return this .align;
111:                }
112:                ValueBinding _vb = getValueBinding("align");
113:                if (_vb != null) {
114:                    return (String) _vb.getValue(getFacesContext());
115:                }
116:                return null;
117:            }
118:
119:            /**
120:             * <p>Sets the horizontal alignment (left, right, justify, center) for the cell contents</p>
121:             * @see #getAlign()
122:             */
123:            public void setAlign(String align) {
124:                this .align = align;
125:            }
126:
127:            // axis
128:            private String axis = null;
129:
130:            /**
131:             * <p>Provides a method for categorizing cells</p>
132:             */
133:            public String getAxis() {
134:                if (this .axis != null) {
135:                    return this .axis;
136:                }
137:                ValueBinding _vb = getValueBinding("axis");
138:                if (_vb != null) {
139:                    return (String) _vb.getValue(getFacesContext());
140:                }
141:                return null;
142:            }
143:
144:            /**
145:             * <p>Provides a method for categorizing cells</p>
146:             * @see #getAxis()
147:             */
148:            public void setAxis(String axis) {
149:                this .axis = axis;
150:            }
151:
152:            // bgColor
153:            private String bgColor = null;
154:
155:            public String getBgColor() {
156:                if (this .bgColor != null) {
157:                    return this .bgColor;
158:                }
159:                ValueBinding _vb = getValueBinding("bgColor");
160:                if (_vb != null) {
161:                    return (String) _vb.getValue(getFacesContext());
162:                }
163:                return null;
164:            }
165:
166:            public void setBgColor(String bgColor) {
167:                this .bgColor = bgColor;
168:            }
169:
170:            // char
171:            private String _char = null;
172:
173:            public String getChar() {
174:                if (this ._char != null) {
175:                    return this ._char;
176:                }
177:                ValueBinding _vb = getValueBinding("char");
178:                if (_vb != null) {
179:                    return (String) _vb.getValue(getFacesContext());
180:                }
181:                return null;
182:            }
183:
184:            public void setChar(String _char) {
185:                this ._char = _char;
186:            }
187:
188:            // charOff
189:            private String charOff = null;
190:
191:            public String getCharOff() {
192:                if (this .charOff != null) {
193:                    return this .charOff;
194:                }
195:                ValueBinding _vb = getValueBinding("charOff");
196:                if (_vb != null) {
197:                    return (String) _vb.getValue(getFacesContext());
198:                }
199:                return null;
200:            }
201:
202:            public void setCharOff(String charOff) {
203:                this .charOff = charOff;
204:            }
205:
206:            // colSpan
207:            private int colSpan = Integer.MIN_VALUE;
208:            private boolean colSpan_set = false;
209:
210:            /**
211:             * <p>The number of columns spanned by a cell</p>
212:             */
213:            public int getColSpan() {
214:                if (this .colSpan_set) {
215:                    return this .colSpan;
216:                }
217:                ValueBinding _vb = getValueBinding("colSpan");
218:                if (_vb != null) {
219:                    Object _result = _vb.getValue(getFacesContext());
220:                    if (_result == null) {
221:                        return Integer.MIN_VALUE;
222:                    } else {
223:                        return ((Integer) _result).intValue();
224:                    }
225:                }
226:                return Integer.MIN_VALUE;
227:            }
228:
229:            /**
230:             * <p>The number of columns spanned by a cell</p>
231:             * @see #getColSpan()
232:             */
233:            public void setColSpan(int colSpan) {
234:                this .colSpan = colSpan;
235:                this .colSpan_set = true;
236:            }
237:
238:            // extraHtml
239:            private String extraHtml = null;
240:
241:            /**
242:             * <p>Extra HTML to be appended to the tag output by this renderer.</p>
243:             */
244:            public String getExtraHtml() {
245:                if (this .extraHtml != null) {
246:                    return this .extraHtml;
247:                }
248:                ValueBinding _vb = getValueBinding("extraHtml");
249:                if (_vb != null) {
250:                    return (String) _vb.getValue(getFacesContext());
251:                }
252:                return null;
253:            }
254:
255:            /**
256:             * <p>Extra HTML to be appended to the tag output by this renderer.</p>
257:             * @see #getExtraHtml()
258:             */
259:            public void setExtraHtml(String extraHtml) {
260:                this .extraHtml = extraHtml;
261:            }
262:
263:            // filterPanel
264:            private boolean filterPanel = false;
265:            private boolean filterPanel_set = false;
266:
267:            /**
268:             * <p>Flag indicating this component should also render a filter panel, in addition to
269:             * the sort and preferences panels. The default renders a sort panel.</p>
270:             */
271:            public boolean isFilterPanel() {
272:                if (this .filterPanel_set) {
273:                    return this .filterPanel;
274:                }
275:                ValueBinding _vb = getValueBinding("filterPanel");
276:                if (_vb != null) {
277:                    Object _result = _vb.getValue(getFacesContext());
278:                    if (_result == null) {
279:                        return false;
280:                    } else {
281:                        return ((Boolean) _result).booleanValue();
282:                    }
283:                }
284:                return false;
285:            }
286:
287:            /**
288:             * <p>Flag indicating this component should also render a filter panel, in addition to
289:             * the sort and preferences panels. The default renders a sort panel.</p>
290:             * @see #isFilterPanel()
291:             */
292:            public void setFilterPanel(boolean filterPanel) {
293:                this .filterPanel = filterPanel;
294:                this .filterPanel_set = true;
295:            }
296:
297:            // headers
298:            private String headers = null;
299:
300:            /**
301:             * <p>Space separated list of header cell ID values</p>
302:             */
303:            public String getHeaders() {
304:                if (this .headers != null) {
305:                    return this .headers;
306:                }
307:                ValueBinding _vb = getValueBinding("headers");
308:                if (_vb != null) {
309:                    return (String) _vb.getValue(getFacesContext());
310:                }
311:                return null;
312:            }
313:
314:            /**
315:             * <p>Space separated list of header cell ID values</p>
316:             * @see #getHeaders()
317:             */
318:            public void setHeaders(String headers) {
319:                this .headers = headers;
320:            }
321:
322:            // height
323:            private String height = null;
324:
325:            /**
326:             * <p>Set the cell height in pixels (deprecated in HTML 4.0)</p>
327:             */
328:            public String getHeight() {
329:                if (this .height != null) {
330:                    return this .height;
331:                }
332:                ValueBinding _vb = getValueBinding("height");
333:                if (_vb != null) {
334:                    return (String) _vb.getValue(getFacesContext());
335:                }
336:                return null;
337:            }
338:
339:            /**
340:             * <p>Set the cell height in pixels (deprecated in HTML 4.0)</p>
341:             * @see #getHeight()
342:             */
343:            public void setHeight(String height) {
344:                this .height = height;
345:            }
346:
347:            // noWrap
348:            private boolean noWrap = false;
349:            private boolean noWrap_set = false;
350:
351:            /**
352:             * <p>Disable word wrapping (deprecated in HTML 4.0)</p>
353:             */
354:            public boolean isNoWrap() {
355:                if (this .noWrap_set) {
356:                    return this .noWrap;
357:                }
358:                ValueBinding _vb = getValueBinding("noWrap");
359:                if (_vb != null) {
360:                    Object _result = _vb.getValue(getFacesContext());
361:                    if (_result == null) {
362:                        return false;
363:                    } else {
364:                        return ((Boolean) _result).booleanValue();
365:                    }
366:                }
367:                return false;
368:            }
369:
370:            /**
371:             * <p>Disable word wrapping (deprecated in HTML 4.0)</p>
372:             * @see #isNoWrap()
373:             */
374:            public void setNoWrap(boolean noWrap) {
375:                this .noWrap = noWrap;
376:                this .noWrap_set = true;
377:            }
378:
379:            // onClick
380:            private String onClick = null;
381:
382:            /**
383:             * <p>Scripting code executed when a mouse click
384:             *     occurs over this component.</p>
385:             */
386:            public String getOnClick() {
387:                if (this .onClick != null) {
388:                    return this .onClick;
389:                }
390:                ValueBinding _vb = getValueBinding("onClick");
391:                if (_vb != null) {
392:                    return (String) _vb.getValue(getFacesContext());
393:                }
394:                return null;
395:            }
396:
397:            /**
398:             * <p>Scripting code executed when a mouse click
399:             *     occurs over this component.</p>
400:             * @see #getOnClick()
401:             */
402:            public void setOnClick(String onClick) {
403:                this .onClick = onClick;
404:            }
405:
406:            // onDblClick
407:            private String onDblClick = null;
408:
409:            /**
410:             * <p>Scripting code executed when a mouse double click
411:             *     occurs over this component.</p>
412:             */
413:            public String getOnDblClick() {
414:                if (this .onDblClick != null) {
415:                    return this .onDblClick;
416:                }
417:                ValueBinding _vb = getValueBinding("onDblClick");
418:                if (_vb != null) {
419:                    return (String) _vb.getValue(getFacesContext());
420:                }
421:                return null;
422:            }
423:
424:            /**
425:             * <p>Scripting code executed when a mouse double click
426:             *     occurs over this component.</p>
427:             * @see #getOnDblClick()
428:             */
429:            public void setOnDblClick(String onDblClick) {
430:                this .onDblClick = onDblClick;
431:            }
432:
433:            // onKeyDown
434:            private String onKeyDown = null;
435:
436:            /**
437:             * <p>Scripting code executed when the user presses down on a key while the
438:             *     component has focus.</p>
439:             */
440:            public String getOnKeyDown() {
441:                if (this .onKeyDown != null) {
442:                    return this .onKeyDown;
443:                }
444:                ValueBinding _vb = getValueBinding("onKeyDown");
445:                if (_vb != null) {
446:                    return (String) _vb.getValue(getFacesContext());
447:                }
448:                return null;
449:            }
450:
451:            /**
452:             * <p>Scripting code executed when the user presses down on a key while the
453:             *     component has focus.</p>
454:             * @see #getOnKeyDown()
455:             */
456:            public void setOnKeyDown(String onKeyDown) {
457:                this .onKeyDown = onKeyDown;
458:            }
459:
460:            // onKeyPress
461:            private String onKeyPress = null;
462:
463:            /**
464:             * <p>Scripting code executed when the user presses and releases a key while
465:             *     the component has focus.</p>
466:             */
467:            public String getOnKeyPress() {
468:                if (this .onKeyPress != null) {
469:                    return this .onKeyPress;
470:                }
471:                ValueBinding _vb = getValueBinding("onKeyPress");
472:                if (_vb != null) {
473:                    return (String) _vb.getValue(getFacesContext());
474:                }
475:                return null;
476:            }
477:
478:            /**
479:             * <p>Scripting code executed when the user presses and releases a key while
480:             *     the component has focus.</p>
481:             * @see #getOnKeyPress()
482:             */
483:            public void setOnKeyPress(String onKeyPress) {
484:                this .onKeyPress = onKeyPress;
485:            }
486:
487:            // onKeyUp
488:            private String onKeyUp = null;
489:
490:            /**
491:             * <p>Scripting code executed when the user releases a key while the
492:             *     component has focus.</p>
493:             */
494:            public String getOnKeyUp() {
495:                if (this .onKeyUp != null) {
496:                    return this .onKeyUp;
497:                }
498:                ValueBinding _vb = getValueBinding("onKeyUp");
499:                if (_vb != null) {
500:                    return (String) _vb.getValue(getFacesContext());
501:                }
502:                return null;
503:            }
504:
505:            /**
506:             * <p>Scripting code executed when the user releases a key while the
507:             *     component has focus.</p>
508:             * @see #getOnKeyUp()
509:             */
510:            public void setOnKeyUp(String onKeyUp) {
511:                this .onKeyUp = onKeyUp;
512:            }
513:
514:            // onMouseDown
515:            private String onMouseDown = null;
516:
517:            /**
518:             * <p>Scripting code executed when the user presses a mouse button while the
519:             *     mouse pointer is on the component.</p>
520:             */
521:            public String getOnMouseDown() {
522:                if (this .onMouseDown != null) {
523:                    return this .onMouseDown;
524:                }
525:                ValueBinding _vb = getValueBinding("onMouseDown");
526:                if (_vb != null) {
527:                    return (String) _vb.getValue(getFacesContext());
528:                }
529:                return null;
530:            }
531:
532:            /**
533:             * <p>Scripting code executed when the user presses a mouse button while the
534:             *     mouse pointer is on the component.</p>
535:             * @see #getOnMouseDown()
536:             */
537:            public void setOnMouseDown(String onMouseDown) {
538:                this .onMouseDown = onMouseDown;
539:            }
540:
541:            // onMouseMove
542:            private String onMouseMove = null;
543:
544:            /**
545:             * <p>Scripting code executed when the user moves the mouse pointer while
546:             *     over the component.</p>
547:             */
548:            public String getOnMouseMove() {
549:                if (this .onMouseMove != null) {
550:                    return this .onMouseMove;
551:                }
552:                ValueBinding _vb = getValueBinding("onMouseMove");
553:                if (_vb != null) {
554:                    return (String) _vb.getValue(getFacesContext());
555:                }
556:                return null;
557:            }
558:
559:            /**
560:             * <p>Scripting code executed when the user moves the mouse pointer while
561:             *     over the component.</p>
562:             * @see #getOnMouseMove()
563:             */
564:            public void setOnMouseMove(String onMouseMove) {
565:                this .onMouseMove = onMouseMove;
566:            }
567:
568:            // onMouseOut
569:            private String onMouseOut = null;
570:
571:            /**
572:             * <p>Scripting code executed when a mouse out movement
573:             *     occurs over this component.</p>
574:             */
575:            public String getOnMouseOut() {
576:                if (this .onMouseOut != null) {
577:                    return this .onMouseOut;
578:                }
579:                ValueBinding _vb = getValueBinding("onMouseOut");
580:                if (_vb != null) {
581:                    return (String) _vb.getValue(getFacesContext());
582:                }
583:                return null;
584:            }
585:
586:            /**
587:             * <p>Scripting code executed when a mouse out movement
588:             *     occurs over this component.</p>
589:             * @see #getOnMouseOut()
590:             */
591:            public void setOnMouseOut(String onMouseOut) {
592:                this .onMouseOut = onMouseOut;
593:            }
594:
595:            // onMouseOver
596:            private String onMouseOver = null;
597:
598:            /**
599:             * <p>Scripting code executed when the user moves the  mouse pointer into
600:             *     the boundary of this component.</p>
601:             */
602:            public String getOnMouseOver() {
603:                if (this .onMouseOver != null) {
604:                    return this .onMouseOver;
605:                }
606:                ValueBinding _vb = getValueBinding("onMouseOver");
607:                if (_vb != null) {
608:                    return (String) _vb.getValue(getFacesContext());
609:                }
610:                return null;
611:            }
612:
613:            /**
614:             * <p>Scripting code executed when the user moves the  mouse pointer into
615:             *     the boundary of this component.</p>
616:             * @see #getOnMouseOver()
617:             */
618:            public void setOnMouseOver(String onMouseOver) {
619:                this .onMouseOver = onMouseOver;
620:            }
621:
622:            // onMouseUp
623:            private String onMouseUp = null;
624:
625:            /**
626:             * <p>Scripting code executed when the user releases a mouse button while
627:             *     the mouse pointer is on the component.</p>
628:             */
629:            public String getOnMouseUp() {
630:                if (this .onMouseUp != null) {
631:                    return this .onMouseUp;
632:                }
633:                ValueBinding _vb = getValueBinding("onMouseUp");
634:                if (_vb != null) {
635:                    return (String) _vb.getValue(getFacesContext());
636:                }
637:                return null;
638:            }
639:
640:            /**
641:             * <p>Scripting code executed when the user releases a mouse button while
642:             *     the mouse pointer is on the component.</p>
643:             * @see #getOnMouseUp()
644:             */
645:            public void setOnMouseUp(String onMouseUp) {
646:                this .onMouseUp = onMouseUp;
647:            }
648:
649:            // preferencesPanel
650:            private boolean preferencesPanel = false;
651:            private boolean preferencesPanel_set = false;
652:
653:            /**
654:             * <p>Flag indicating this component should also render a preferences panel, in 
655:             * addition to the sort and filter panels. The default renders a sort panel.</p>
656:             */
657:            public boolean isPreferencesPanel() {
658:                if (this .preferencesPanel_set) {
659:                    return this .preferencesPanel;
660:                }
661:                ValueBinding _vb = getValueBinding("preferencesPanel");
662:                if (_vb != null) {
663:                    Object _result = _vb.getValue(getFacesContext());
664:                    if (_result == null) {
665:                        return false;
666:                    } else {
667:                        return ((Boolean) _result).booleanValue();
668:                    }
669:                }
670:                return false;
671:            }
672:
673:            /**
674:             * <p>Flag indicating this component should also render a preferences panel, in 
675:             * addition to the sort and filter panels. The default renders a sort panel.</p>
676:             * @see #isPreferencesPanel()
677:             */
678:            public void setPreferencesPanel(boolean preferencesPanel) {
679:                this .preferencesPanel = preferencesPanel;
680:                this .preferencesPanel_set = true;
681:            }
682:
683:            // rowSpan
684:            private int rowSpan = Integer.MIN_VALUE;
685:            private boolean rowSpan_set = false;
686:
687:            /**
688:             * <p>The number of rows spanned by a cell</p>
689:             */
690:            public int getRowSpan() {
691:                if (this .rowSpan_set) {
692:                    return this .rowSpan;
693:                }
694:                ValueBinding _vb = getValueBinding("rowSpan");
695:                if (_vb != null) {
696:                    Object _result = _vb.getValue(getFacesContext());
697:                    if (_result == null) {
698:                        return Integer.MIN_VALUE;
699:                    } else {
700:                        return ((Integer) _result).intValue();
701:                    }
702:                }
703:                return Integer.MIN_VALUE;
704:            }
705:
706:            /**
707:             * <p>The number of rows spanned by a cell</p>
708:             * @see #getRowSpan()
709:             */
710:            public void setRowSpan(int rowSpan) {
711:                this .rowSpan = rowSpan;
712:                this .rowSpan_set = true;
713:            }
714:
715:            // scope
716:            private String scope = null;
717:
718:            /**
719:             * <p>Indicates that information in a cell is also acting as a header</p>
720:             */
721:            public String getScope() {
722:                if (this .scope != null) {
723:                    return this .scope;
724:                }
725:                ValueBinding _vb = getValueBinding("scope");
726:                if (_vb != null) {
727:                    return (String) _vb.getValue(getFacesContext());
728:                }
729:                return null;
730:            }
731:
732:            /**
733:             * <p>Indicates that information in a cell is also acting as a header</p>
734:             * @see #getScope()
735:             */
736:            public void setScope(String scope) {
737:                this .scope = scope;
738:            }
739:
740:            // style
741:            private String style = null;
742:
743:            /**
744:             * <p>CSS style(s) to be applied when this component is rendered.</p>
745:             */
746:            public String getStyle() {
747:                if (this .style != null) {
748:                    return this .style;
749:                }
750:                ValueBinding _vb = getValueBinding("style");
751:                if (_vb != null) {
752:                    return (String) _vb.getValue(getFacesContext());
753:                }
754:                return null;
755:            }
756:
757:            /**
758:             * <p>CSS style(s) to be applied when this component is rendered.</p>
759:             * @see #getStyle()
760:             */
761:            public void setStyle(String style) {
762:                this .style = style;
763:            }
764:
765:            // styleClass
766:            private String styleClass = null;
767:
768:            /**
769:             * <p>CSS style class(es) to be applied when this component is rendered.</p>
770:             */
771:            public String getStyleClass() {
772:                if (this .styleClass != null) {
773:                    return this .styleClass;
774:                }
775:                ValueBinding _vb = getValueBinding("styleClass");
776:                if (_vb != null) {
777:                    return (String) _vb.getValue(getFacesContext());
778:                }
779:                return null;
780:            }
781:
782:            /**
783:             * <p>CSS style class(es) to be applied when this component is rendered.</p>
784:             * @see #getStyleClass()
785:             */
786:            public void setStyleClass(String styleClass) {
787:                this .styleClass = styleClass;
788:            }
789:
790:            // toolTip
791:            private String toolTip = null;
792:
793:            /**
794:             * <p>Display the text as a tooltip for this component</p>
795:             */
796:            public String getToolTip() {
797:                if (this .toolTip != null) {
798:                    return this .toolTip;
799:                }
800:                ValueBinding _vb = getValueBinding("toolTip");
801:                if (_vb != null) {
802:                    return (String) _vb.getValue(getFacesContext());
803:                }
804:                return null;
805:            }
806:
807:            /**
808:             * <p>Display the text as a tooltip for this component</p>
809:             * @see #getToolTip()
810:             */
811:            public void setToolTip(String toolTip) {
812:                this .toolTip = toolTip;
813:            }
814:
815:            // valign
816:            private String valign = null;
817:
818:            /**
819:             * <p>Vertical alignment (top, middle, bottom) for the content of each cell in the column</p>
820:             */
821:            public String getValign() {
822:                if (this .valign != null) {
823:                    return this .valign;
824:                }
825:                ValueBinding _vb = getValueBinding("valign");
826:                if (_vb != null) {
827:                    return (String) _vb.getValue(getFacesContext());
828:                }
829:                return null;
830:            }
831:
832:            /**
833:             * <p>Vertical alignment (top, middle, bottom) for the content of each cell in the column</p>
834:             * @see #getValign()
835:             */
836:            public void setValign(String valign) {
837:                this .valign = valign;
838:            }
839:
840:            // visible
841:            private boolean visible = false;
842:            private boolean visible_set = false;
843:
844:            /**
845:             * <p>Use the visible attribute to indicate whether the component should be 
846:             *     viewable by the user in the rendered HTML page.</p>
847:             */
848:            public boolean isVisible() {
849:                if (this .visible_set) {
850:                    return this .visible;
851:                }
852:                ValueBinding _vb = getValueBinding("visible");
853:                if (_vb != null) {
854:                    Object _result = _vb.getValue(getFacesContext());
855:                    if (_result == null) {
856:                        return false;
857:                    } else {
858:                        return ((Boolean) _result).booleanValue();
859:                    }
860:                }
861:                return true;
862:            }
863:
864:            /**
865:             * <p>Use the visible attribute to indicate whether the component should be 
866:             *     viewable by the user in the rendered HTML page.</p>
867:             * @see #isVisible()
868:             */
869:            public void setVisible(boolean visible) {
870:                this .visible = visible;
871:                this .visible_set = true;
872:            }
873:
874:            // width
875:            private String width = null;
876:
877:            /**
878:             * <p>Set the width of the column in either pixels or percent(deprecated in HTML 4.0)</p>
879:             */
880:            public String getWidth() {
881:                if (this .width != null) {
882:                    return this .width;
883:                }
884:                ValueBinding _vb = getValueBinding("width");
885:                if (_vb != null) {
886:                    return (String) _vb.getValue(getFacesContext());
887:                }
888:                return null;
889:            }
890:
891:            /**
892:             * <p>Set the width of the column in either pixels or percent(deprecated in HTML 4.0)</p>
893:             * @see #getWidth()
894:             */
895:            public void setWidth(String width) {
896:                this .width = width;
897:            }
898:
899:            /**
900:             * <p>Restore the state of this component.</p>
901:             */
902:            public void restoreState(FacesContext _context, Object _state) {
903:                Object _values[] = (Object[]) _state;
904:                super .restoreState(_context, _values[0]);
905:                this .abbr = (String) _values[1];
906:                this .align = (String) _values[2];
907:                this .axis = (String) _values[3];
908:                this .bgColor = (String) _values[4];
909:                this ._char = (String) _values[5];
910:                this .charOff = (String) _values[6];
911:                this .colSpan = ((Integer) _values[7]).intValue();
912:                this .colSpan_set = ((Boolean) _values[8]).booleanValue();
913:                this .extraHtml = (String) _values[9];
914:                this .filterPanel = ((Boolean) _values[10]).booleanValue();
915:                this .filterPanel_set = ((Boolean) _values[11]).booleanValue();
916:                this .headers = (String) _values[12];
917:                this .height = (String) _values[13];
918:                this .noWrap = ((Boolean) _values[14]).booleanValue();
919:                this .noWrap_set = ((Boolean) _values[15]).booleanValue();
920:                this .onClick = (String) _values[16];
921:                this .onDblClick = (String) _values[17];
922:                this .onKeyDown = (String) _values[18];
923:                this .onKeyPress = (String) _values[19];
924:                this .onKeyUp = (String) _values[20];
925:                this .onMouseDown = (String) _values[21];
926:                this .onMouseMove = (String) _values[22];
927:                this .onMouseOut = (String) _values[23];
928:                this .onMouseOver = (String) _values[24];
929:                this .onMouseUp = (String) _values[25];
930:                this .preferencesPanel = ((Boolean) _values[26]).booleanValue();
931:                this .preferencesPanel_set = ((Boolean) _values[27])
932:                        .booleanValue();
933:                this .rowSpan = ((Integer) _values[28]).intValue();
934:                this .rowSpan_set = ((Boolean) _values[29]).booleanValue();
935:                this .scope = (String) _values[30];
936:                this .style = (String) _values[31];
937:                this .styleClass = (String) _values[32];
938:                this .toolTip = (String) _values[33];
939:                this .valign = (String) _values[34];
940:                this .visible = ((Boolean) _values[35]).booleanValue();
941:                this .visible_set = ((Boolean) _values[36]).booleanValue();
942:                this .width = (String) _values[37];
943:            }
944:
945:            /**
946:             * <p>Save the state of this component.</p>
947:             */
948:            public Object saveState(FacesContext _context) {
949:                Object _values[] = new Object[38];
950:                _values[0] = super .saveState(_context);
951:                _values[1] = this .abbr;
952:                _values[2] = this .align;
953:                _values[3] = this .axis;
954:                _values[4] = this .bgColor;
955:                _values[5] = this ._char;
956:                _values[6] = this .charOff;
957:                _values[7] = new Integer(this .colSpan);
958:                _values[8] = this .colSpan_set ? Boolean.TRUE : Boolean.FALSE;
959:                _values[9] = this .extraHtml;
960:                _values[10] = this .filterPanel ? Boolean.TRUE : Boolean.FALSE;
961:                _values[11] = this .filterPanel_set ? Boolean.TRUE
962:                        : Boolean.FALSE;
963:                _values[12] = this .headers;
964:                _values[13] = this .height;
965:                _values[14] = this .noWrap ? Boolean.TRUE : Boolean.FALSE;
966:                _values[15] = this .noWrap_set ? Boolean.TRUE : Boolean.FALSE;
967:                _values[16] = this .onClick;
968:                _values[17] = this .onDblClick;
969:                _values[18] = this .onKeyDown;
970:                _values[19] = this .onKeyPress;
971:                _values[20] = this .onKeyUp;
972:                _values[21] = this .onMouseDown;
973:                _values[22] = this .onMouseMove;
974:                _values[23] = this .onMouseOut;
975:                _values[24] = this .onMouseOver;
976:                _values[25] = this .onMouseUp;
977:                _values[26] = this .preferencesPanel ? Boolean.TRUE
978:                        : Boolean.FALSE;
979:                _values[27] = this .preferencesPanel_set ? Boolean.TRUE
980:                        : Boolean.FALSE;
981:                _values[28] = new Integer(this .rowSpan);
982:                _values[29] = this .rowSpan_set ? Boolean.TRUE : Boolean.FALSE;
983:                _values[30] = this .scope;
984:                _values[31] = this .style;
985:                _values[32] = this .styleClass;
986:                _values[33] = this .toolTip;
987:                _values[34] = this .valign;
988:                _values[35] = this .visible ? Boolean.TRUE : Boolean.FALSE;
989:                _values[36] = this .visible_set ? Boolean.TRUE : Boolean.FALSE;
990:                _values[37] = this.width;
991:                return _values;
992:            }
993:
994:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.