MetaDone
metadone.metabusiness.events.MetadoneEvents Class Reference
Inheritance diagram for metadone.metabusiness.events.MetadoneEvents:
Collaboration diagram for metadone.metabusiness.events.MetadoneEvents:

List of all members.

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)

Detailed Description

The main event dispatcher for metadone.

Author:
kmagusia

Constructor & Destructor Documentation

metadone.metabusiness.events.MetadoneEvents.MetadoneEvents ( )

Member Function Documentation

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.

Parameters:
<M>The type of the events accepted by the manager
<T>The type of event types for listening
eventManagerThe event manager or null
sThe subscriber or null
clThe class
predicateThe predicate or null
public<T> void metadone.metabusiness.events.MetadoneEvents.subscribe ( Subscriber<?super T >  s,
Class< T >  cl,
MapFct<?super T, Boolean >  predicate 
) [package]
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)
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.

Parameters:
eventManagerThe event manager or null
sThe 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.

Parameters:
eventManagerThe event manager or null
sThe subscriber or null

Member Data Documentation

final Logger metadone.metabusiness.events.MetadoneEvents.logger = Logger.getLogger(MetadoneEvents.class) [static, private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations