public abstract class AbstractAppDc extends Object implements AppDc
Modifier and Type | Field and Description |
---|---|
protected static List<Class<? extends AppEvent>> |
BLOCKED_EVENTS
A list of the events we do not forward but handle via our own AppEventManager.
|
protected AppEventManager |
mAppEventManger
Our app event manager.
|
protected AppEventSupport |
mAppEventSupport
The next object in the AppEvent responder chain.
|
protected DialogManager |
mDialogManager
The manager object that opens/closes dialogs.
|
Constructor and Description |
---|
AbstractAppDc() |
Modifier and Type | Method and Description |
---|---|
void |
dispose(Map<String,? super Object> pArgs)
Called from the application to to cleanup all resources.
|
Dc |
getActiveDialog()
Returns the active dialog.
|
List<Dc> |
getActiveDialogs()
Returns a list of the active dialogs.
|
void |
init(Dc pParent,
Map<String,? super Object> pArgs)
This method is called by the Application during
the initialisation phase of an application.
|
void |
postAppEvent(AppEvent pAppEvent)
Process/Dispatch an AppEvent.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canPassivate, doActivate, doPassivate
protected AppEventManager mAppEventManger
protected AppEventSupport mAppEventSupport
protected DialogManager mDialogManager
public void init(Dc pParent, Map<String,? super Object> pArgs)
public Dc getActiveDialog()
AppDc
getActiveDialog
in interface AppDc
public List<Dc> getActiveDialogs()
AppDc
getActiveDialogs
in interface AppDc
public void postAppEvent(AppEvent pAppEvent)
postAppEvent
in interface AppEventSupport
pAppEvent
- event that should be routed/processesIllegalArgumentException
- if pAppEvent is nullpublic void dispose(Map<String,? super Object> pArgs)
dispose
in interface Disposable
pArgs
- arguments, key is a String, value is any suitable objekt for the keyCopyright © 2017 Jürgen Zeller (privat). All rights reserved.