|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmf.runtime.diagram.core.listener.DiagramEventBroker.NotifierToKeyToListenersSetMap
public final class DiagramEventBroker.NotifierToKeyToListenersSetMap
Utility class representing a Map of Notifier to a Map of Keys to a Set of listener
Constructor Summary | |
---|---|
DiagramEventBroker.NotifierToKeyToListenersSetMap()
|
Method Summary | |
---|---|
void |
addListener(org.eclipse.emf.ecore.EObject notifier,
java.lang.Object listener)
Adds a listener to the notifier; this listener is added againest a generic key, LISTEN_TO_ALL_FEATURES |
void |
addListener(org.eclipse.emf.ecore.EObject notifier,
java.lang.Object key,
java.lang.Object listener)
Adds a listener to the map |
java.util.Set |
getAllListeners(java.lang.Object notifier)
return all listeners interested in the passed notifier |
java.util.Set |
getListeners(java.lang.Object notifier,
java.lang.Object key)
get listeners interested in the passed notifier and key |
boolean |
isEmpty()
|
void |
removeListener(org.eclipse.emf.ecore.EObject notifier,
java.lang.Object key,
java.lang.Object listener)
removes a listener from the map |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DiagramEventBroker.NotifierToKeyToListenersSetMap()
Method Detail |
---|
public void addListener(org.eclipse.emf.ecore.EObject notifier, java.lang.Object key, java.lang.Object listener)
notifier
- the notifier the listener will listen tokey
- a key for the listener, this help in categorizing the
listeners based on their interestlistener
- the listenerpublic void addListener(org.eclipse.emf.ecore.EObject notifier, java.lang.Object listener)
LISTEN_TO_ALL_FEATURES
so it can listen to all events on the notifier
- Parameters:
notifier
- the notifier the listener will listen tolistener
- the listener
public void removeListener(org.eclipse.emf.ecore.EObject notifier, java.lang.Object key, java.lang.Object listener)
notifier
- key
- listener
- public java.util.Set getListeners(java.lang.Object notifier, java.lang.Object key)
notifier
- key
-
Set
of listenerspublic java.util.Set getAllListeners(java.lang.Object notifier)
notifier
-
public boolean isEmpty()
|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.