com.taco.data
Interface IObservableMap.IObservableEntry

All Superinterfaces:
java.util.Map.Entry
All Known Subinterfaces:
INoReturnObservableMap.INoReturnObservableEntry
All Known Implementing Classes:
ObservableMap.EntrySet.ObservableEntry, WrappedObservableMap.WrappedObservableEntry
Enclosing interface:
IObservableMap

public static interface IObservableMap.IObservableEntry
extends java.util.Map.Entry

A map entry whose associated listeners can be modified. These entries are present in the collection returned by entrySet().


Method Summary
 void addListener(java.beans.PropertyChangeListener listener)
          Add listener to the list of listeners to notify when the value of this entry is changed.
 java.util.Collection getListeners()
          Return a copy of the collection of listeners of changes to values of this entry.
 void removeListener(java.beans.PropertyChangeListener listener)
          Remove listener from the list of listeners to notify when the value of this entry is changed.
 void setListeners(java.util.Collection listeners)
          Set the collection of listeners to be notified when the value of this entry is changed.
 java.lang.Object setValue(java.lang.Object value, boolean notifyListeners)
          Set the value and notify listeners of the change if notifyListeners is true.
 java.lang.Object setValue(java.lang.Object value, IObjectFilter listenerFilter)
          Set the value and notify listeners that are accepted by the filter of the change.
 
Methods inherited from interface java.util.Map.Entry
equals, getKey, getValue, hashCode, setValue
 

Method Detail

setValue

java.lang.Object setValue(java.lang.Object value,
                          boolean notifyListeners)
Set the value and notify listeners of the change if notifyListeners is true.


setValue

java.lang.Object setValue(java.lang.Object value,
                          IObjectFilter listenerFilter)
Set the value and notify listeners that are accepted by the filter of the change.


addListener

void addListener(java.beans.PropertyChangeListener listener)
Add listener to the list of listeners to notify when the value of this entry is changed.


removeListener

void removeListener(java.beans.PropertyChangeListener listener)
Remove listener from the list of listeners to notify when the value of this entry is changed. If listener is not on the list, fail silently.


getListeners

java.util.Collection getListeners()
Return a copy of the collection of listeners of changes to values of this entry.


setListeners

void setListeners(java.util.Collection listeners)
Set the collection of listeners to be notified when the value of this entry is changed. A copy of the argument collection is made so the user is free to modify it afterwards.