|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.araneaframework.core.BaseComponent
org.araneaframework.core.BaseService
org.araneaframework.core.BaseWidget
org.araneaframework.core.BaseApplicationWidget
org.araneaframework.framework.container.StandardOverlayContainerWidget
public class StandardOverlayContainerWidget
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.araneaframework.core.BaseApplicationWidget |
|---|
BaseApplicationWidget.CompositeImpl, BaseApplicationWidget.ViewableImpl, BaseApplicationWidget.ViewModel |
| Nested classes/interfaces inherited from class org.araneaframework.core.BaseWidget |
|---|
BaseWidget.WidgetImpl |
| Nested classes/interfaces inherited from class org.araneaframework.core.BaseService |
|---|
BaseService.ServiceImpl |
| Nested classes/interfaces inherited from class org.araneaframework.core.BaseComponent |
|---|
BaseComponent.ComponentImpl |
| Nested classes/interfaces inherited from interface org.araneaframework.framework.OverlayContext |
|---|
OverlayContext.OverlayActivityMarkerContext |
| Nested classes/interfaces inherited from interface org.araneaframework.core.ApplicationWidget |
|---|
ApplicationWidget.WidgetViewModel |
| Nested classes/interfaces inherited from interface org.araneaframework.core.ApplicationService |
|---|
ApplicationService.ServiceViewModel |
| Nested classes/interfaces inherited from interface org.araneaframework.core.ApplicationComponent |
|---|
ApplicationComponent.ComponentViewModel |
| Nested classes/interfaces inherited from interface org.araneaframework.Composite |
|---|
Composite.CompositeComponent, Composite.CompositeService, Composite.CompositeWidget |
| Nested classes/interfaces inherited from interface org.araneaframework.Viewable |
|---|
Viewable.ViewableComponent, Viewable.ViewableService, Viewable.ViewableWidget |
| Nested classes/interfaces inherited from interface org.araneaframework.Widget |
|---|
Widget.Interface |
| Field Summary | |
|---|---|
static Map |
DEFAULT_PRESENTATION_OPTIONS
Map containing the default overlay presentation options. |
protected Map |
presentationOptions
|
| Fields inherited from class org.araneaframework.core.BaseService |
|---|
currentInputData, currentOutputData |
| Fields inherited from interface org.araneaframework.framework.OverlayContext |
|---|
OVERLAY_REQUEST_KEY |
| Fields inherited from interface org.araneaframework.core.ApplicationWidget |
|---|
EVENT_HANDLER_ID_KEY, EVENT_PARAMETER_KEY, EVENT_PATH_KEY |
| Fields inherited from interface org.araneaframework.core.ApplicationService |
|---|
ACTION_HANDLER_ID_KEY, ACTION_PARAMETER_KEY, ACTION_PATH_KEY |
| Constructor Summary | |
|---|---|
StandardOverlayContainerWidget()
|
|
| Method Summary | |
|---|---|
protected void |
action(Path path,
InputData input,
OutputData output)
If Path.hasNext() routes to the action to child, otherwise calls the
appropriate ActionListener. |
protected void |
assertActiveHierarchy(Path path,
String message)
Asserts that the current widget is in the active hierarchy. |
void |
cancel()
Similar to FlowContext.cancel() but closes the entire
OverlayContext not just the last flow widget. |
protected void |
event(Path path,
InputData input)
If path hasNextStep() routes to the correct child, otherwise calls the appropriate listener. |
void |
finish(Object result)
/** Similar to FlowContext.finish(Object) but closes the entire
OverlayContext not just the last flow widget. |
protected Environment |
getChildWidgetEnvironment()
Returns the widget's Environment by default. |
Map |
getOverlayOptions()
Provides the current options for overlay rendering. |
protected void |
init()
Init callback. |
boolean |
isOverlayActive()
Specifies whether the overlay mode is currently running and visible to the user. |
protected void |
render(OutputData output)
Renders the component to output, meant for overriding. |
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 |
setMain(Widget main)
|
void |
setOverlay(FlowContextWidget overlay)
|
void |
setOverlayOptions(Map presentationOptions)
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. |
protected void |
update(InputData input)
|
| Methods inherited from class org.araneaframework.core.BaseApplicationWidget |
|---|
_getComposite, _getViewable, addActionListener, addEventListener, addWidget, addWidget, clearActionListeners, clearEventlisteners, clearGlobalEventListener, disableWidget, enableWidget, getActionId, getChildEnvironment, getChildren, getEnvironment, getEventId, getViewModel, getWidget, handleAction, handleEvent, handleUpdate, propagate, putViewData, putViewDataOnce, removeActionListener, removeEventListener, removeViewData, removeWidget, setGlobalEventListener |
| Methods inherited from class org.araneaframework.core.BaseWidget |
|---|
_getWidget, getInputData, getOutputData, handleWidgetException |
| Methods inherited from class org.araneaframework.core.BaseService |
|---|
_getService, handleServiceException |
| Methods inherited from class org.araneaframework.core.BaseComponent |
|---|
_addComponent, _addComponent, _checkCall, _disableComponent, _enableComponent, _endCall, _endWaitingCall, _getChildren, _getComponent, _getDisabledChildren, _propagate, _relocateComponent, _removeComponent, _setEnvironment, _setScope, _startCall, _startWaitingCall, _strictCheckCall, _strictStartCall, _waitNoCall, destroy, disable, enable, getScope, handleException, isAlive, isDead, isInitialized |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.araneaframework.Widget |
|---|
_getWidget |
| Methods inherited from interface org.araneaframework.Service |
|---|
_getService |
| Methods inherited from interface org.araneaframework.Component |
|---|
_getComponent, getScope, isAlive |
| Field Detail |
|---|
public static final Map DEFAULT_PRESENTATION_OPTIONS
Map containing the default overlay presentation options. Default values are as follows:
protected Map presentationOptions
| Constructor Detail |
|---|
public StandardOverlayContainerWidget()
| Method Detail |
|---|
public void setMain(Widget main)
public void setOverlay(FlowContextWidget overlay)
public boolean isOverlayActive()
OverlayContext
isOverlayActive in interface OverlayContext
protected Environment getChildWidgetEnvironment()
throws Exception
BaseApplicationWidget
getChildWidgetEnvironment in class BaseApplicationWidgetException
protected void init()
throws Exception
BaseComponent
init in class BaseComponentException - Any runtime exception that may occur.
protected void update(InputData input)
throws Exception
update in class BaseApplicationWidgetException
protected void event(Path path,
InputData input)
throws Exception
BaseApplicationWidget
event in class BaseApplicationWidgetException
protected void action(Path path,
InputData input,
OutputData output)
throws Exception
BaseApplicationWidgetPath.hasNext() routes to the action to child, otherwise calls the
appropriate ActionListener.
action in class BaseApplicationWidgetpath - The path of the component to whom the action is targeted.input - The request data.output - The response data.
Exception - Any runtime exception that may occur.
protected void assertActiveHierarchy(Path path,
String message)
path - Path of the widget (from the request).message - A description message to include with the exception.
protected void render(OutputData output)
throws Exception
BaseApplicationWidget
render in class BaseApplicationWidgetExceptionpublic void replace(Widget flow)
OverlayContext
replace in interface OverlayContextflow - The uninitialized widget that should start to run.FlowContext.replace(Widget)
public void replace(Widget flow,
FlowContext.Configurator configurator)
OverlayContext
replace in interface OverlayContextflow - The uninitialized widget that wishes to run.configurator - Custom configuration for the new flow.public void reset(EnvironmentAwareCallback callback)
OverlayContextcallback allowing to start new flows. Useful e.g. in a menu,
when selecting a new menu item and reseting the old stack.
reset in interface OverlayContextcallback - The callback to handle the calling of new flows.FlowContext.reset(EnvironmentAwareCallback)
public void start(Widget flow,
FlowContext.Configurator configurator,
FlowContext.Handler handler)
OverlayContextflow 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.
start in interface OverlayContextflow - 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)
OverlayContextflow 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.
start in interface OverlayContextflow - 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)
OverlayContextflow inside the overlay mode. Current
flow becomes inactive untils subflow calls FlowContext.finish(Object) or
FlowContext.cancel().
The flow is mandatory parameter.
start in interface OverlayContextflow - The uninitialized widget that should start to run.FlowContext.start(Widget)public Map getOverlayOptions()
OverlayContext
getOverlayOptions in interface OverlayContextpublic void setOverlayOptions(Map presentationOptions)
OverlayContextMap. These options will be
forwarded to the script that handles the overlay mode visually.
setOverlayOptions in interface OverlayContextpresentationOptions - options as <String, String> pair.public void finish(Object result)
OverlayContextFlowContext.finish(Object) but closes the entire
OverlayContext not just the last flow widget.
finish in interface OverlayContextresult - The result to return from the overlay context.public void cancel()
OverlayContextFlowContext.cancel() but closes the entire
OverlayContext not just the last flow widget.
cancel in interface OverlayContext
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||