public interface IUpdateable extends Identifiable
The IUpdateable interface provides a single update operation that may be used by implementers to receive an update based on a key-value pair. This is used by ICEObjects, Components, Entries and other classes to receive updates from the Registry when values stored therein change. More generally it can be used by any class within ICE for receiving or posting updates.
Modifier and Type | Field and Description |
---|---|
static java.util.ArrayList<IUpdateableListener> |
iComponentListener |
Modifier and Type | Method and Description |
---|---|
void |
register(IUpdateableListener listener)
This operation registers a listener that realizes the IUpdateableListener
interface with the IUpdateable so that it can receive notifications of
changes to the IUpdateable if they are published.
|
void |
unregister(IUpdateableListener listener)
This operation unregisters a listener that realizes the
IUpdateableListener interface with the IUpdateable so that it will no
longer receive notifications of changes to the IUpdateable if they are
published.
|
void |
update(java.lang.String updatedKey,
java.lang.String newValue)
This operation notifies a class that has implemented IUpdateable that the
value associated with the particular key has been updated.
|
clone, equals, getDescription, getId, getName, hashCode, setDescription, setId, setName
static final java.util.ArrayList<IUpdateableListener> iComponentListener
void update(java.lang.String updatedKey, java.lang.String newValue)
This operation notifies a class that has implemented IUpdateable that the value associated with the particular key has been updated.
updatedKey
- A unique key that describes the value that to be updated.
newValue
- The updated value of the key.
void register(IUpdateableListener listener)
This operation registers a listener that realizes the IUpdateableListener interface with the IUpdateable so that it can receive notifications of changes to the IUpdateable if they are published.
listener
- The new listener that should be notified when the the Component's state changes.
void unregister(IUpdateableListener listener)
This operation unregisters a listener that realizes the IUpdateableListener interface with the IUpdateable so that it will no longer receive notifications of changes to the IUpdateable if they are published.
listener
- The listener that should no longer receive updates.