|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This context provides support for flow navigation and nesting. A flow is started using
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 finish(Object) or
cancel().
StandardFlowContainerWidget| Nested Class Summary | |
static interface |
FlowContext.Configurator
Configurator runs when FlowContext starts flow. |
static interface |
FlowContext.FlowReference
Deprecated. to be removed in Aranea 2.0 |
static interface |
FlowContext.Handler
Callback that will be run when flow has finished some way. |
static interface |
FlowContext.TransitionHandler
Performs the flow transitions in FlowContext. |
| Field Summary | |
static int |
TRANSITION_CANCEL
|
static int |
TRANSITION_FINISH
|
static int |
TRANSITION_REPLACE
|
static int |
TRANSITION_RESET
|
static int |
TRANSITION_START
|
| Method Summary | |
void |
addNestedEnvironmentEntry(ApplicationWidget scope,
Object entryId,
Object envEntry)
Adds an environment entry that is visible in all subflows. |
void |
cancel()
Finished the current flow passing control back to the calling flow. |
void |
finish(Object result)
Finisheds the current flow passing control back to the calling flow. |
FlowContext.FlowReference |
getCurrentReference()
Deprecated. to be removed in Aranea 2.0. Also see FlowContext.FlowReference |
FlowContext.TransitionHandler |
getTransitionHandler()
Returns currently active FlowContext.TransitionHandler. |
boolean |
isNested()
Returns whether the current flow is nested, that is has a caller flow. |
void |
replace(Widget flow)
Destroys the current flow and starts a new one. |
void |
replace(Widget flow,
FlowContext.Configurator configurator)
Destroys the current flow and starts a new one. |
void |
reset(EnvironmentAwareCallback callback)
Resets all currently running flows and calls the callback allowing to start
new flows. |
void |
setTransitionHandler(FlowContext.TransitionHandler handler)
Sets the FlowContext.TransitionHandler which performs the
flow navigation. |
void |
start(Widget flow)
Starts a new nested subflow. |
void |
start(Widget flow,
FlowContext.Configurator configurator,
FlowContext.Handler handler)
Starts a new nested subflow, that can be configured using the configurator. |
void |
start(Widget flow,
FlowContext.Handler handler)
Starts a new nested subflow. |
| Field Detail |
public static final int TRANSITION_START
public static final int TRANSITION_FINISH
public static final int TRANSITION_CANCEL
public static final int TRANSITION_REPLACE
public static final int TRANSITION_RESET
| Method Detail |
public void start(Widget flow)
finish(Object) or
cancel().
public void start(Widget flow,
FlowContext.Handler handler)
finish(Object) or
cancel(). FlowContext.Handler allows to receive notification, when the subflow ends execution.
public void start(Widget flow,
FlowContext.Configurator configurator,
FlowContext.Handler handler)
finish(Object) or cancel(). FlowContext.Handler allows to receive notification,
when the subflow ends execution.
public void replace(Widget flow)
public void replace(Widget flow,
FlowContext.Configurator configurator)
public void finish(Object result)
public void cancel()
public boolean isNested()
public void reset(EnvironmentAwareCallback callback)
callback allowing to start
new flows. Useful e.g. in a menu, when selecting a new menu item and reseting the old
stack.
public FlowContext.FlowReference getCurrentReference()
FlowContext.FlowReference
public void addNestedEnvironmentEntry(ApplicationWidget scope,
Object entryId,
Object envEntry)
public void setTransitionHandler(FlowContext.TransitionHandler handler)
FlowContext.TransitionHandler which performs the
flow navigation.
public FlowContext.TransitionHandler getTransitionHandler()
FlowContext.TransitionHandler.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||