|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object | +--org.argouml.model.uml.ClassListenerHashMap
A map that holds ElementListenerLists with lists of listeners that are interested in each and every event of a certain type of the instances of a certain meta-class.
| Field Summary | |
|---|---|
private java.util.Map |
_listenerMap
The list of ListenerType - Listener pairs |
private static MElementListener[] |
NULL_ARRAY
A null array to be shared by all empty listener lists |
| Constructor Summary | |
|---|---|
(package private) |
ClassListenerHashMap()
|
| Method Summary | |
|---|---|
private java.lang.Class[] |
getHierarchy(java.lang.Class clazz)
|
EventListenerList[] |
getListenerList(java.lang.Class element)
Returns an EventListenerList with listeners that are interested in certain events of the given meta-class. |
MElementListener[] |
getListeners(java.lang.Class element,
EventKey key)
Returns all listeners that are interested in the given event. |
boolean |
isEmpty()
Tests if the hashmap is empty. |
void |
put(java.lang.Class element,
EventKey key,
MElementListener listener)
Puts a listener that is interested in a certain event that will be send by instances of the given meta-class. |
void |
remove(java.lang.Class element)
Removes the list of listeners for the given meta-class. |
void |
remove(java.lang.Class element,
EventKey key,
MElementListener listener)
Removes a listener as being interested in the given event. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final MElementListener[] NULL_ARRAY
private transient java.util.Map _listenerMap
| Constructor Detail |
ClassListenerHashMap()
| Method Detail |
public void put(java.lang.Class element,
EventKey key,
MElementListener listener)
element - The meta-class the listener is interested inkey - The type/name pair designating the event typelistener - The listener that's interested in the given event type
public void remove(java.lang.Class element,
EventKey key,
MElementListener listener)
element - key - listener - public void remove(java.lang.Class element)
element -
public MElementListener[] getListeners(java.lang.Class element,
EventKey key)
element - key -
public EventListenerList[] getListenerList(java.lang.Class element)
element -
private java.lang.Class[] getHierarchy(java.lang.Class clazz)
public boolean isEmpty()
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
| ArgoUML © 1996-2004 (20040306) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |