public class ObjectTreeManager extends Object implements EventManagerIF, Serializable
Modifier and Type | Class and Description |
---|---|
protected class |
ObjectTreeManager.EventHandler |
Modifier and Type | Field and Description |
---|---|
protected CollectionFactoryIF |
cfactory |
protected Map<String,ObjectTreeManager.EventHandler> |
handlers |
protected Map<String,Set<EventListenerIF>> |
listeners |
protected ObjectTreeManager |
otree |
Constructor and Description |
---|
ObjectTreeManager(EventManagerIF emanager,
CollectionFactoryIF cfactory) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(EventListenerIF listener,
String event)
INTERNAL: Register the listener as a listener for the event.
|
void |
processEvent(Object object,
String event,
Object new_value,
Object old_value)
INTERNAL: A method that receives notification when an event has been triggered.
|
void |
removeListener(EventListenerIF listener,
String event)
INTERNAL: Unregister the listener as a listener for the event.
|
protected Map<String,ObjectTreeManager.EventHandler> handlers
protected Map<String,Set<EventListenerIF>> listeners
protected ObjectTreeManager otree
protected CollectionFactoryIF cfactory
public ObjectTreeManager(EventManagerIF emanager, CollectionFactoryIF cfactory)
public void addListener(EventListenerIF listener, String event)
EventManagerIF
addListener
in interface EventManagerIF
public void removeListener(EventListenerIF listener, String event)
EventManagerIF
removeListener
in interface EventManagerIF
public void processEvent(Object object, String event, Object new_value, Object old_value)
EventListenerIF
processEvent
in interface EventListenerIF