|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Another context interface that, in contrast to FlowContext and
PopupWindowContext, deals with flow logic that is running in overlay
mode.
Using OverlayContext assumes that the visual part of the
application also supports it. One must register the
OverlayContext in JSP with
<ui:registerOverlay/> tag.
| Nested Class Summary | |
static interface |
OverlayContext.OverlayActivityMarkerContext
This is a marker interface to say that overlay mode is active by putting this interface class into the Environment. |
| Field Summary | |
static String |
OVERLAY_REQUEST_KEY
The request parameter name identifying that the request comes from an overlay. |
| Method Summary | |
Map |
getOverlayOptions()
Provides the current options for overlay rendering. |
boolean |
isOverlayActive()
Specifies whether the overlay mode is currently running and visible to the user. |
void |
replace(Widget flow)
Destroys the current flow and starts a new one inside the overlay mode. |
void |
replace(Widget flow,
FlowContext.Configurator configurator)
Destroys the current flow and starts a new one inside the overlay mode. |
void |
reset(EnvironmentAwareCallback callback)
Resets all currently running flows inside the overlay mode and calls the callback allowing to start new flows. |
void |
setOverlayOptions(Map options)
Allows to specify custom overlay options as a Map. |
void |
start(Widget flow)
Starts a new nested flow inside the overlay mode. |
void |
start(Widget flow,
FlowContext.Configurator configurator,
FlowContext.Handler handler)
Starts a new nested flow inside the overlay mode, that can
be configured using the configurator. |
void |
start(Widget flow,
FlowContext.Handler handler)
Starts a new nested flow inside the overlay mode. |
| Field Detail |
public static final String OVERLAY_REQUEST_KEY
| Method Detail |
public boolean isOverlayActive()
public void setOverlayOptions(Map options)
Map. These options will be
forwarded to the script that handles the overlay mode visually.
options - options as <String, String> pair.public Map getOverlayOptions()
public void replace(Widget flow,
FlowContext.Configurator configurator)
flow - The uninitialized widget that wishes to run.configurator - Custom configuration for the new flow.public void replace(Widget flow)
flow - The uninitialized widget that should start to run.FlowContext.replace(Widget)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.
callback - The callback to handle the calling of new flows.FlowContext.reset(EnvironmentAwareCallback)
public void start(Widget flow,
FlowContext.Configurator configurator,
FlowContext.Handler handler)
flow inside the overlay mode, that can
be configured using the configurator. Current flow becomes
inactive untils subflow calls FlowContext.finish(Object) or
FlowContext.cancel(). handler allows to receive a
notification, when the subflow ends execution.
The flow is the only mandatory parameter.
flow - The uninitialized widget that should start to run.configurator - The configuration handler for the widget.handler - Allows to receive noticifation when the widget finishes or
cancels the flow.
public void start(Widget flow,
FlowContext.Handler handler)
flow inside the overlay mode. Current
flow becomes inactive untils subflow calls
FlowContext.finish(Object) or FlowContext.cancel().
handler allows to receive a notification, when the subflow
ends execution.
The flow is the only mandatory parameter.
flow - The uninitialized widget that should start to run.handler - Allows to receive noticifation when the widget finishes or
cancels the flow.public void start(Widget flow)
flow inside the overlay mode. Current
flow becomes inactive untils subflow calls FlowContext.finish(Object) or
FlowContext.cancel().
The flow is mandatory parameter.
flow - The uninitialized widget that should start to run.FlowContext.start(Widget)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||