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


01:        /*
02:         * Created on 10-Feb-2006
03:         */
04:        package uk.org.ponder.rsf.flow.jsfnav;
05:
06:        import uk.org.ponder.rsf.flow.ARIResult;
07:        import uk.org.ponder.rsf.viewstate.AnyViewParameters;
08:
09:        /**
10:         * Summarises a single "navigation case", a static rule mapping from the return
11:         * value of an RSF Action into the ViewParameters to be navigated to. Used by
12:         * the "JSF Navigation Style" ActionResultInterpreter,
13:         * {@link uk.org.ponder.rsf.flow.jsfnav.JSFNavActionResultInterpreter}.
14:         * 
15:         * This has been extended from the JSF model to include a single extra field,
16:         * the "flow condition marker" which determines flow propagation state of parts
17:         * of the bean model marked as managed by a
18:         * {@link uk.org.ponder.rsf.preservation.StatePreservationStrategy}.
19:         * 
20:         * @author Antranig Basman (antranig@caret.cam.ac.uk)
21:         * 
22:         */
23:        public class NavigationCase {
24:            public NavigationCase() {
25:            }
26:
27:            /** A default NavigationCase which operates for any action return. This rule
28:             * will navigate to the state specified by <code>resultingView</code> **/
29:            public NavigationCase(AnyViewParameters resultingView) {
30:                this .resultingView = resultingView;
31:            }
32:
33:            public NavigationCase(AnyViewParameters resultingView,
34:                    String flowCondition) {
35:                this .resultingView = resultingView;
36:                this .flowCondition = flowCondition;
37:            }
38:
39:            /** A NavigationCase which triggers only on a particular outcome (action return) */
40:            public NavigationCase(String fromOutcome,
41:                    AnyViewParameters resultingView) {
42:                this .fromOutcome = fromOutcome;
43:                this .resultingView = resultingView;
44:            }
45:
46:            public NavigationCase(String fromOutcome,
47:                    AnyViewParameters resultingView, String flowCondition) {
48:                this .fromOutcome = fromOutcome;
49:                this .resultingView = resultingView;
50:                this .flowCondition = flowCondition;
51:            }
52:
53:            /** The return value from the method binding executed for this action
54:             * which matches this rule. If <code>fromOutcome</code> is left blank, this
55:             * rule will operate for all actions handled for this view.
56:             */
57:            public String fromOutcome;
58:            /** Final navigation state that this rule will cause navigation to if it is
59:             * selected.
60:             */
61:            public AnyViewParameters resultingView;
62:            /** A "Flow condition marker" for this navigation rule. This is set if this
63:             * navigation rule is considered to be part of an "informal flow".
64:             * Defaults to {@link uk.org.ponder.rsf.flow.ARIResult}.FLOW_END representing
65:             * no flow state or termination of any existing flow. Set to FLOW_START,
66:             * PROPAGATE or FLOW_ONESTEP for other flow behaviour.
67:             */
68:            public String flowCondition = ARIResult.FLOW_END;
69:
70:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.