| Package | Description |
|---|---|
| net.sf.cuf.appevent |
The AppEvent library provides the anonym sending and receiving of events.
The event sender doesn't know the receiver of a event, and vice versa. |
| net.sf.cuf.fw2 |
This package contains a "medium" sized framework for structuring a
Java Swing or JavaFX client, and is based on the interfaces in the
net.sf.cuf.fw package. |
| Modifier and Type | Class and Description |
|---|---|
class |
BindEvent
A BindEvent object is used to bind AppEvent classes to (any number of)
event receivers.
|
class |
UnbindEvent
A UnbindEvent can be used to remove the binding that was
established with a BindEvent.
|
| Modifier and Type | Method and Description |
|---|---|
Class<? extends AppEvent> |
UnbindEvent.getTriggerClass()
Returns the AppEvent derived class that the target is interested in.
|
Class<? extends AppEvent> |
BindEvent.getTriggerClass()
Returns the AppEvent derived class that the target is interested in.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
AppEventManager.isBound(AppEvent pAppEvent)
Small helper method to check if a given Event-class is bound.
|
void |
AppEventSupport.postAppEvent(AppEvent pAppEvent)
Process/Dispatch an AppEvent.
|
void |
AppEventManager.postAppEvent(AppEvent pAppEvent)
The method handles first BindEvent/UnbindEvent objects, and
dispatches all other objects to registered targets.
|
static void |
AppEventUtil.postAppEvent(AppEventSupport pAppEventSupport,
AppEvent pAppEvent)
Helper method to process an AppEvent.
|
| Constructor and Description |
|---|
BindEvent(Object pSource,
String pMethodToCallBack,
Class<? extends AppEvent> pAppEventToBindTo)
The constructor creates a BindEvent with the handed values and an
unbound hop-count.
|
BindEvent(Object pSource,
String pMethodToCallBack,
Class<? extends AppEvent> pAppEventToBindTo,
int pHopCount)
The constructor creates a BindEvent with the handed values.
|
UnbindEvent(Object pSource,
Class<? extends AppEvent> pAppEventToUnbindFrom)
The constructor creates a UnbindEvent with the handed values.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BlockEvent
A BlockEvent is used to by a Dc/Pc to signal "the user should not make any
further input".
|
class |
CloseDialogEvent
A CloseDialogEvent signals that a dialog should be closed.
For dialogs following the SimpleLifeCycle interface this will trigger a call to the doPassivate() method. |
class |
MenuToolBarEvent
A MenuToolBaarEvent can be used by a DialogPc to change the
Menu/Toolbar.
|
class |
OpenDialogEvent
A OpenDialogEvent signals that a dialog should be opend.
For dialogs following the SimpleLifeCycle interface this will trigger a call to the doActivate() method. |
class |
ShowStatusEvent
A ShowStatusEvent can be used by any Dc/Pc to change the status
bar of an application.
|
| Modifier and Type | Field and Description |
|---|---|
protected static List<Class<? extends AppEvent>> |
AbstractAppDc.BLOCKED_EVENTS
A list of the events we do not forward but handle via our own AppEventManager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractSwingAppPc.postAppEvent(AppEvent pAppEvent)
Process/Dispatch an AppEvent.
|
void |
AbstractDialogSwingApplication.postAppEvent(AppEvent pAppEvent)
Process/Dispatch an AppEvent.
|
void |
AbstractDialogPc.postAppEvent(AppEvent pAppEvent)
Process/Dispatch an AppEvent.
|
void |
AbstractDialogDc.postAppEvent(AppEvent pAppEvent)
Process/Dispatch an AppEvent.
|
void |
AbstractAppDc.postAppEvent(AppEvent pAppEvent)
Process/Dispatch an AppEvent.
|
void |
DialogManager.postAppEvent(Dc pDc,
AppEventSupport pAppEventSupport,
AppEvent pAppEvent)
Filter for an AppEvent hierarchy: if a OpenDialogEvent or an CloseDialogEvent is posted,
we try to handle it.
|
Copyright © 2017 Jürgen Zeller (privat). All rights reserved.