public abstract class AbstractSwingAppPc extends Object implements AppPc
| Modifier and Type | Field and Description |
|---|---|
protected AppEventSupport |
mAppEventSupport
The next object in the AppEvent responder chain.
|
protected Object |
mFrameOrDialog
Null or the JFrame/JDialog container to manage for block/unblock events
(must be set by the derived class).
|
protected JMenuBar |
mMenuBar
Null or the menubar we manage (must be set by the derived class).
|
protected Map<String,JMenuItem> |
mMenuMap
Maps between a menu name (this is the component name, not the displayed text!)
and the actual menu.
|
protected JLabel |
mStatusLabel
Null or the label we use for status text events
(must be set by the derived class).
|
protected JToolBar |
mToolBar
Null or the toolbar we manage (must be set by the derived class).
|
static String |
SEPARATOR
The separator of menu names
|
| Constructor and Description |
|---|
AbstractSwingAppPc() |
| Modifier and Type | Method and Description |
|---|---|
void |
blockChanged(BlockEvent pEvent)
Handling of BlockEvent's.
|
void |
dispose(Map<String,? super Object> pArgs)
Called from the AppDc peer to cleanup all resources.
|
void |
init(Dc pDc,
Map<String,? super Object> pArgs)
This method is called by the dialog controller peer during
the initialisation phase of an application.
|
void |
menuToolbarChanged(MenuToolBarEvent pEvent)
Handling of the MenuToolBarEvent.
|
void |
postAppEvent(AppEvent pAppEvent)
Process/Dispatch an AppEvent.
|
void |
statusChanged(ShowStatusEvent pEvent)
Handling of ShowStatusEvent 's.
|
public static final String SEPARATOR
protected AppEventSupport mAppEventSupport
protected JToolBar mToolBar
protected JMenuBar mMenuBar
protected Map<String,JMenuItem> mMenuMap
protected Object mFrameOrDialog
protected JLabel mStatusLabel
public void init(Dc pDc, Map<String,? super Object> pArgs)
public void postAppEvent(AppEvent pAppEvent)
postAppEvent in interface AppEventSupportpAppEvent - event that should be routed/processesIllegalArgumentException - if pAppEvent is nullpublic void menuToolbarChanged(MenuToolBarEvent pEvent)
pEvent - the event with added/removed toolbar/menu entriespublic void blockChanged(BlockEvent pEvent)
pEvent - the event with the block informationpublic void statusChanged(ShowStatusEvent pEvent)
pEvent - the event with the status text informationpublic void dispose(Map<String,? super Object> pArgs)
dispose in interface DisposablepArgs - arguments, key is a String,
value is any suitable objekt for the keyCopyright © 2017 Jürgen Zeller (privat). All rights reserved.