|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectimx.lib.listener.ActiveClassMap
public class ActiveClassMap
This Map associates objects with a class. If for a class no object is stored the object of the superclass is returned. If no super class has an associated object, the object stored for null is returned (aka the default object). The map updates any registered listener after it changed.
| Constructor Summary | |
|---|---|
ActiveClassMap()
|
|
| Method Summary | |
|---|---|
void |
addListener(ListenerInterface listener,
java.lang.Object eventType)
As a convention, if the eventType is null, the listener must be registered to all eventTypes. |
void |
clear()
|
java.lang.Object |
getObject(java.lang.Class objectClass)
searches for the object associated with objectClass. |
java.lang.Object |
getObject(java.lang.Object obj)
searches for the object associated with the class of obj. |
void |
removeListener(ListenerInterface listener,
java.lang.Object eventType)
If eventType is null, the listener is removed from all event types. |
void |
setObject(java.lang.Class objectClass,
java.lang.Object obj)
Associates obj with the class objectClass. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActiveClassMap()
| Method Detail |
|---|
public java.lang.Object getObject(java.lang.Class objectClass)
public java.lang.Object getObject(java.lang.Object obj)
public void setObject(java.lang.Class objectClass,
java.lang.Object obj)
public void clear()
public void addListener(ListenerInterface listener,
java.lang.Object eventType)
ActiveInterface
addListener in interface ActiveInterfacelistener - must not be nulleventType - null means register to all eventsListenerInterface
public void removeListener(ListenerInterface listener,
java.lang.Object eventType)
ActiveInterface
removeListener in interface ActiveInterfacelistener - must not be nulleventType - can be nullListenerInterface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||