|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ocl.examples.eventmanager.framework.AdapterCapsule
org.eclipse.ocl.examples.eventmanager.framework.DeferringNotifier
public class DeferringNotifier
The DeferringNotifier is responsible for queuing all events that are fired within a command. Is is assumed, that all events that are fired from a connection with an open command belong to that command.
Field Summary | |
---|---|
protected java.util.HashSet<org.eclipse.emf.common.notify.Notification> |
deferredEvents
contains the queued events by each connection that has an open command. |
Fields inherited from class org.eclipse.ocl.examples.eventmanager.framework.AdapterCapsule |
---|
_listener, _listenerType, _manager |
Constructor Summary | |
---|---|
DeferringNotifier(java.lang.ref.WeakReference<? extends org.eclipse.emf.common.notify.Adapter> _listenerRef,
ListenerTypeEnum _listenerType,
EventManager _manager)
|
Method Summary | |
---|---|
void |
cancelDeferment()
This method is defined here because of convenience reasons. |
void |
deferNotification()
This method is defined here because of convenience reasons. |
void |
deliverDeferredEvents()
This method is defined here because of convenience reasons. |
void |
fireEvent(org.eclipse.emf.common.notify.Notification event)
notifies the encapsulated listener about the passed event |
Methods inherited from class org.eclipse.ocl.examples.eventmanager.framework.AdapterCapsule |
---|
getListener, getListenerType, isResponsibleFor, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.HashSet<org.eclipse.emf.common.notify.Notification> deferredEvents
EventChain
in order to simplyfy the notification of multiple events and to improve performance.
Constructor Detail |
---|
public DeferringNotifier(java.lang.ref.WeakReference<? extends org.eclipse.emf.common.notify.Adapter> _listenerRef, ListenerTypeEnum _listenerType, EventManager _manager)
Method Detail |
---|
public void deferNotification()
AdapterCapsule
deferNotification
in class AdapterCapsule
public void deliverDeferredEvents()
AdapterCapsule
deliverDeferredEvents
in class AdapterCapsule
public void cancelDeferment()
AdapterCapsule
cancelDeferment
in class AdapterCapsule
public void fireEvent(org.eclipse.emf.common.notify.Notification event)
AdapterCapsule
fireEvent
in class AdapterCapsule
event
- the event that will be sent to the listener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |