net.groboclown.gui.pluginapp.v1
Class EventManager

java.lang.Object
  |
  +--net.groboclown.gui.pluginapp.v1.EventManager
All Implemented Interfaces:
IElement, Serializable

public class EventManager
extends Object
implements IElement

Stores all the datastructures for the installer app.

See Also:
Serialized Form

Inner Class Summary
private  class EventManager.MyElementRemovedListener
           
 
Field Summary
private static boolean DEBUG
           
private  EventBus eb
           
private static String ELEMENT_LISTENERS
           
private  ElementManager elementMgr
           
private  EventManager.MyElementRemovedListener merl
           
private static String NAME
           
 
Constructor Summary
EventManager()
           
 
Method Summary
 void addListener(IElement source, IEventBusListener listener)
           
private static void debug(String text)
           
 Object getEventSource(EventBusEvent ebe)
           
 IElement getEventSourceElement(EventBusEvent ebe)
           
 String getName()
           
 int getVersion()
           
 void removeListener(IElement source, IEventBusListener listener)
           
 void sendEvent(IElement source, BaseEvent be)
           
 void setup(Core core)
           
 void teardown()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

NAME

private static final String NAME

ELEMENT_LISTENERS

private static final String ELEMENT_LISTENERS

eb

private EventBus eb

elementMgr

private ElementManager elementMgr

merl

private EventManager.MyElementRemovedListener merl

DEBUG

private static final boolean DEBUG
Constructor Detail

EventManager

public EventManager()
Method Detail

getName

public String getName()
Specified by:
getName in interface IElement

getVersion

public int getVersion()
Specified by:
getVersion in interface IElement

setup

public void setup(Core core)
Specified by:
setup in interface IElement

teardown

public void teardown()
Specified by:
teardown in interface IElement

addListener

public void addListener(IElement source,
                        IEventBusListener listener)
                 throws RemoteException

removeListener

public void removeListener(IElement source,
                           IEventBusListener listener)

sendEvent

public void sendEvent(IElement source,
                      BaseEvent be)

getEventSourceElement

public IElement getEventSourceElement(EventBusEvent ebe)

getEventSource

public Object getEventSource(EventBusEvent ebe)

debug

private static final void debug(String text)


Written under the LGPL