MetaDone
|
Public Member Functions | |
MetadoneEvents () | |
MetadoneEvents (EventTower< Object > tower) | |
void | unsubscribe (Subscriber<?> s, Class<?> cl) |
void | unsubscribe (Subscriber<?> s, Class<?> cl, MapFct<?,?> predicate) |
void | unsubscribe (Subscriber<?> s) |
Set< Subscriber<?> > | findSubscribers (Object event) |
void | trigger (Object event) |
Exception | triggerSafe (Object event) |
Static Public Member Functions | |
static< M, TextendsM > void | subscribe (EventTower< M > eventManager, Subscriber<?super T > s, Class< T > cl, MapFct<?super T, Boolean > predicate) |
static void | unsubscribe (EventTower<?> eventManager, Subscriber<?> s) |
static void | unsubscribe (EventTower<?> eventManager, Subscriber<?> s, Class<?> cl, MapFct<?,?> predicate) |
Package Functions | |
public< T > void | subscribe (Subscriber<?super T > s, Class< T > cl, MapFct<?super T, Boolean > predicate) |
public< T > void | subscribe (Subscriber<?super T > s, Class< T > cl) |
Private Attributes | |
final EventTower< Object > | parent |
Static Private Attributes | |
static final Logger | logger = Logger.getLogger(MetadoneEvents.class) |
The main event dispatcher for metadone.
metadone.metabusiness.events.MetadoneEvents.MetadoneEvents | ( | ) |
metadone.metabusiness.events.MetadoneEvents.MetadoneEvents | ( | EventTower< Object > | tower | ) |
Set<Subscriber<?> > metadone.metabusiness.events.MetadoneEvents.findSubscribers | ( | Object | event | ) |
public<T> void metadone.metabusiness.events.MetadoneEvents.subscribe | ( | Subscriber<?super T > | s, |
Class< T > | cl | ||
) | [package] |
static <M,TextendsM> void metadone.metabusiness.events.MetadoneEvents.subscribe | ( | EventTower< M > | eventManager, |
Subscriber<?super T > | s, | ||
Class< T > | cl, | ||
MapFct<?super T, Boolean > | predicate | ||
) | [static] |
Helper function for registering in an event manager.
<M> | The type of the events accepted by the manager |
<T> | The type of event types for listening |
eventManager | The event manager or null |
s | The subscriber or null |
cl | The class |
predicate | The predicate or null |
public<T> void metadone.metabusiness.events.MetadoneEvents.subscribe | ( | Subscriber<?super T > | s, |
Class< T > | cl, | ||
MapFct<?super T, Boolean > | predicate | ||
) | [package] |
References metadone.metabusiness.events.MetadoneEvents.parent.
Referenced by metadone.client.grasyla2.GrasylaContext.activate(), metadone.client.MetadoneDesktopPane.ContextMenuSubscriber.componentShown(), metadone.metabusiness.events.MetadoneEvents.MetadoneEvents(), and metadone.metabusiness.impl.Workspace_impl.Workspace_impl().
void metadone.metabusiness.events.MetadoneEvents.trigger | ( | Object | event | ) |
References metadone.metabusiness.events.MetadoneEvents.parent.
Referenced by metadone.client.actions.SelectAsRangeAction.actionPerformed(), metadone.client.actions.RetroDocAction.actionPerformed(), metadone.client.actions.PluginsAction.actionPerformed(), metadone.client.actions.OpenProjectAction.actionPerformed(), metadone.client.actions.OpenGrasylaScriptAction.actionPerformed(), metadone.client.actions.ConnectAction.actionPerformed(), metadone.client.actions.ConcreteObjectDeleteAction.actionPerformed(), metadone.client.actions.ConcreteObjectCreateAction.actionPerformed(), metadone.client.dialog.swing.concreteobjecteditor.SingleRoleEditor.RoleListModel.add(), metadone.client.MainClientMetadone.changeState(), metadone_bundle_metabusiness.TheBusinessManager.createFactory(), metadone.plugin.helloworld.HelloPlugin.createMenu(), metadone.metabusiness.impl.Workspace_impl.dispose(), metadone.client.MainClientMetadone.error(), metadone.plugin.helloworld.HelloPlugin.getActionFor(), metadone.client.dialog.swing.helperBrowserMetal2.NodeRoot.getChildren(), metadone.client.MainClientMetadone.inform(), metadone.client.actions.VisualizeMetaModelAction.initiatizeScript(), metadone.metabusiness.events.MetadoneEvents.MetadoneEvents(), metadone.metabusiness.syntax.grasyla.GrasylaScript.notifyScriptChanged(), metadone.client.dialog.swing.concreteobjecteditor.SingleRoleEditor.RoleListModel.remove(), metadone_bundle_metabusiness.TheBusinessManager.removeFactory(), metadone.client.dialog.swing.concreteobjecteditor.SingleRoleEditor.RoleListModel.RoleListModel(), metadone.metabusiness.impl.Workspace_impl.save(), metadone.client.MetadoneDesktopPane.EngineObserver.start(), metadone.client.dialog.swing.helperBrowserMetal1.NodeValue.toString(), metadone.client.MetadoneDesktopPane.EngineObserver.trigger(), metadone.client.grasyla2.GrasylaEngine.trigger(), metadone.client.MetadoneDesktopPane.updatePopupMenuItems(), metadone.client.MainClientMetadone.warning(), and metadone.metabusiness.impl.Workspace_impl.Workspace_impl().
Exception metadone.metabusiness.events.MetadoneEvents.triggerSafe | ( | Object | event | ) |
References metadone.metabusiness.events.MetadoneEvents.parent.
Referenced by metadone.metabusiness.impl.Workspace_impl.trigger().
void metadone.metabusiness.events.MetadoneEvents.unsubscribe | ( | Subscriber<?> | s, |
Class<?> | cl | ||
) |
void metadone.metabusiness.events.MetadoneEvents.unsubscribe | ( | Subscriber<?> | s | ) |
static void metadone.metabusiness.events.MetadoneEvents.unsubscribe | ( | EventTower<?> | eventManager, |
Subscriber<?> | s | ||
) | [static] |
Helper function for unregistering from an event manager.
eventManager | The event manager or null |
s | The subscriber or null |
void metadone.metabusiness.events.MetadoneEvents.unsubscribe | ( | Subscriber<?> | s, |
Class<?> | cl, | ||
MapFct<?,?> | predicate | ||
) |
static void metadone.metabusiness.events.MetadoneEvents.unsubscribe | ( | EventTower<?> | eventManager, |
Subscriber<?> | s, | ||
Class<?> | cl, | ||
MapFct<?,?> | predicate | ||
) | [static] |
Helper function for unregistering from an event manager.
eventManager | The event manager or null |
s | The subscriber or null |
final Logger metadone.metabusiness.events.MetadoneEvents.logger = Logger.getLogger(MetadoneEvents.class) [static, private] |
Referenced by metadone.metabusiness.events.MetadoneEvents.MetadoneEvents().
final EventTower<Object> metadone.metabusiness.events.MetadoneEvents.parent [private] |
Referenced by metadone.metabusiness.events.MetadoneEvents.findSubscribers(), metadone.metabusiness.events.MetadoneEvents.MetadoneEvents(), metadone.metabusiness.events.MetadoneEvents.subscribe(), metadone.metabusiness.events.MetadoneEvents.trigger(), metadone.metabusiness.events.MetadoneEvents.triggerSafe(), and metadone.metabusiness.events.MetadoneEvents.unsubscribe().