net.ontopia.topicmaps.impl.utils
Class ObjectTreeManager
java.lang.Object
net.ontopia.topicmaps.impl.utils.ObjectTreeManager
- All Implemented Interfaces:
- java.io.Serializable, EventListenerIF, EventManagerIF
public class ObjectTreeManager
- extends java.lang.Object
- implements EventManagerIF, java.io.Serializable
INTERNAL: Event manager that fires object added and removed
events for children of added or removed objects.
This class is itself an event listener that listens to the standard
property change events fired by the object model. Objects that are
added or removed are traversed and further events for the children
of those objects are fired.
If your event listeners depends on knowing when objects are added
or removed use this class instead of doing the traversal
yourself.
- See Also:
- Serialized Form
Method Summary |
void |
addListener(EventListenerIF listener,
java.lang.String event)
INTERNAL: Register the listener as a listener for the event. |
void |
processEvent(java.lang.Object object,
java.lang.String event,
java.lang.Object new_value,
java.lang.Object old_value)
INTERNAL: A method that receives notification when an event has been triggered. |
void |
removeListener(EventListenerIF listener,
java.lang.String event)
INTERNAL: Unregister the listener as a listener for the event. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
handlers
protected java.util.Map<java.lang.String,ObjectTreeManager.EventHandler> handlers
listeners
protected java.util.Map<java.lang.String,java.util.Set<EventListenerIF>> listeners
otree
protected ObjectTreeManager otree
cfactory
protected CollectionFactoryIF cfactory
ObjectTreeManager
public ObjectTreeManager(EventManagerIF emanager,
CollectionFactoryIF cfactory)
addListener
public void addListener(EventListenerIF listener,
java.lang.String event)
- Description copied from interface:
EventManagerIF
- INTERNAL: Register the listener as a listener for the event.
- Specified by:
addListener
in interface EventManagerIF
removeListener
public void removeListener(EventListenerIF listener,
java.lang.String event)
- Description copied from interface:
EventManagerIF
- INTERNAL: Unregister the listener as a listener for the event.
- Specified by:
removeListener
in interface EventManagerIF
processEvent
public void processEvent(java.lang.Object object,
java.lang.String event,
java.lang.Object new_value,
java.lang.Object old_value)
- Description copied from interface:
EventListenerIF
- INTERNAL: A method that receives notification when an event has been triggered.
- Specified by:
processEvent
in interface EventListenerIF
Copyright © 2000-2012 Ontopia.