public static interface IResourceDescription.Event.Source
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(IResourceDescription.Event.Listener listener)
Add a listener to the event source.
|
void |
notifyListeners(IResourceDescription.Event event)
Notify listeners about the given event.
|
void |
removeListener(IResourceDescription.Event.Listener listener)
Immediately removes a registered listener from the source.
|
void addListener(IResourceDescription.Event.Listener listener)
#addListener(Listener) will not affect the number of events that the listener receives.
#removeListener(Listener) will remove the listener immediately independently from the number of
invocations of #addListener(Listener) for the given listener.listener - the listener to be registered. May not be null.void removeListener(IResourceDescription.Event.Listener listener)
#removeListener(Listener)
is called during a notification, the removed listener will still receive the event. If the listener has
not been registered before, the #removeListener(Listener) does nothing.listener - the listener to be removed. May not be null.void notifyListeners(IResourceDescription.Event event)
Notify listeners about the given event.
event - the fired event. My not be null.