Package de.intarsys.tools.event
Class CommonNotificationSupport
java.lang.Object
de.intarsys.tools.event.CommonNotificationSupport
- All Implemented Interfaces:
INotificationSupport
A convenience implementation to plugin
INotificationSupport.-
Constructor Summary
Constructors -
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.protected voidvoidremoveNotificationListener(EventType type, INotificationListener listener) Removelistenerfrom the collection of objects to be informed about events of typename.protected voidtriggerChanged(Object attribute, Object oldValue, Object newValue) protected voidtriggerChangedBasic(Object attribute, Object oldValue, Object newValue) protected voidtriggerEvent(Event event)
-
Constructor Details
-
CommonNotificationSupport
public CommonNotificationSupport()
-
-
Method Details
-
addNotificationListener
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
-
removeNotificationListener
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
-
triggerChangedBasic
-
triggerEvent
-