|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IObservableMap
A map that notifies listeners when its values are changed.
Nested Class Summary | |
---|---|
static interface |
IObservableMap.IObservableEntry
A map entry whose associated listeners can be modified. |
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry |
Field Summary | |
---|---|
static INotificationStrategy |
SINGLE_THREADED_STRATEGY
An instance of INotificationStrategy which notifies
all listeners in order using the same thread. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.lang.String key,
java.beans.PropertyChangeListener listener)
Add listener to the list of listeners to notify when the
value associated with key is changed. |
INotificationStrategy |
getNotificationStrategy()
Return the strategy used to notify listeners of key changes. |
java.util.Collection |
getPropertyChangeListeners(java.lang.String key)
Return a copy of the collection of listeners of changes to values associated with the argument key. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Put the key-value pair in the map. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value,
boolean notifyListeners)
Put the key-value pair in the map. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value,
IObjectFilter listenerFilter)
Put the key-value pair in the map. |
void |
putAll(java.util.Map source)
Copy all of the mappings from the specified map to this map. |
void |
putAll(java.util.Map source,
boolean notifyListeners)
Copy all of the mappings from the specified map to this map. |
void |
putAll(java.util.Map source,
IObjectFilter listenerFilter)
Copy all of the mappings from the specified map to this map. |
void |
removePropertyChangeListener(java.lang.String key,
java.beans.PropertyChangeListener listener)
Remove listener from the list of listeners to notify when
the value associated with key is changed. |
void |
setNotificationStrategy(INotificationStrategy strategy)
Set the strategy used to notify listeners of key changes. |
void |
setPropertyChangeListeners(java.lang.String key,
java.util.Collection listeners)
Set the collection of listeners to be notified when the value associated with key is changed. |
Methods inherited from interface java.util.Map |
---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, remove, size, values |
Field Detail |
---|
static final INotificationStrategy SINGLE_THREADED_STRATEGY
INotificationStrategy
which notifies
all listeners in order using the same thread.
Method Detail |
---|
java.lang.Object put(java.lang.Object key, java.lang.Object value)
put(key, value,
true)
.
put
in interface java.util.Map
java.lang.Object put(java.lang.Object key, java.lang.Object value, boolean notifyListeners)
notifyListeners
is
true
, notify all listeners for argument key of the change.
java.lang.Object put(java.lang.Object key, java.lang.Object value, IObjectFilter listenerFilter)
void putAll(java.util.Map source)
putAll(source, true)
.
putAll
in interface java.util.Map
void putAll(java.util.Map source, boolean notifyListeners)
notifyListeners
is true
, notify all listeners
of the affected keys of the changes.
void putAll(java.util.Map source, IObjectFilter listenerFilter)
notifyListeners
is true
, notify all listeners
of the affected keys that are accepted by the filter of the changes.
void addPropertyChangeListener(java.lang.String key, java.beans.PropertyChangeListener listener)
listener
to the list of listeners to notify when the
value associated with key
is changed.
void removePropertyChangeListener(java.lang.String key, java.beans.PropertyChangeListener listener)
listener
from the list of listeners to notify when
the value associated with key
is changed. If
listener
is not on the list, fail silently.
java.util.Collection getPropertyChangeListeners(java.lang.String key)
void setPropertyChangeListeners(java.lang.String key, java.util.Collection listeners)
key
is changed. If listeners
is null
, do not notify any listener. A copy of the
argument collection is made so the user is free to modify it
afterwards.
INotificationStrategy getNotificationStrategy()
void setNotificationStrategy(INotificationStrategy strategy)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |