Source Code Cross Referenced for UIForm.java in  » Web-Framework » RSF » uk » org » ponder » rsf » components » 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 » Web Framework » RSF » uk.org.ponder.rsf.components 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        /*
02:         * Created on Jul 28, 2005
03:         */
04:        package uk.org.ponder.rsf.components;
05:
06:        import uk.org.ponder.rsf.request.EarlyRequestParser;
07:        import uk.org.ponder.rsf.viewstate.ViewParameters;
08:        import uk.org.ponder.stringutil.StringList;
09:        import uk.org.ponder.util.UniversalRuntimeException;
10:
11:        /**
12:         * Represents a Form (submission domain) in the component tree. Forms are 
13:         * treated somewhat unusually in that they (may be) generated <it>inline</it> in the
14:         * component tree by the producer, but are <it>folded away</it> before they
15:         * are seen by the renderer. The form model applied by the target render
16:         * technology is embodied by the FormModel, held in the parent View object,
17:         * also as a request-scope bean.
18:         * @author Antranig Basman (antranig@caret.cam.ac.uk)
19:         * 
20:         */
21:        public class UIForm extends UIContainer {
22:
23:            /** Which type of submission will this form trigger? For ACTION_REQUEST,
24:             * this will behave like a UICommand (e.g. HTTP POST) - for RENDER_REQUEST
25:             * like UILink (e.g. HTTP GET).
26:             */
27:            public String type = EarlyRequestParser.ACTION_REQUEST;
28:
29:            /** The target view state of this form. For a managed form, this will be
30:             * filled in by the fixup phrase to be the current view state.
31:             */
32:            public ViewParameters viewparams;
33:
34:            /** The URL to which this form will be submitted. This field will be computed
35:             * by a fixup and need not be filled in by the user.
36:             */
37:            public String targetURL;
38:
39:            /** A list of the FullIDs of the all controls to be submitted by this form.
40:             * If this is left blank(empty), it will be filled in by a FormFixer 
41:             * (currently by looking for all nested controls that are bound). Each of 
42:             * these controls will be either a UICommand or a UIBound.
43:             * <p> For the HTML submission model, this field is not strictly required
44:             * since hidden fields are rendered "alongside" their corresponding controls,
45:             * but is useful for general consistency and bookkeeping. More relevant, say,
46:             * for "WAP-like" submission models.
47:             */
48:            public StringList submittingcontrols;
49:
50:            /** Creates an "action" form that will receive an RSF submission */
51:            public static UIForm make(UIContainer parent, String ID) {
52:                if (!(parent instanceof  UIBranchContainer)) {
53:                    throw UniversalRuntimeException
54:                            .accumulate(new IllegalArgumentException(
55:                                    "Immediate parent of UIForm must be a branch container"));
56:                }
57:                UIForm togo = new UIForm();
58:                togo.ID = ID;
59:                togo.noID = true;
60:                parent.addComponent(togo);
61:                return togo;
62:            }
63:
64:            /** Creates an "unmanaged" GET ({@link EarlyRequestParser#RENDER_REQUEST}) 
65:             * form, targetted at the supplied ViewParameters */
66:
67:            public static UIForm make(UIContainer parent, String ID,
68:                    ViewParameters viewparams) {
69:                UIForm togo = make(parent, ID);
70:                togo.viewparams = viewparams.copyBase();
71:                togo.type = EarlyRequestParser.RENDER_REQUEST;
72:                togo.noID = true;
73:                return togo;
74:            }
75:
76:            /** Creates a form of the specified submission type, either 
77:             * {@link EarlyRequestParser#ACTION_REQUEST} or {@link EarlyRequestParser#RENDER_REQUEST}.
78:             */
79:            public static UIForm make(UIContainer parent, String ID, String type) {
80:                UIForm togo = make(parent, ID);
81:                togo.type = type;
82:                togo.noID = true;
83:                return togo;
84:            }
85:
86:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.