de.intarsys.tools.event
public class NotificationSupportProxy extends java.lang.Object implements INotificationSupport
Constructor and Description |
---|
NotificationSupportProxy() |
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 . |
INotificationSupport |
getDelegate() |
void |
removeNotificationListener(EventType type,
INotificationListener listener)
Remove
listener from the collection of objects to be
informed about events of type name . |
void |
setDelegate(INotificationSupport pDelegate) |
public void addNotificationListener(EventType type, INotificationListener listener)
INotificationSupport
listener
to the collection of objects to be informed
when the receiver triggers an event of type name
.addNotificationListener
in interface INotificationSupport
type
- The event type we are interested in.listener
- The object to be informed about an event occurrencepublic INotificationSupport getDelegate()
public void removeNotificationListener(EventType type, INotificationListener listener)
INotificationSupport
listener
from the collection of objects to be
informed about events of type name
.removeNotificationListener
in interface INotificationSupport
type
- The event type we are no longer interested in.listener
- The object registered for the event till now.public void setDelegate(INotificationSupport pDelegate)