Package de.intarsys.tools.event
Class CommonNotificationSupport
- java.lang.Object
-
- de.intarsys.tools.event.CommonNotificationSupport
-
- All Implemented Interfaces:
INotificationSupport
public class CommonNotificationSupport extends java.lang.Object implements INotificationSupport
A convenience implementation to pluginINotificationSupport.
-
-
Constructor Summary
Constructors Constructor Description CommonNotificationSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNotificationListener(EventType type, INotificationListener listener)Addlistenerto the collection of objects to be informed when the receiver triggers an event of typename.protected voidmarkDirty(java.lang.Object attribute, java.lang.Object oldValue, java.lang.Object newValue)voidremoveNotificationListener(EventType type, INotificationListener listener)Removelistenerfrom the collection of objects to be informed about events of typename.protected voidtriggerChanged(java.lang.Object attribute, java.lang.Object oldValue, java.lang.Object newValue)protected voidtriggerChangedBasic(java.lang.Object attribute, java.lang.Object oldValue, java.lang.Object newValue)protected voidtriggerEvent(Event event)
-
-
-
Method Detail
-
addNotificationListener
public void addNotificationListener(EventType type, INotificationListener listener)
Description copied from interface:INotificationSupportAddlistenerto the collection of objects to be informed when the receiver triggers an event of typename.- Specified by:
addNotificationListenerin interfaceINotificationSupport- Parameters:
type- The event type we are interested in.listener- The object to be informed about an event occurrence
-
markDirty
protected void markDirty(java.lang.Object attribute, java.lang.Object oldValue, java.lang.Object newValue)
-
removeNotificationListener
public void removeNotificationListener(EventType type, INotificationListener listener)
Description copied from interface:INotificationSupportRemovelistenerfrom the collection of objects to be informed about events of typename.- Specified by:
removeNotificationListenerin interfaceINotificationSupport- Parameters:
type- The event type we are no longer interested in.listener- The object registered for the event till now.
-
triggerChanged
protected void triggerChanged(java.lang.Object attribute, java.lang.Object oldValue, java.lang.Object newValue)
-
triggerChangedBasic
protected void triggerChangedBasic(java.lang.Object attribute, java.lang.Object oldValue, java.lang.Object newValue)
-
triggerEvent
protected void triggerEvent(Event event)
-
-