Package com.pixelmed.event
Class ApplicationEventDispatcher
- java.lang.Object
-
- com.pixelmed.event.ApplicationEventDispatcher
-
- All Implemented Interfaces:
EventDispatcher
public class ApplicationEventDispatcher extends java.lang.Object implements EventDispatcher
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(Listener l)
static ApplicationEventDispatcher
getApplicationEventDispatcher()
void
processEvent(Event event)
void
removeAllListenersForEventContext(EventContext context)
void
removeListener(Listener l)
-
-
-
Method Detail
-
getApplicationEventDispatcher
public static ApplicationEventDispatcher getApplicationEventDispatcher()
-
addListener
public void addListener(Listener l)
- Specified by:
addListener
in interfaceEventDispatcher
- Parameters:
l
-
-
removeListener
public void removeListener(Listener l)
- Specified by:
removeListener
in interfaceEventDispatcher
- Parameters:
l
-
-
removeAllListenersForEventContext
public void removeAllListenersForEventContext(EventContext context)
- Specified by:
removeAllListenersForEventContext
in interfaceEventDispatcher
- Parameters:
context
- does nothing if null (i.e., does not remove listeners with null context)
-
processEvent
public void processEvent(Event event)
- Specified by:
processEvent
in interfaceEventDispatcher
- Parameters:
event
-
-
-