Source Code Cross Referenced for HtmlInputText.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.UIInput;
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 HtmlInputText extends UIInput {
046:
047:            static public final String COMPONENT_FAMILY = "javax.faces.Input";
048:            static public final String COMPONENT_TYPE = "javax.faces.HtmlInputText";
049:
050:            /**
051:             * Construct an instance of the HtmlInputText.
052:             */
053:            public HtmlInputText() {
054:                setRendererType("javax.faces.Text");
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: alt
760:            private String _alt;
761:
762:            /**
763:             * Gets Specifies alternative text that can be used by a browser that can't show this element.
764:             *
765:             * @return  the new alt value
766:             */
767:            public String getAlt() {
768:                if (_alt != null) {
769:                    return _alt;
770:                }
771:                ValueExpression expression = getValueExpression("alt");
772:                if (expression != null) {
773:                    return (String) expression.getValue(getFacesContext()
774:                            .getELContext());
775:                }
776:                return null;
777:            }
778:
779:            /**
780:             * Sets Specifies alternative text that can be used by a browser that can't show this element.
781:             * 
782:             * @param alt  the new alt value
783:             */
784:            public void setAlt(String alt) {
785:                this ._alt = alt;
786:            }
787:
788:            // Property: size
789:            private int _size = -2147483648;
790:            private boolean _sizeSet;
791:
792:            /**
793:             * Gets The initial width of this control, in characters.
794:             *
795:             * @return  the new size value
796:             */
797:            public int getSize() {
798:                if (_sizeSet) {
799:                    return _size;
800:                }
801:                ValueExpression expression = getValueExpression("size");
802:                if (expression != null) {
803:                    return (Integer) expression.getValue(getFacesContext()
804:                            .getELContext());
805:                }
806:                return -2147483648;
807:            }
808:
809:            /**
810:             * Sets The initial width of this control, in characters.
811:             * 
812:             * @param size  the new size value
813:             */
814:            public void setSize(int size) {
815:                this ._size = size;
816:                this ._sizeSet = true;
817:            }
818:
819:            // Property: maxlength
820:            private int _maxlength = -2147483648;
821:            private boolean _maxlengthSet;
822:
823:            /**
824:             * Gets The maximum number of characters allowed to be entered.
825:             *
826:             * @return  the new maxlength value
827:             */
828:            public int getMaxlength() {
829:                if (_maxlengthSet) {
830:                    return _maxlength;
831:                }
832:                ValueExpression expression = getValueExpression("maxlength");
833:                if (expression != null) {
834:                    return (Integer) expression.getValue(getFacesContext()
835:                            .getELContext());
836:                }
837:                return -2147483648;
838:            }
839:
840:            /**
841:             * Sets The maximum number of characters allowed to be entered.
842:             * 
843:             * @param maxlength  the new maxlength value
844:             */
845:            public void setMaxlength(int maxlength) {
846:                this ._maxlength = maxlength;
847:                this ._maxlengthSet = true;
848:            }
849:
850:            // Property: autocomplete
851:            private String _autocomplete;
852:
853:            /**
854:             * Gets If the value of this attribute is "off", render "off" as the value of the attribute.
855:             *                 This indicates that the browser should disable its autocomplete feature for this component.
856:             *                 This is useful for components that perform autocompletion and do not want the browser interfering.
857:             *                 If this attribute is not set or the value is "on", render nothing.
858:             *
859:             * @return  the new autocomplete value
860:             */
861:            public String getAutocomplete() {
862:                if (_autocomplete != null) {
863:                    return _autocomplete;
864:                }
865:                ValueExpression expression = getValueExpression("autocomplete");
866:                if (expression != null) {
867:                    return (String) expression.getValue(getFacesContext()
868:                            .getELContext());
869:                }
870:                return null;
871:            }
872:
873:            /**
874:             * Sets If the value of this attribute is "off", render "off" as the value of the attribute.
875:             *                 This indicates that the browser should disable its autocomplete feature for this component.
876:             *                 This is useful for components that perform autocompletion and do not want the browser interfering.
877:             *                 If this attribute is not set or the value is "on", render nothing.
878:             * 
879:             * @param autocomplete  the new autocomplete value
880:             */
881:            public void setAutocomplete(String autocomplete) {
882:                this ._autocomplete = autocomplete;
883:            }
884:
885:            @Override
886:            public Object saveState(FacesContext facesContext) {
887:                Object[] values = new Object[33];
888:                values[0] = super .saveState(facesContext);
889:                values[1] = _style;
890:                values[2] = _styleClass;
891:                values[3] = _dir;
892:                values[4] = _lang;
893:                values[5] = _title;
894:                values[6] = _onclick;
895:                values[7] = _ondblclick;
896:                values[8] = _onmousedown;
897:                values[9] = _onmouseup;
898:                values[10] = _onmouseover;
899:                values[11] = _onmousemove;
900:                values[12] = _onmouseout;
901:                values[13] = _onkeypress;
902:                values[14] = _onkeydown;
903:                values[15] = _onkeyup;
904:                values[16] = _onblur;
905:                values[17] = _onfocus;
906:                values[18] = _onchange;
907:                values[19] = _onselect;
908:                values[20] = _accesskey;
909:                values[21] = _tabindex;
910:                values[22] = _disabled;
911:                values[23] = _disabledSet;
912:                values[24] = _readonly;
913:                values[25] = _readonlySet;
914:                values[26] = _label;
915:                values[27] = _alt;
916:                values[28] = _size;
917:                values[29] = _sizeSet;
918:                values[30] = _maxlength;
919:                values[31] = _maxlengthSet;
920:                values[32] = _autocomplete;
921:
922:                return values;
923:            }
924:
925:            @Override
926:            public void restoreState(FacesContext facesContext, Object state) {
927:                Object[] values = (Object[]) state;
928:                super .restoreState(facesContext, values[0]);
929:                _style = (String) values[1];
930:                _styleClass = (String) values[2];
931:                _dir = (String) values[3];
932:                _lang = (String) values[4];
933:                _title = (String) values[5];
934:                _onclick = (String) values[6];
935:                _ondblclick = (String) values[7];
936:                _onmousedown = (String) values[8];
937:                _onmouseup = (String) values[9];
938:                _onmouseover = (String) values[10];
939:                _onmousemove = (String) values[11];
940:                _onmouseout = (String) values[12];
941:                _onkeypress = (String) values[13];
942:                _onkeydown = (String) values[14];
943:                _onkeyup = (String) values[15];
944:                _onblur = (String) values[16];
945:                _onfocus = (String) values[17];
946:                _onchange = (String) values[18];
947:                _onselect = (String) values[19];
948:                _accesskey = (String) values[20];
949:                _tabindex = (String) values[21];
950:                _disabled = (Boolean) values[22];
951:                _disabledSet = (Boolean) values[23];
952:                _readonly = (Boolean) values[24];
953:                _readonlySet = (Boolean) values[25];
954:                _label = (String) values[26];
955:                _alt = (String) values[27];
956:                _size = (Integer) values[28];
957:                _sizeSet = (Boolean) values[29];
958:                _maxlength = (Integer) values[30];
959:                _maxlengthSet = (Boolean) values[31];
960:                _autocomplete = (String) values[32];
961:            }
962:
963:            @Override
964:            public String getFamily() {
965:                return COMPONENT_FAMILY;
966:            }
967:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.