Java Doc for FlowContext.java in  » Web-Framework » aranea-mvc-1.1.1 » org » araneaframework » framework » 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 » aranea mvc 1.1.1 » org.araneaframework.framework 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.araneaframework.framework.FlowContext

All known Subclasses:   org.araneaframework.example.main.web.popups.StandalonePopupFlowWrapperWidget,
FlowContext
public interface FlowContext extends Serializable(Code)
This context provides support for flow navigation and nesting. A flow is started using FlowContext.start(Widget,org.araneaframework.framework.FlowContext.Configurator,org.araneaframework.framework.FlowContext.Handler) and continues to be active until it explicitly returns control to the caller using FlowContext.finish(Object) or FlowContext.cancel() .
See Also:   org.araneaframework.framework.container.StandardFlowContainerWidget
author:
   "Toomas Römer"
author:
   Jevgeni Kabanov (ekabanov at araneaframework dot org)

Inner Class :public interface FlowReference extends Serializable
Inner Class :public interface Handler extends Serializable
Inner Class :public interface Configurator extends Serializable
Inner Class :interface TransitionHandler extends Serializable

Field Summary
 intTRANSITION_CANCEL
    
 intTRANSITION_FINISH
    
 intTRANSITION_REPLACE
    
 intTRANSITION_RESET
    
 intTRANSITION_START
    


Method Summary
public  voidaddNestedEnvironmentEntry(ApplicationWidget scope, Object entryId, Object envEntry)
     Adds an environment entry that is visible in all subflows.
public  voidcancel()
     Finished the current flow passing control back to the calling flow.
public  voidfinish(Object result)
     Finisheds the current flow passing control back to the calling flow.
public  FlowReferencegetCurrentReference()
     Returns a reference to the current flow that can be used later to manipulate the current flow.
 TransitionHandlergetTransitionHandler()
    
public  booleanisNested()
     Returns whether the current flow is nested, that is has a caller flow.
public  voidreplace(Widget flow)
     Destroys the current flow and starts a new one.
public  voidreplace(Widget flow, Configurator configurator)
     Destroys the current flow and starts a new one.
public  voidreset(EnvironmentAwareCallback callback)
     Resets all currently running flows and calls the callback allowing to start new flows.
 voidsetTransitionHandler(TransitionHandler handler)
     Sets the TransitionHandler which performs the flow navigation.
public  voidstart(Widget flow)
     Starts a new nested subflow.
public  voidstart(Widget flow, Handler handler)
     Starts a new nested subflow.
public  voidstart(Widget flow, Configurator configurator, Handler handler)
     Starts a new nested subflow, that can be configured using the configurator.

Field Detail
TRANSITION_CANCEL
int TRANSITION_CANCEL(Code)

since:
   1.1



TRANSITION_FINISH
int TRANSITION_FINISH(Code)

since:
   1.1



TRANSITION_REPLACE
int TRANSITION_REPLACE(Code)

since:
   1.1



TRANSITION_RESET
int TRANSITION_RESET(Code)

since:
   1.1



TRANSITION_START
int TRANSITION_START(Code)

since:
   1.1





Method Detail
addNestedEnvironmentEntry
public void addNestedEnvironmentEntry(ApplicationWidget scope, Object entryId, Object envEntry)(Code)
Adds an environment entry that is visible in all subflows.



cancel
public void cancel()(Code)
Finished the current flow passing control back to the calling flow. Should be interpreted by the calling flow as a unsuccessful return.



finish
public void finish(Object result)(Code)
Finisheds the current flow passing control back to the calling flow. Optionally may return some value that can be interpreted by the calling flow as the result of the call.



getCurrentReference
public FlowReference getCurrentReference()(Code)
Returns a reference to the current flow that can be used later to manipulate the current flow. FlowReference



getTransitionHandler
TransitionHandler getTransitionHandler()(Code)
Returns currently active TransitionHandler
since:
   1.1



isNested
public boolean isNested()(Code)
Returns whether the current flow is nested, that is has a caller flow.



replace
public void replace(Widget flow)(Code)
Destroys the current flow and starts a new one. When the new flow will end execution it will return control to the caller of the current flow (if there is one).



replace
public void replace(Widget flow, Configurator configurator)(Code)
Destroys the current flow and starts a new one. When the new flow will end execution it will return control to the caller of the current flow (if there is one). Started subflow can be configured using the configurator.
since:
   1.0.9



reset
public void reset(EnvironmentAwareCallback callback)(Code)
Resets all currently running flows and calls the callback allowing to start new flows. Useful e.g. in a menu, when selecting a new menu item and reseting the old stack.



setTransitionHandler
void setTransitionHandler(TransitionHandler handler)(Code)
Sets the TransitionHandler which performs the flow navigation.
since:
   1.1



start
public void start(Widget flow)(Code)
Starts a new nested subflow. Current flow becomes inactive untils subflow calls FlowContext.finish(Object) or FlowContext.cancel() .
since:
   1.0.9



start
public void start(Widget flow, Handler handler)(Code)
Starts a new nested subflow. Current flow becomes inactive untils subflow calls FlowContext.finish(Object) or FlowContext.cancel() . Handler allows to receive notification, when the subflow ends execution.
since:
   1.0.9



start
public void start(Widget flow, Configurator configurator, Handler handler)(Code)
Starts a new nested subflow, that can be configured using the configurator. Current flow becomes inactive untils subflow calls FlowContext.finish(Object) or FlowContext.cancel() . Handler allows to receive notification, when the subflow ends execution.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.