Source Code Cross Referenced for HtmlForm.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.UIForm;
026:        import javax.faces.context.FacesContext;
027:
028:        /**
029:         */
030:        public class HtmlForm extends UIForm {
031:
032:            static public final String COMPONENT_FAMILY = "javax.faces.Form";
033:            static public final String COMPONENT_TYPE = "javax.faces.HtmlForm";
034:
035:            /**
036:             * Construct an instance of the HtmlForm.
037:             */
038:            public HtmlForm() {
039:                setRendererType("javax.faces.Form");
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: target
478:            private String _target;
479:
480:            /**
481:             * Gets Names the frame that should display content generated by invoking this action.
482:             *
483:             * @return  the new target value
484:             */
485:            public String getTarget() {
486:                if (_target != null) {
487:                    return _target;
488:                }
489:                ValueExpression expression = getValueExpression("target");
490:                if (expression != null) {
491:                    return (String) expression.getValue(getFacesContext()
492:                            .getELContext());
493:                }
494:                return null;
495:            }
496:
497:            /**
498:             * Sets Names the frame that should display content generated by invoking this action.
499:             * 
500:             * @param target  the new target value
501:             */
502:            public void setTarget(String target) {
503:                this ._target = target;
504:            }
505:
506:            // Property: accept
507:            private String _accept;
508:
509:            /**
510:             * Gets Provides a comma-separated list of content types that the
511:             * server processing this form can handle.
512:             *
513:             * @return  the new accept value
514:             */
515:            public String getAccept() {
516:                if (_accept != null) {
517:                    return _accept;
518:                }
519:                ValueExpression expression = getValueExpression("accept");
520:                if (expression != null) {
521:                    return (String) expression.getValue(getFacesContext()
522:                            .getELContext());
523:                }
524:                return null;
525:            }
526:
527:            /**
528:             * Sets Provides a comma-separated list of content types that the
529:             * server processing this form can handle.
530:             * 
531:             * @param accept  the new accept value
532:             */
533:            public void setAccept(String accept) {
534:                this ._accept = accept;
535:            }
536:
537:            // Property: acceptcharset
538:            private String _acceptcharset;
539:
540:            /**
541:             * Gets The list of character encodings accepted by the server for this form.
542:             *
543:             * @return  the new acceptcharset value
544:             */
545:            public String getAcceptcharset() {
546:                if (_acceptcharset != null) {
547:                    return _acceptcharset;
548:                }
549:                ValueExpression expression = getValueExpression("acceptcharset");
550:                if (expression != null) {
551:                    return (String) expression.getValue(getFacesContext()
552:                            .getELContext());
553:                }
554:                return null;
555:            }
556:
557:            /**
558:             * Sets The list of character encodings accepted by the server for this form.
559:             * 
560:             * @param acceptcharset  the new acceptcharset value
561:             */
562:            public void setAcceptcharset(String acceptcharset) {
563:                this ._acceptcharset = acceptcharset;
564:            }
565:
566:            // Property: enctype
567:            private String _enctype = "application/x-www-form-urlencoded";
568:
569:            /**
570:             * Gets The content type used to submit this form to the server.
571:             *
572:             * @return  the new enctype value
573:             */
574:            public String getEnctype() {
575:                if (_enctype != null) {
576:                    return _enctype;
577:                }
578:                ValueExpression expression = getValueExpression("enctype");
579:                if (expression != null) {
580:                    return (String) expression.getValue(getFacesContext()
581:                            .getELContext());
582:                }
583:                return "application/x-www-form-urlencoded";
584:            }
585:
586:            /**
587:             * Sets The content type used to submit this form to the server.
588:             * 
589:             * @param enctype  the new enctype value
590:             */
591:            public void setEnctype(String enctype) {
592:                this ._enctype = enctype;
593:            }
594:
595:            // Property: onreset
596:            private String _onreset;
597:
598:            /**
599:             * Gets Script to be invoked when this form is reset.
600:             *
601:             * @return  the new onreset value
602:             */
603:            public String getOnreset() {
604:                if (_onreset != null) {
605:                    return _onreset;
606:                }
607:                ValueExpression expression = getValueExpression("onreset");
608:                if (expression != null) {
609:                    return (String) expression.getValue(getFacesContext()
610:                            .getELContext());
611:                }
612:                return null;
613:            }
614:
615:            /**
616:             * Sets Script to be invoked when this form is reset.
617:             * 
618:             * @param onreset  the new onreset value
619:             */
620:            public void setOnreset(String onreset) {
621:                this ._onreset = onreset;
622:            }
623:
624:            // Property: onsubmit
625:            private String _onsubmit;
626:
627:            /**
628:             * Gets Script to be invoked when this form is submitted.
629:             *
630:             * @return  the new onsubmit value
631:             */
632:            public String getOnsubmit() {
633:                if (_onsubmit != null) {
634:                    return _onsubmit;
635:                }
636:                ValueExpression expression = getValueExpression("onsubmit");
637:                if (expression != null) {
638:                    return (String) expression.getValue(getFacesContext()
639:                            .getELContext());
640:                }
641:                return null;
642:            }
643:
644:            /**
645:             * Sets Script to be invoked when this form is submitted.
646:             * 
647:             * @param onsubmit  the new onsubmit value
648:             */
649:            public void setOnsubmit(String onsubmit) {
650:                this ._onsubmit = onsubmit;
651:            }
652:
653:            @Override
654:            public Object saveState(FacesContext facesContext) {
655:                Object[] values = new Object[22];
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] = _target;
673:                values[17] = _accept;
674:                values[18] = _acceptcharset;
675:                values[19] = _enctype;
676:                values[20] = _onreset;
677:                values[21] = _onsubmit;
678:
679:                return values;
680:            }
681:
682:            @Override
683:            public void restoreState(FacesContext facesContext, Object state) {
684:                Object[] values = (Object[]) state;
685:                super .restoreState(facesContext, values[0]);
686:                _style = (String) values[1];
687:                _styleClass = (String) values[2];
688:                _dir = (String) values[3];
689:                _lang = (String) values[4];
690:                _title = (String) values[5];
691:                _onclick = (String) values[6];
692:                _ondblclick = (String) values[7];
693:                _onmousedown = (String) values[8];
694:                _onmouseup = (String) values[9];
695:                _onmouseover = (String) values[10];
696:                _onmousemove = (String) values[11];
697:                _onmouseout = (String) values[12];
698:                _onkeypress = (String) values[13];
699:                _onkeydown = (String) values[14];
700:                _onkeyup = (String) values[15];
701:                _target = (String) values[16];
702:                _accept = (String) values[17];
703:                _acceptcharset = (String) values[18];
704:                _enctype = (String) values[19];
705:                _onreset = (String) values[20];
706:                _onsubmit = (String) values[21];
707:            }
708:
709:            @Override
710:            public String getFamily() {
711:                return COMPONENT_FAMILY;
712:            }
713:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.