Source Code Cross Referenced for HtmlOutputLabel.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.UIOutput;
026:        import javax.faces.context.FacesContext;
027:
028:        /**
029:         */
030:        public class HtmlOutputLabel extends UIOutput {
031:
032:            static public final String COMPONENT_FAMILY = "javax.faces.Output";
033:            static public final String COMPONENT_TYPE = "javax.faces.HtmlOutputLabel";
034:
035:            /**
036:             * Construct an instance of the HtmlOutputLabel.
037:             */
038:            public HtmlOutputLabel() {
039:                setRendererType("javax.faces.Label");
040:            }
041:
042:            // Property: style
043:            private String _style;
044:
045:            /**
046:             * Gets CSS styling instructions.
047:             *
048:             * @return  the new style value
049:             */
050:            public String getStyle() {
051:                if (_style != null) {
052:                    return _style;
053:                }
054:                ValueExpression expression = getValueExpression("style");
055:                if (expression != null) {
056:                    return (String) expression.getValue(getFacesContext()
057:                            .getELContext());
058:                }
059:                return null;
060:            }
061:
062:            /**
063:             * Sets CSS styling instructions.
064:             * 
065:             * @param style  the new style value
066:             */
067:            public void setStyle(String style) {
068:                this ._style = style;
069:            }
070:
071:            // Property: styleClass
072:            private String _styleClass;
073:
074:            /**
075:             * Gets The CSS class for this element. Corresponds to the HTML 'class' attribute.
076:             *
077:             * @return  the new styleClass value
078:             */
079:            public String getStyleClass() {
080:                if (_styleClass != null) {
081:                    return _styleClass;
082:                }
083:                ValueExpression expression = getValueExpression("styleClass");
084:                if (expression != null) {
085:                    return (String) expression.getValue(getFacesContext()
086:                            .getELContext());
087:                }
088:                return null;
089:            }
090:
091:            /**
092:             * Sets The CSS class for this element. Corresponds to the HTML 'class' attribute.
093:             * 
094:             * @param styleClass  the new styleClass value
095:             */
096:            public void setStyleClass(String styleClass) {
097:                this ._styleClass = styleClass;
098:            }
099:
100:            // Property: dir
101:            private String _dir;
102:
103:            /**
104:             * Gets The direction of text display, either 'ltr' (left-to-right) or 'rtl' (right-to-left).
105:             *
106:             * @return  the new dir value
107:             */
108:            public String getDir() {
109:                if (_dir != null) {
110:                    return _dir;
111:                }
112:                ValueExpression expression = getValueExpression("dir");
113:                if (expression != null) {
114:                    return (String) expression.getValue(getFacesContext()
115:                            .getELContext());
116:                }
117:                return null;
118:            }
119:
120:            /**
121:             * Sets The direction of text display, either 'ltr' (left-to-right) or 'rtl' (right-to-left).
122:             * 
123:             * @param dir  the new dir value
124:             */
125:            public void setDir(String dir) {
126:                this ._dir = dir;
127:            }
128:
129:            // Property: lang
130:            private String _lang;
131:
132:            /**
133:             * Gets The base language of this document.
134:             *
135:             * @return  the new lang value
136:             */
137:            public String getLang() {
138:                if (_lang != null) {
139:                    return _lang;
140:                }
141:                ValueExpression expression = getValueExpression("lang");
142:                if (expression != null) {
143:                    return (String) expression.getValue(getFacesContext()
144:                            .getELContext());
145:                }
146:                return null;
147:            }
148:
149:            /**
150:             * Sets The base language of this document.
151:             * 
152:             * @param lang  the new lang value
153:             */
154:            public void setLang(String lang) {
155:                this ._lang = lang;
156:            }
157:
158:            // Property: title
159:            private String _title;
160:
161:            /**
162:             * Gets An advisory title for this element. Often used by the user agent as a tooltip.
163:             *
164:             * @return  the new title value
165:             */
166:            public String getTitle() {
167:                if (_title != null) {
168:                    return _title;
169:                }
170:                ValueExpression expression = getValueExpression("title");
171:                if (expression != null) {
172:                    return (String) expression.getValue(getFacesContext()
173:                            .getELContext());
174:                }
175:                return null;
176:            }
177:
178:            /**
179:             * Sets An advisory title for this element. Often used by the user agent as a tooltip.
180:             * 
181:             * @param title  the new title value
182:             */
183:            public void setTitle(String title) {
184:                this ._title = title;
185:            }
186:
187:            // Property: onclick
188:            private String _onclick;
189:
190:            /**
191:             * Gets Script to be invoked when the element is clicked.
192:             *
193:             * @return  the new onclick value
194:             */
195:            public String getOnclick() {
196:                if (_onclick != null) {
197:                    return _onclick;
198:                }
199:                ValueExpression expression = getValueExpression("onclick");
200:                if (expression != null) {
201:                    return (String) expression.getValue(getFacesContext()
202:                            .getELContext());
203:                }
204:                return null;
205:            }
206:
207:            /**
208:             * Sets Script to be invoked when the element is clicked.
209:             * 
210:             * @param onclick  the new onclick value
211:             */
212:            public void setOnclick(String onclick) {
213:                this ._onclick = onclick;
214:            }
215:
216:            // Property: ondblclick
217:            private String _ondblclick;
218:
219:            /**
220:             * Gets Script to be invoked when the element is double-clicked.
221:             *
222:             * @return  the new ondblclick value
223:             */
224:            public String getOndblclick() {
225:                if (_ondblclick != null) {
226:                    return _ondblclick;
227:                }
228:                ValueExpression expression = getValueExpression("ondblclick");
229:                if (expression != null) {
230:                    return (String) expression.getValue(getFacesContext()
231:                            .getELContext());
232:                }
233:                return null;
234:            }
235:
236:            /**
237:             * Sets Script to be invoked when the element is double-clicked.
238:             * 
239:             * @param ondblclick  the new ondblclick value
240:             */
241:            public void setOndblclick(String ondblclick) {
242:                this ._ondblclick = ondblclick;
243:            }
244:
245:            // Property: onmousedown
246:            private String _onmousedown;
247:
248:            /**
249:             * Gets Script to be invoked when the pointing device is pressed over this element.
250:             *
251:             * @return  the new onmousedown value
252:             */
253:            public String getOnmousedown() {
254:                if (_onmousedown != null) {
255:                    return _onmousedown;
256:                }
257:                ValueExpression expression = getValueExpression("onmousedown");
258:                if (expression != null) {
259:                    return (String) expression.getValue(getFacesContext()
260:                            .getELContext());
261:                }
262:                return null;
263:            }
264:
265:            /**
266:             * Sets Script to be invoked when the pointing device is pressed over this element.
267:             * 
268:             * @param onmousedown  the new onmousedown value
269:             */
270:            public void setOnmousedown(String onmousedown) {
271:                this ._onmousedown = onmousedown;
272:            }
273:
274:            // Property: onmouseup
275:            private String _onmouseup;
276:
277:            /**
278:             * Gets Script to be invoked when the pointing device is released over this element.
279:             *
280:             * @return  the new onmouseup value
281:             */
282:            public String getOnmouseup() {
283:                if (_onmouseup != null) {
284:                    return _onmouseup;
285:                }
286:                ValueExpression expression = getValueExpression("onmouseup");
287:                if (expression != null) {
288:                    return (String) expression.getValue(getFacesContext()
289:                            .getELContext());
290:                }
291:                return null;
292:            }
293:
294:            /**
295:             * Sets Script to be invoked when the pointing device is released over this element.
296:             * 
297:             * @param onmouseup  the new onmouseup value
298:             */
299:            public void setOnmouseup(String onmouseup) {
300:                this ._onmouseup = onmouseup;
301:            }
302:
303:            // Property: onmouseover
304:            private String _onmouseover;
305:
306:            /**
307:             * Gets Script to be invoked when the pointing device is moved into this element.
308:             *
309:             * @return  the new onmouseover value
310:             */
311:            public String getOnmouseover() {
312:                if (_onmouseover != null) {
313:                    return _onmouseover;
314:                }
315:                ValueExpression expression = getValueExpression("onmouseover");
316:                if (expression != null) {
317:                    return (String) expression.getValue(getFacesContext()
318:                            .getELContext());
319:                }
320:                return null;
321:            }
322:
323:            /**
324:             * Sets Script to be invoked when the pointing device is moved into this element.
325:             * 
326:             * @param onmouseover  the new onmouseover value
327:             */
328:            public void setOnmouseover(String onmouseover) {
329:                this ._onmouseover = onmouseover;
330:            }
331:
332:            // Property: onmousemove
333:            private String _onmousemove;
334:
335:            /**
336:             * Gets Script to be invoked when the pointing device is moved while it is in this element.
337:             *
338:             * @return  the new onmousemove value
339:             */
340:            public String getOnmousemove() {
341:                if (_onmousemove != null) {
342:                    return _onmousemove;
343:                }
344:                ValueExpression expression = getValueExpression("onmousemove");
345:                if (expression != null) {
346:                    return (String) expression.getValue(getFacesContext()
347:                            .getELContext());
348:                }
349:                return null;
350:            }
351:
352:            /**
353:             * Sets Script to be invoked when the pointing device is moved while it is in this element.
354:             * 
355:             * @param onmousemove  the new onmousemove value
356:             */
357:            public void setOnmousemove(String onmousemove) {
358:                this ._onmousemove = onmousemove;
359:            }
360:
361:            // Property: onmouseout
362:            private String _onmouseout;
363:
364:            /**
365:             * Gets Script to be invoked when the pointing device is moves out of this element.
366:             *
367:             * @return  the new onmouseout value
368:             */
369:            public String getOnmouseout() {
370:                if (_onmouseout != null) {
371:                    return _onmouseout;
372:                }
373:                ValueExpression expression = getValueExpression("onmouseout");
374:                if (expression != null) {
375:                    return (String) expression.getValue(getFacesContext()
376:                            .getELContext());
377:                }
378:                return null;
379:            }
380:
381:            /**
382:             * Sets Script to be invoked when the pointing device is moves out of this element.
383:             * 
384:             * @param onmouseout  the new onmouseout value
385:             */
386:            public void setOnmouseout(String onmouseout) {
387:                this ._onmouseout = onmouseout;
388:            }
389:
390:            // Property: onkeypress
391:            private String _onkeypress;
392:
393:            /**
394:             * Gets Script to be invoked when a key is pressed over this element.
395:             *
396:             * @return  the new onkeypress value
397:             */
398:            public String getOnkeypress() {
399:                if (_onkeypress != null) {
400:                    return _onkeypress;
401:                }
402:                ValueExpression expression = getValueExpression("onkeypress");
403:                if (expression != null) {
404:                    return (String) expression.getValue(getFacesContext()
405:                            .getELContext());
406:                }
407:                return null;
408:            }
409:
410:            /**
411:             * Sets Script to be invoked when a key is pressed over this element.
412:             * 
413:             * @param onkeypress  the new onkeypress value
414:             */
415:            public void setOnkeypress(String onkeypress) {
416:                this ._onkeypress = onkeypress;
417:            }
418:
419:            // Property: onkeydown
420:            private String _onkeydown;
421:
422:            /**
423:             * Gets Script to be invoked when a key is pressed down over this element.
424:             *
425:             * @return  the new onkeydown value
426:             */
427:            public String getOnkeydown() {
428:                if (_onkeydown != null) {
429:                    return _onkeydown;
430:                }
431:                ValueExpression expression = getValueExpression("onkeydown");
432:                if (expression != null) {
433:                    return (String) expression.getValue(getFacesContext()
434:                            .getELContext());
435:                }
436:                return null;
437:            }
438:
439:            /**
440:             * Sets Script to be invoked when a key is pressed down over this element.
441:             * 
442:             * @param onkeydown  the new onkeydown value
443:             */
444:            public void setOnkeydown(String onkeydown) {
445:                this ._onkeydown = onkeydown;
446:            }
447:
448:            // Property: onkeyup
449:            private String _onkeyup;
450:
451:            /**
452:             * Gets Script to be invoked when a key is released over this element.
453:             *
454:             * @return  the new onkeyup value
455:             */
456:            public String getOnkeyup() {
457:                if (_onkeyup != null) {
458:                    return _onkeyup;
459:                }
460:                ValueExpression expression = getValueExpression("onkeyup");
461:                if (expression != null) {
462:                    return (String) expression.getValue(getFacesContext()
463:                            .getELContext());
464:                }
465:                return null;
466:            }
467:
468:            /**
469:             * Sets Script to be invoked when a key is released over this element.
470:             * 
471:             * @param onkeyup  the new onkeyup value
472:             */
473:            public void setOnkeyup(String onkeyup) {
474:                this ._onkeyup = onkeyup;
475:            }
476:
477:            // Property: onblur
478:            private String _onblur;
479:
480:            /**
481:             * Gets Specifies a script to be invoked when the element loses focus.
482:             *
483:             * @return  the new onblur value
484:             */
485:            public String getOnblur() {
486:                if (_onblur != null) {
487:                    return _onblur;
488:                }
489:                ValueExpression expression = getValueExpression("onblur");
490:                if (expression != null) {
491:                    return (String) expression.getValue(getFacesContext()
492:                            .getELContext());
493:                }
494:                return null;
495:            }
496:
497:            /**
498:             * Sets Specifies a script to be invoked when the element loses focus.
499:             * 
500:             * @param onblur  the new onblur value
501:             */
502:            public void setOnblur(String onblur) {
503:                this ._onblur = onblur;
504:            }
505:
506:            // Property: onfocus
507:            private String _onfocus;
508:
509:            /**
510:             * Gets Specifies a script to be invoked when the element receives focus.
511:             *
512:             * @return  the new onfocus value
513:             */
514:            public String getOnfocus() {
515:                if (_onfocus != null) {
516:                    return _onfocus;
517:                }
518:                ValueExpression expression = getValueExpression("onfocus");
519:                if (expression != null) {
520:                    return (String) expression.getValue(getFacesContext()
521:                            .getELContext());
522:                }
523:                return null;
524:            }
525:
526:            /**
527:             * Sets Specifies a script to be invoked when the element receives focus.
528:             * 
529:             * @param onfocus  the new onfocus value
530:             */
531:            public void setOnfocus(String onfocus) {
532:                this ._onfocus = onfocus;
533:            }
534:
535:            // Property: escape
536:            private boolean _escape = true;
537:            private boolean _escapeSet;
538:
539:            /**
540:             * Gets Indicates whether rendered markup should be escaped. Default: true
541:             *
542:             * @return  the new escape value
543:             */
544:            public boolean isEscape() {
545:                if (_escapeSet) {
546:                    return _escape;
547:                }
548:                ValueExpression expression = getValueExpression("escape");
549:                if (expression != null) {
550:                    return (Boolean) expression.getValue(getFacesContext()
551:                            .getELContext());
552:                }
553:                return true;
554:            }
555:
556:            /**
557:             * Sets Indicates whether rendered markup should be escaped. Default: true
558:             * 
559:             * @param escape  the new escape value
560:             */
561:            public void setEscape(boolean escape) {
562:                this ._escape = escape;
563:                this ._escapeSet = true;
564:            }
565:
566:            // Property: accesskey
567:            private String _accesskey;
568:
569:            /**
570:             * Gets Sets the access key for this element.
571:             *
572:             * @return  the new accesskey value
573:             */
574:            public String getAccesskey() {
575:                if (_accesskey != null) {
576:                    return _accesskey;
577:                }
578:                ValueExpression expression = getValueExpression("accesskey");
579:                if (expression != null) {
580:                    return (String) expression.getValue(getFacesContext()
581:                            .getELContext());
582:                }
583:                return null;
584:            }
585:
586:            /**
587:             * Sets Sets the access key for this element.
588:             * 
589:             * @param accesskey  the new accesskey value
590:             */
591:            public void setAccesskey(String accesskey) {
592:                this ._accesskey = accesskey;
593:            }
594:
595:            // Property: tabindex
596:            private String _tabindex;
597:
598:            /**
599:             * Gets Specifies the position of this element within the tab order of the document.
600:             *
601:             * @return  the new tabindex value
602:             */
603:            public String getTabindex() {
604:                if (_tabindex != null) {
605:                    return _tabindex;
606:                }
607:                ValueExpression expression = getValueExpression("tabindex");
608:                if (expression != null) {
609:                    return (String) expression.getValue(getFacesContext()
610:                            .getELContext());
611:                }
612:                return null;
613:            }
614:
615:            /**
616:             * Sets Specifies the position of this element within the tab order of the document.
617:             * 
618:             * @param tabindex  the new tabindex value
619:             */
620:            public void setTabindex(String tabindex) {
621:                this ._tabindex = tabindex;
622:            }
623:
624:            // Property: for
625:            private String _for;
626:
627:            /**
628:             * Gets Client ID the label should be displayed for.
629:             *
630:             * @return  the new for value
631:             */
632:            public String getFor() {
633:                if (_for != null) {
634:                    return _for;
635:                }
636:                ValueExpression expression = getValueExpression("forParam");
637:                if (expression != null) {
638:                    return (String) expression.getValue(getFacesContext()
639:                            .getELContext());
640:                }
641:                return null;
642:            }
643:
644:            /**
645:             * Sets Client ID the label should be displayed for.
646:             * 
647:             * @param forParam  the new for value
648:             */
649:            public void setFor(String forParam) {
650:                this ._for = forParam;
651:            }
652:
653:            @Override
654:            public Object saveState(FacesContext facesContext) {
655:                Object[] values = new Object[23];
656:                values[0] = super .saveState(facesContext);
657:                values[1] = _style;
658:                values[2] = _styleClass;
659:                values[3] = _dir;
660:                values[4] = _lang;
661:                values[5] = _title;
662:                values[6] = _onclick;
663:                values[7] = _ondblclick;
664:                values[8] = _onmousedown;
665:                values[9] = _onmouseup;
666:                values[10] = _onmouseover;
667:                values[11] = _onmousemove;
668:                values[12] = _onmouseout;
669:                values[13] = _onkeypress;
670:                values[14] = _onkeydown;
671:                values[15] = _onkeyup;
672:                values[16] = _onblur;
673:                values[17] = _onfocus;
674:                values[18] = _escape;
675:                values[19] = _escapeSet;
676:                values[20] = _accesskey;
677:                values[21] = _tabindex;
678:                values[22] = _for;
679:
680:                return values;
681:            }
682:
683:            @Override
684:            public void restoreState(FacesContext facesContext, Object state) {
685:                Object[] values = (Object[]) state;
686:                super .restoreState(facesContext, values[0]);
687:                _style = (String) values[1];
688:                _styleClass = (String) values[2];
689:                _dir = (String) values[3];
690:                _lang = (String) values[4];
691:                _title = (String) values[5];
692:                _onclick = (String) values[6];
693:                _ondblclick = (String) values[7];
694:                _onmousedown = (String) values[8];
695:                _onmouseup = (String) values[9];
696:                _onmouseover = (String) values[10];
697:                _onmousemove = (String) values[11];
698:                _onmouseout = (String) values[12];
699:                _onkeypress = (String) values[13];
700:                _onkeydown = (String) values[14];
701:                _onkeyup = (String) values[15];
702:                _onblur = (String) values[16];
703:                _onfocus = (String) values[17];
704:                _escape = (Boolean) values[18];
705:                _escapeSet = (Boolean) values[19];
706:                _accesskey = (String) values[20];
707:                _tabindex = (String) values[21];
708:                _for = (String) values[22];
709:            }
710:
711:            @Override
712:            public String getFamily() {
713:                return COMPONENT_FAMILY;
714:            }
715:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.