net.ontopia.topicmaps.impl.utils
Class ObjectTreeManager
java.lang.Object
net.ontopia.topicmaps.impl.utils.ObjectTreeManager
- All Implemented Interfaces:
- Serializable, EventListenerIF, EventManagerIF
public class ObjectTreeManager
- extends Object
- implements EventManagerIF, 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
handlers
protected Map<String,ObjectTreeManager.EventHandler> handlers
listeners
protected Map<String,Set<EventListenerIF>> listeners
otree
protected ObjectTreeManager otree
cfactory
protected CollectionFactoryIF cfactory
ObjectTreeManager
public ObjectTreeManager(EventManagerIF emanager,
CollectionFactoryIF cfactory)
addListener
public void addListener(EventListenerIF listener,
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,
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(Object object,
String event,
Object new_value,
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.