|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FlowContext
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.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()
Finishes the current flow passing control back to the calling flow. |
void |
finish(Object result)
Finishes the current flow passing control back to the calling flow. |
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 |
|---|
static final int TRANSITION_START
static final int TRANSITION_FINISH
static final int TRANSITION_CANCEL
static final int TRANSITION_REPLACE
static final int TRANSITION_RESET
| Method Detail |
|---|
void start(Widget flow)
finish(Object) or
cancel().
void start(Widget flow,
FlowContext.Handler handler)
finish(Object) or
cancel(). FlowContext.Handler allows to receive notification, when the subflow ends execution.
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.
void replace(Widget flow)
void replace(Widget flow,
FlowContext.Configurator configurator)
void finish(Object result)
void cancel()
boolean isNested()
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.
void addNestedEnvironmentEntry(ApplicationWidget scope,
Object entryId,
Object envEntry)
void setTransitionHandler(FlowContext.TransitionHandler handler)
FlowContext.TransitionHandler which performs the
flow navigation.
FlowContext.TransitionHandler getTransitionHandler()
FlowContext.TransitionHandler.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||