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 voidaddListener(Listener l)static ApplicationEventDispatchergetApplicationEventDispatcher()voidprocessEvent(Event event)voidremoveAllListenersForEventContext(EventContext context)voidremoveListener(Listener l)
-
-
-
Method Detail
-
getApplicationEventDispatcher
public static ApplicationEventDispatcher getApplicationEventDispatcher()
-
addListener
public void addListener(Listener l)
- Specified by:
addListenerin interfaceEventDispatcher- Parameters:
l-
-
removeListener
public void removeListener(Listener l)
- Specified by:
removeListenerin interfaceEventDispatcher- Parameters:
l-
-
removeAllListenersForEventContext
public void removeAllListenersForEventContext(EventContext context)
- Specified by:
removeAllListenersForEventContextin interfaceEventDispatcher- Parameters:
context- does nothing if null (i.e., does not remove listeners with null context)
-
processEvent
public void processEvent(Event event)
- Specified by:
processEventin interfaceEventDispatcher- Parameters:
event-
-
-