Package de.intarsys.tools.event
Interface INotificationSupport
- All Known Implementing Classes:
CommonNotificationSupport,EventDispatcher,FunctorFieldHandler,MemoryLogHandler,NotificationSupportProxy,PreferencesAdapter
public interface INotificationSupport
The implementor supports registration of
INotificationListener
objects to be informed about event.-
Method Summary
Modifier and TypeMethodDescriptionvoidaddNotificationListener(EventType type, INotificationListener listener) Addlistenerto the collection of objects to be informed when the receiver triggers an event of typename.voidremoveNotificationListener(EventType type, INotificationListener listener) Removelistenerfrom the collection of objects to be informed about events of typename.
-
Method Details
-
addNotificationListener
Addlistenerto the collection of objects to be informed when the receiver triggers an event of typename.- Parameters:
type- The event type we are interested in.listener- The object to be informed about an event occurrence
-
removeNotificationListener
Removelistenerfrom the collection of objects to be informed about events of typename.- Parameters:
type- The event type we are no longer interested in.listener- The object registered for the event till now.
-