Source Code Cross Referenced for HtmlSelectManyCheckbox.java in  » J2EE » myfaces-core-1.2.0 » javax » faces » component » html » 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 » J2EE » myfaces core 1.2.0 » javax.faces.component.html 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        // WARNING: This file was automatically generated. Do not edit it directly,
002:        //          or you will lose your changes.
003:
004:        /*
005:         * Licensed to the Apache Software Foundation (ASF) under one
006:         * or more contributor license agreements.  See the NOTICE file
007:         * distributed with this work for additional information
008:         * regarding copyright ownership.  The ASF licenses this file
009:         * to you under the Apache License, Version 2.0 (the
010:         * "License"); you may not use this file except in compliance
011:         * with the License.  You may obtain a copy of the License at
012:         *
013:         *   http://www.apache.org/licenses/LICENSE-2.0
014:         *
015:         * Unless required by applicable law or agreed to in writing,
016:         * software distributed under the License is distributed on an
017:         * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
018:         * KIND, either express or implied.  See the License for the
019:         * specific language governing permissions and limitations
020:         * under the License.
021:         */
022:        package javax.faces.component.html;
023:
024:        import javax.el.ValueExpression;
025:        import javax.faces.component.UISelectMany;
026:        import javax.faces.context.FacesContext;
027:
028:        /**
029:         *
030:         * <h4>Events:</h4>
031:         * <table border="1" width="100%" cellpadding="3" summary="">
032:         * <tr bgcolor="#CCCCFF" class="TableHeadingColor">
033:         * <th align="left">Type</th>
034:         * <th align="left">Phases</th>
035:         * <th align="left">Description</th>
036:         * </tr>
037:         * <tr class="TableRowColor">
038:         * <td valign="top"><code>javax.faces.event.ValueChangeEvent</code></td>
039:         * <td valign="top" nowrap></td>
040:         * <td valign="top">The valueChange event is delivered when the value
041:         attribute is changed.</td>
042:         * </tr>
043:         * </table>
044:         */
045:        public class HtmlSelectManyCheckbox extends UISelectMany {
046:
047:            static public final String COMPONENT_FAMILY = "javax.faces.SelectMany";
048:            static public final String COMPONENT_TYPE = "javax.faces.HtmlSelectManyCheckbox";
049:
050:            /**
051:             * Construct an instance of the HtmlSelectManyCheckbox.
052:             */
053:            public HtmlSelectManyCheckbox() {
054:                setRendererType("javax.faces.Checkbox");
055:            }
056:
057:            // Property: style
058:            private String _style;
059:
060:            /**
061:             * Gets CSS styling instructions.
062:             *
063:             * @return  the new style value
064:             */
065:            public String getStyle() {
066:                if (_style != null) {
067:                    return _style;
068:                }
069:                ValueExpression expression = getValueExpression("style");
070:                if (expression != null) {
071:                    return (String) expression.getValue(getFacesContext()
072:                            .getELContext());
073:                }
074:                return null;
075:            }
076:
077:            /**
078:             * Sets CSS styling instructions.
079:             * 
080:             * @param style  the new style value
081:             */
082:            public void setStyle(String style) {
083:                this ._style = style;
084:            }
085:
086:            // Property: styleClass
087:            private String _styleClass;
088:
089:            /**
090:             * Gets The CSS class for this element. Corresponds to the HTML 'class' attribute.
091:             *
092:             * @return  the new styleClass value
093:             */
094:            public String getStyleClass() {
095:                if (_styleClass != null) {
096:                    return _styleClass;
097:                }
098:                ValueExpression expression = getValueExpression("styleClass");
099:                if (expression != null) {
100:                    return (String) expression.getValue(getFacesContext()
101:                            .getELContext());
102:                }
103:                return null;
104:            }
105:
106:            /**
107:             * Sets The CSS class for this element. Corresponds to the HTML 'class' attribute.
108:             * 
109:             * @param styleClass  the new styleClass value
110:             */
111:            public void setStyleClass(String styleClass) {
112:                this ._styleClass = styleClass;
113:            }
114:
115:            // Property: dir
116:            private String _dir;
117:
118:            /**
119:             * Gets The direction of text display, either 'ltr' (left-to-right) or 'rtl' (right-to-left).
120:             *
121:             * @return  the new dir value
122:             */
123:            public String getDir() {
124:                if (_dir != null) {
125:                    return _dir;
126:                }
127:                ValueExpression expression = getValueExpression("dir");
128:                if (expression != null) {
129:                    return (String) expression.getValue(getFacesContext()
130:                            .getELContext());
131:                }
132:                return null;
133:            }
134:
135:            /**
136:             * Sets The direction of text display, either 'ltr' (left-to-right) or 'rtl' (right-to-left).
137:             * 
138:             * @param dir  the new dir value
139:             */
140:            public void setDir(String dir) {
141:                this ._dir = dir;
142:            }
143:
144:            // Property: lang
145:            private String _lang;
146:
147:            /**
148:             * Gets The base language of this document.
149:             *
150:             * @return  the new lang value
151:             */
152:            public String getLang() {
153:                if (_lang != null) {
154:                    return _lang;
155:                }
156:                ValueExpression expression = getValueExpression("lang");
157:                if (expression != null) {
158:                    return (String) expression.getValue(getFacesContext()
159:                            .getELContext());
160:                }
161:                return null;
162:            }
163:
164:            /**
165:             * Sets The base language of this document.
166:             * 
167:             * @param lang  the new lang value
168:             */
169:            public void setLang(String lang) {
170:                this ._lang = lang;
171:            }
172:
173:            // Property: title
174:            private String _title;
175:
176:            /**
177:             * Gets An advisory title for this element. Often used by the user agent as a tooltip.
178:             *
179:             * @return  the new title value
180:             */
181:            public String getTitle() {
182:                if (_title != null) {
183:                    return _title;
184:                }
185:                ValueExpression expression = getValueExpression("title");
186:                if (expression != null) {
187:                    return (String) expression.getValue(getFacesContext()
188:                            .getELContext());
189:                }
190:                return null;
191:            }
192:
193:            /**
194:             * Sets An advisory title for this element. Often used by the user agent as a tooltip.
195:             * 
196:             * @param title  the new title value
197:             */
198:            public void setTitle(String title) {
199:                this ._title = title;
200:            }
201:
202:            // Property: onclick
203:            private String _onclick;
204:
205:            /**
206:             * Gets Script to be invoked when the element is clicked.
207:             *
208:             * @return  the new onclick value
209:             */
210:            public String getOnclick() {
211:                if (_onclick != null) {
212:                    return _onclick;
213:                }
214:                ValueExpression expression = getValueExpression("onclick");
215:                if (expression != null) {
216:                    return (String) expression.getValue(getFacesContext()
217:                            .getELContext());
218:                }
219:                return null;
220:            }
221:
222:            /**
223:             * Sets Script to be invoked when the element is clicked.
224:             * 
225:             * @param onclick  the new onclick value
226:             */
227:            public void setOnclick(String onclick) {
228:                this ._onclick = onclick;
229:            }
230:
231:            // Property: ondblclick
232:            private String _ondblclick;
233:
234:            /**
235:             * Gets Script to be invoked when the element is double-clicked.
236:             *
237:             * @return  the new ondblclick value
238:             */
239:            public String getOndblclick() {
240:                if (_ondblclick != null) {
241:                    return _ondblclick;
242:                }
243:                ValueExpression expression = getValueExpression("ondblclick");
244:                if (expression != null) {
245:                    return (String) expression.getValue(getFacesContext()
246:                            .getELContext());
247:                }
248:                return null;
249:            }
250:
251:            /**
252:             * Sets Script to be invoked when the element is double-clicked.
253:             * 
254:             * @param ondblclick  the new ondblclick value
255:             */
256:            public void setOndblclick(String ondblclick) {
257:                this ._ondblclick = ondblclick;
258:            }
259:
260:            // Property: onmousedown
261:            private String _onmousedown;
262:
263:            /**
264:             * Gets Script to be invoked when the pointing device is pressed over this element.
265:             *
266:             * @return  the new onmousedown value
267:             */
268:            public String getOnmousedown() {
269:                if (_onmousedown != null) {
270:                    return _onmousedown;
271:                }
272:                ValueExpression expression = getValueExpression("onmousedown");
273:                if (expression != null) {
274:                    return (String) expression.getValue(getFacesContext()
275:                            .getELContext());
276:                }
277:                return null;
278:            }
279:
280:            /**
281:             * Sets Script to be invoked when the pointing device is pressed over this element.
282:             * 
283:             * @param onmousedown  the new onmousedown value
284:             */
285:            public void setOnmousedown(String onmousedown) {
286:                this ._onmousedown = onmousedown;
287:            }
288:
289:            // Property: onmouseup
290:            private String _onmouseup;
291:
292:            /**
293:             * Gets Script to be invoked when the pointing device is released over this element.
294:             *
295:             * @return  the new onmouseup value
296:             */
297:            public String getOnmouseup() {
298:                if (_onmouseup != null) {
299:                    return _onmouseup;
300:                }
301:                ValueExpression expression = getValueExpression("onmouseup");
302:                if (expression != null) {
303:                    return (String) expression.getValue(getFacesContext()
304:                            .getELContext());
305:                }
306:                return null;
307:            }
308:
309:            /**
310:             * Sets Script to be invoked when the pointing device is released over this element.
311:             * 
312:             * @param onmouseup  the new onmouseup value
313:             */
314:            public void setOnmouseup(String onmouseup) {
315:                this ._onmouseup = onmouseup;
316:            }
317:
318:            // Property: onmouseover
319:            private String _onmouseover;
320:
321:            /**
322:             * Gets Script to be invoked when the pointing device is moved into this element.
323:             *
324:             * @return  the new onmouseover value
325:             */
326:            public String getOnmouseover() {
327:                if (_onmouseover != null) {
328:                    return _onmouseover;
329:                }
330:                ValueExpression expression = getValueExpression("onmouseover");
331:                if (expression != null) {
332:                    return (String) expression.getValue(getFacesContext()
333:                            .getELContext());
334:                }
335:                return null;
336:            }
337:
338:            /**
339:             * Sets Script to be invoked when the pointing device is moved into this element.
340:             * 
341:             * @param onmouseover  the new onmouseover value
342:             */
343:            public void setOnmouseover(String onmouseover) {
344:                this ._onmouseover = onmouseover;
345:            }
346:
347:            // Property: onmousemove
348:            private String _onmousemove;
349:
350:            /**
351:             * Gets Script to be invoked when the pointing device is moved while it is in this element.
352:             *
353:             * @return  the new onmousemove value
354:             */
355:            public String getOnmousemove() {
356:                if (_onmousemove != null) {
357:                    return _onmousemove;
358:                }
359:                ValueExpression expression = getValueExpression("onmousemove");
360:                if (expression != null) {
361:                    return (String) expression.getValue(getFacesContext()
362:                            .getELContext());
363:                }
364:                return null;
365:            }
366:
367:            /**
368:             * Sets Script to be invoked when the pointing device is moved while it is in this element.
369:             * 
370:             * @param onmousemove  the new onmousemove value
371:             */
372:            public void setOnmousemove(String onmousemove) {
373:                this ._onmousemove = onmousemove;
374:            }
375:
376:            // Property: onmouseout
377:            private String _onmouseout;
378:
379:            /**
380:             * Gets Script to be invoked when the pointing device is moves out of this element.
381:             *
382:             * @return  the new onmouseout value
383:             */
384:            public String getOnmouseout() {
385:                if (_onmouseout != null) {
386:                    return _onmouseout;
387:                }
388:                ValueExpression expression = getValueExpression("onmouseout");
389:                if (expression != null) {
390:                    return (String) expression.getValue(getFacesContext()
391:                            .getELContext());
392:                }
393:                return null;
394:            }
395:
396:            /**
397:             * Sets Script to be invoked when the pointing device is moves out of this element.
398:             * 
399:             * @param onmouseout  the new onmouseout value
400:             */
401:            public void setOnmouseout(String onmouseout) {
402:                this ._onmouseout = onmouseout;
403:            }
404:
405:            // Property: onkeypress
406:            private String _onkeypress;
407:
408:            /**
409:             * Gets Script to be invoked when a key is pressed over this element.
410:             *
411:             * @return  the new onkeypress value
412:             */
413:            public String getOnkeypress() {
414:                if (_onkeypress != null) {
415:                    return _onkeypress;
416:                }
417:                ValueExpression expression = getValueExpression("onkeypress");
418:                if (expression != null) {
419:                    return (String) expression.getValue(getFacesContext()
420:                            .getELContext());
421:                }
422:                return null;
423:            }
424:
425:            /**
426:             * Sets Script to be invoked when a key is pressed over this element.
427:             * 
428:             * @param onkeypress  the new onkeypress value
429:             */
430:            public void setOnkeypress(String onkeypress) {
431:                this ._onkeypress = onkeypress;
432:            }
433:
434:            // Property: onkeydown
435:            private String _onkeydown;
436:
437:            /**
438:             * Gets Script to be invoked when a key is pressed down over this element.
439:             *
440:             * @return  the new onkeydown value
441:             */
442:            public String getOnkeydown() {
443:                if (_onkeydown != null) {
444:                    return _onkeydown;
445:                }
446:                ValueExpression expression = getValueExpression("onkeydown");
447:                if (expression != null) {
448:                    return (String) expression.getValue(getFacesContext()
449:                            .getELContext());
450:                }
451:                return null;
452:            }
453:
454:            /**
455:             * Sets Script to be invoked when a key is pressed down over this element.
456:             * 
457:             * @param onkeydown  the new onkeydown value
458:             */
459:            public void setOnkeydown(String onkeydown) {
460:                this ._onkeydown = onkeydown;
461:            }
462:
463:            // Property: onkeyup
464:            private String _onkeyup;
465:
466:            /**
467:             * Gets Script to be invoked when a key is released over this element.
468:             *
469:             * @return  the new onkeyup value
470:             */
471:            public String getOnkeyup() {
472:                if (_onkeyup != null) {
473:                    return _onkeyup;
474:                }
475:                ValueExpression expression = getValueExpression("onkeyup");
476:                if (expression != null) {
477:                    return (String) expression.getValue(getFacesContext()
478:                            .getELContext());
479:                }
480:                return null;
481:            }
482:
483:            /**
484:             * Sets Script to be invoked when a key is released over this element.
485:             * 
486:             * @param onkeyup  the new onkeyup value
487:             */
488:            public void setOnkeyup(String onkeyup) {
489:                this ._onkeyup = onkeyup;
490:            }
491:
492:            // Property: onblur
493:            private String _onblur;
494:
495:            /**
496:             * Gets Specifies a script to be invoked when the element loses focus.
497:             *
498:             * @return  the new onblur value
499:             */
500:            public String getOnblur() {
501:                if (_onblur != null) {
502:                    return _onblur;
503:                }
504:                ValueExpression expression = getValueExpression("onblur");
505:                if (expression != null) {
506:                    return (String) expression.getValue(getFacesContext()
507:                            .getELContext());
508:                }
509:                return null;
510:            }
511:
512:            /**
513:             * Sets Specifies a script to be invoked when the element loses focus.
514:             * 
515:             * @param onblur  the new onblur value
516:             */
517:            public void setOnblur(String onblur) {
518:                this ._onblur = onblur;
519:            }
520:
521:            // Property: onfocus
522:            private String _onfocus;
523:
524:            /**
525:             * Gets Specifies a script to be invoked when the element receives focus.
526:             *
527:             * @return  the new onfocus value
528:             */
529:            public String getOnfocus() {
530:                if (_onfocus != null) {
531:                    return _onfocus;
532:                }
533:                ValueExpression expression = getValueExpression("onfocus");
534:                if (expression != null) {
535:                    return (String) expression.getValue(getFacesContext()
536:                            .getELContext());
537:                }
538:                return null;
539:            }
540:
541:            /**
542:             * Sets Specifies a script to be invoked when the element receives focus.
543:             * 
544:             * @param onfocus  the new onfocus value
545:             */
546:            public void setOnfocus(String onfocus) {
547:                this ._onfocus = onfocus;
548:            }
549:
550:            // Property: onchange
551:            private String _onchange;
552:
553:            /**
554:             * Gets Specifies a script to be invoked when the element is modified.
555:             *
556:             * @return  the new onchange value
557:             */
558:            public String getOnchange() {
559:                if (_onchange != null) {
560:                    return _onchange;
561:                }
562:                ValueExpression expression = getValueExpression("onchange");
563:                if (expression != null) {
564:                    return (String) expression.getValue(getFacesContext()
565:                            .getELContext());
566:                }
567:                return null;
568:            }
569:
570:            /**
571:             * Sets Specifies a script to be invoked when the element is modified.
572:             * 
573:             * @param onchange  the new onchange value
574:             */
575:            public void setOnchange(String onchange) {
576:                this ._onchange = onchange;
577:            }
578:
579:            // Property: onselect
580:            private String _onselect;
581:
582:            /**
583:             * Gets Specifies a script to be invoked when the element is selected.
584:             *
585:             * @return  the new onselect value
586:             */
587:            public String getOnselect() {
588:                if (_onselect != null) {
589:                    return _onselect;
590:                }
591:                ValueExpression expression = getValueExpression("onselect");
592:                if (expression != null) {
593:                    return (String) expression.getValue(getFacesContext()
594:                            .getELContext());
595:                }
596:                return null;
597:            }
598:
599:            /**
600:             * Sets Specifies a script to be invoked when the element is selected.
601:             * 
602:             * @param onselect  the new onselect value
603:             */
604:            public void setOnselect(String onselect) {
605:                this ._onselect = onselect;
606:            }
607:
608:            // Property: accesskey
609:            private String _accesskey;
610:
611:            /**
612:             * Gets Sets the access key for this element.
613:             *
614:             * @return  the new accesskey value
615:             */
616:            public String getAccesskey() {
617:                if (_accesskey != null) {
618:                    return _accesskey;
619:                }
620:                ValueExpression expression = getValueExpression("accesskey");
621:                if (expression != null) {
622:                    return (String) expression.getValue(getFacesContext()
623:                            .getELContext());
624:                }
625:                return null;
626:            }
627:
628:            /**
629:             * Sets Sets the access key for this element.
630:             * 
631:             * @param accesskey  the new accesskey value
632:             */
633:            public void setAccesskey(String accesskey) {
634:                this ._accesskey = accesskey;
635:            }
636:
637:            // Property: tabindex
638:            private String _tabindex;
639:
640:            /**
641:             * Gets Specifies the position of this element within the tab order of the document.
642:             *
643:             * @return  the new tabindex value
644:             */
645:            public String getTabindex() {
646:                if (_tabindex != null) {
647:                    return _tabindex;
648:                }
649:                ValueExpression expression = getValueExpression("tabindex");
650:                if (expression != null) {
651:                    return (String) expression.getValue(getFacesContext()
652:                            .getELContext());
653:                }
654:                return null;
655:            }
656:
657:            /**
658:             * Sets Specifies the position of this element within the tab order of the document.
659:             * 
660:             * @param tabindex  the new tabindex value
661:             */
662:            public void setTabindex(String tabindex) {
663:                this ._tabindex = tabindex;
664:            }
665:
666:            // Property: disabled
667:            private boolean _disabled = false;
668:            private boolean _disabledSet;
669:
670:            /**
671:             * Gets When true, this element cannot receive focus.
672:             *
673:             * @return  the new disabled value
674:             */
675:            public boolean isDisabled() {
676:                if (_disabledSet) {
677:                    return _disabled;
678:                }
679:                ValueExpression expression = getValueExpression("disabled");
680:                if (expression != null) {
681:                    return (Boolean) expression.getValue(getFacesContext()
682:                            .getELContext());
683:                }
684:                return false;
685:            }
686:
687:            /**
688:             * Sets When true, this element cannot receive focus.
689:             * 
690:             * @param disabled  the new disabled value
691:             */
692:            public void setDisabled(boolean disabled) {
693:                this ._disabled = disabled;
694:                this ._disabledSet = true;
695:            }
696:
697:            // Property: readonly
698:            private boolean _readonly;
699:            private boolean _readonlySet;
700:
701:            /**
702:             * Gets When true, indicates that this component cannot be modified by the user.
703:             *                 The element may receive focus unless it has also been disabled.
704:             *
705:             * @return  the new readonly value
706:             */
707:            public boolean isReadonly() {
708:                if (_readonlySet) {
709:                    return _readonly;
710:                }
711:                ValueExpression expression = getValueExpression("readonly");
712:                if (expression != null) {
713:                    return (Boolean) expression.getValue(getFacesContext()
714:                            .getELContext());
715:                }
716:                return false;
717:            }
718:
719:            /**
720:             * Sets When true, indicates that this component cannot be modified by the user.
721:             *                 The element may receive focus unless it has also been disabled.
722:             * 
723:             * @param readonly  the new readonly value
724:             */
725:            public void setReadonly(boolean readonly) {
726:                this ._readonly = readonly;
727:                this ._readonlySet = true;
728:            }
729:
730:            // Property: label
731:            private String _label;
732:
733:            /**
734:             * Gets A diplay name for this component.
735:             *
736:             * @return  the new label value
737:             */
738:            public String getLabel() {
739:                if (_label != null) {
740:                    return _label;
741:                }
742:                ValueExpression expression = getValueExpression("label");
743:                if (expression != null) {
744:                    return (String) expression.getValue(getFacesContext()
745:                            .getELContext());
746:                }
747:                return null;
748:            }
749:
750:            /**
751:             * Sets A diplay name for this component.
752:             * 
753:             * @param label  the new label value
754:             */
755:            public void setLabel(String label) {
756:                this ._label = label;
757:            }
758:
759:            // Property: border
760:            private int _border = -2147483648;
761:            private boolean _borderSet;
762:
763:            /**
764:             * Gets Specifies the width of the border of this element, in pixels. Deprecated in HTML 4.01.
765:             *
766:             * @return  the new border value
767:             */
768:            public int getBorder() {
769:                if (_borderSet) {
770:                    return _border;
771:                }
772:                ValueExpression expression = getValueExpression("border");
773:                if (expression != null) {
774:                    return (Integer) expression.getValue(getFacesContext()
775:                            .getELContext());
776:                }
777:                return -2147483648;
778:            }
779:
780:            /**
781:             * Sets Specifies the width of the border of this element, in pixels. Deprecated in HTML 4.01.
782:             * 
783:             * @param border  the new border value
784:             */
785:            public void setBorder(int border) {
786:                this ._border = border;
787:                this ._borderSet = true;
788:            }
789:
790:            // Property: enabledClass
791:            private String _enabledClass;
792:
793:            /**
794:             * Gets CSS class to be used for the enabled items.
795:             *
796:             * @return  the new enabledClass value
797:             */
798:            public String getEnabledClass() {
799:                if (_enabledClass != null) {
800:                    return _enabledClass;
801:                }
802:                ValueExpression expression = getValueExpression("enabledClass");
803:                if (expression != null) {
804:                    return (String) expression.getValue(getFacesContext()
805:                            .getELContext());
806:                }
807:                return null;
808:            }
809:
810:            /**
811:             * Sets CSS class to be used for the enabled items.
812:             * 
813:             * @param enabledClass  the new enabledClass value
814:             */
815:            public void setEnabledClass(String enabledClass) {
816:                this ._enabledClass = enabledClass;
817:            }
818:
819:            // Property: disabledClass
820:            private String _disabledClass;
821:
822:            /**
823:             * Gets CSS class to be used for the disabled items.
824:             *
825:             * @return  the new disabledClass value
826:             */
827:            public String getDisabledClass() {
828:                if (_disabledClass != null) {
829:                    return _disabledClass;
830:                }
831:                ValueExpression expression = getValueExpression("disabledClass");
832:                if (expression != null) {
833:                    return (String) expression.getValue(getFacesContext()
834:                            .getELContext());
835:                }
836:                return null;
837:            }
838:
839:            /**
840:             * Sets CSS class to be used for the disabled items.
841:             * 
842:             * @param disabledClass  the new disabledClass value
843:             */
844:            public void setDisabledClass(String disabledClass) {
845:                this ._disabledClass = disabledClass;
846:            }
847:
848:            // Property: layout
849:            private String _layout;
850:
851:            /**
852:             * Gets Orientation of the options list to be created. Valid values are
853:             * "pageDirection" (list is laid out vertically), or "lineDirection" (list is laid out horizontally).
854:             * If not specified, the default value is "lineDirection".
855:             *
856:             * @return  the new layout value
857:             */
858:            public String getLayout() {
859:                if (_layout != null) {
860:                    return _layout;
861:                }
862:                ValueExpression expression = getValueExpression("layout");
863:                if (expression != null) {
864:                    return (String) expression.getValue(getFacesContext()
865:                            .getELContext());
866:                }
867:                return null;
868:            }
869:
870:            /**
871:             * Sets Orientation of the options list to be created. Valid values are
872:             * "pageDirection" (list is laid out vertically), or "lineDirection" (list is laid out horizontally).
873:             * If not specified, the default value is "lineDirection".
874:             * 
875:             * @param layout  the new layout value
876:             */
877:            public void setLayout(String layout) {
878:                this ._layout = layout;
879:            }
880:
881:            @Override
882:            public Object saveState(FacesContext facesContext) {
883:                Object[] values = new Object[32];
884:                values[0] = super .saveState(facesContext);
885:                values[1] = _style;
886:                values[2] = _styleClass;
887:                values[3] = _dir;
888:                values[4] = _lang;
889:                values[5] = _title;
890:                values[6] = _onclick;
891:                values[7] = _ondblclick;
892:                values[8] = _onmousedown;
893:                values[9] = _onmouseup;
894:                values[10] = _onmouseover;
895:                values[11] = _onmousemove;
896:                values[12] = _onmouseout;
897:                values[13] = _onkeypress;
898:                values[14] = _onkeydown;
899:                values[15] = _onkeyup;
900:                values[16] = _onblur;
901:                values[17] = _onfocus;
902:                values[18] = _onchange;
903:                values[19] = _onselect;
904:                values[20] = _accesskey;
905:                values[21] = _tabindex;
906:                values[22] = _disabled;
907:                values[23] = _disabledSet;
908:                values[24] = _readonly;
909:                values[25] = _readonlySet;
910:                values[26] = _label;
911:                values[27] = _border;
912:                values[28] = _borderSet;
913:                values[29] = _enabledClass;
914:                values[30] = _disabledClass;
915:                values[31] = _layout;
916:
917:                return values;
918:            }
919:
920:            @Override
921:            public void restoreState(FacesContext facesContext, Object state) {
922:                Object[] values = (Object[]) state;
923:                super .restoreState(facesContext, values[0]);
924:                _style = (String) values[1];
925:                _styleClass = (String) values[2];
926:                _dir = (String) values[3];
927:                _lang = (String) values[4];
928:                _title = (String) values[5];
929:                _onclick = (String) values[6];
930:                _ondblclick = (String) values[7];
931:                _onmousedown = (String) values[8];
932:                _onmouseup = (String) values[9];
933:                _onmouseover = (String) values[10];
934:                _onmousemove = (String) values[11];
935:                _onmouseout = (String) values[12];
936:                _onkeypress = (String) values[13];
937:                _onkeydown = (String) values[14];
938:                _onkeyup = (String) values[15];
939:                _onblur = (String) values[16];
940:                _onfocus = (String) values[17];
941:                _onchange = (String) values[18];
942:                _onselect = (String) values[19];
943:                _accesskey = (String) values[20];
944:                _tabindex = (String) values[21];
945:                _disabled = (Boolean) values[22];
946:                _disabledSet = (Boolean) values[23];
947:                _readonly = (Boolean) values[24];
948:                _readonlySet = (Boolean) values[25];
949:                _label = (String) values[26];
950:                _border = (Integer) values[27];
951:                _borderSet = (Boolean) values[28];
952:                _enabledClass = (String) values[29];
953:                _disabledClass = (String) values[30];
954:                _layout = (String) values[31];
955:            }
956:
957:            @Override
958:            public String getFamily() {
959:                return COMPONENT_FAMILY;
960:            }
961:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.