de.intarsys.tools.event
public interface INotificationSupport
INotificationListener
objects to be informed about event.Modifier and Type | Method and Description |
---|---|
void |
addNotificationListener(EventType type,
INotificationListener listener)
Add
listener to the collection of objects to be informed
when the receiver triggers an event of type name . |
void |
removeNotificationListener(EventType type,
INotificationListener listener)
Remove
listener from the collection of objects to be
informed about events of type name . |
void addNotificationListener(EventType type, INotificationListener listener)
listener
to the collection of objects to be informed
when the receiver triggers an event of type name
.type
- The event type we are interested in.listener
- The object to be informed about an event occurrencevoid removeNotificationListener(EventType type, INotificationListener listener)
listener
from the collection of objects to be
informed about events of type name
.type
- The event type we are no longer interested in.listener
- The object registered for the event till now.