public abstract class AttributeMonitor<Atom>
extends java.lang.Object
| Constructor and Description |
|---|
AttributeMonitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributeMonitorListener(IAttributeMonitorListener<Atom> listener)
Registers a listener for notifications when a feature value of an object in a atom changes.
|
void |
dispose()
Disposes of the attribute monitor by unregistering from each atom.
|
protected void |
notifyListeners(Atom atom)
Sends notification to listeners when the given atom is updated.
|
abstract void |
registerFor(Atom atom)
Register the attribute monitor to watch feature values of object defined in the given atom.
|
void |
removeAttributeMonitorListener(IAttributeMonitorListener<Atom> listener)
Unregisters a listener registered by
addAttributeMonitorListener(IAttributeMonitorListener). |
abstract void |
unregisterFor(Atom atom)
Remove the attribute monitor from watching the given atom.
|
abstract void |
unregisterForAll()
Remove the attribute monitor from watching registered atoms.
|
public void addAttributeMonitorListener(IAttributeMonitorListener<Atom> listener)
The listener can be unregistered via
removeAttributeMonitorListener(IAttributeMonitorListener).
listener - public void removeAttributeMonitorListener(IAttributeMonitorListener<Atom> listener)
addAttributeMonitorListener(IAttributeMonitorListener).listener - public abstract void registerFor(Atom atom)
atom - public abstract void unregisterForAll()
public abstract void unregisterFor(Atom atom)
atom - protected void notifyListeners(Atom atom)
match - public void dispose()