public class CommonNotificationSupport extends java.lang.Object implements INotificationSupport
INotificationSupport
.Constructor and Description |
---|
CommonNotificationSupport() |
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 . |
protected void |
markDirty(java.lang.Object attribute,
java.lang.Object oldValue,
java.lang.Object newValue) |
void |
removeNotificationListener(EventType type,
INotificationListener listener)
Remove
listener from the collection of objects to be
informed about events of type name . |
protected void |
triggerChanged(java.lang.Object attribute,
java.lang.Object oldValue,
java.lang.Object newValue) |
protected void |
triggerChangedBasic(java.lang.Object attribute,
java.lang.Object oldValue,
java.lang.Object newValue) |
protected void |
triggerEvent(Event event) |
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 occurrenceprotected void markDirty(java.lang.Object attribute, java.lang.Object oldValue, java.lang.Object newValue)
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.protected void triggerChanged(java.lang.Object attribute, java.lang.Object oldValue, java.lang.Object newValue)
protected void triggerChangedBasic(java.lang.Object attribute, java.lang.Object oldValue, java.lang.Object newValue)
protected void triggerEvent(Event event)