com.taco.data
Class WrappedObservableMap.WrappedObservableEntry

java.lang.Object
  extended by com.taco.data.WrappedKeyValueMap.WrappedEntry
      extended by com.taco.data.WrappedObservableMap.WrappedObservableEntry
All Implemented Interfaces:
INoReturnMap.INoReturnEntry, INoReturnObservableMap.INoReturnObservableEntry, IObservableMap.IObservableEntry, java.util.Map.Entry
Enclosing class:
WrappedObservableMap

protected class WrappedObservableMap.WrappedObservableEntry
extends WrappedKeyValueMap.WrappedEntry
implements INoReturnObservableMap.INoReturnObservableEntry

Represents a map entry in the entry set. This class wraps a map entry in the storage map.


Field Summary
protected  INoReturnObservableMap.INoReturnObservableEntry _observableEntry
          The entry in the storage map that this instance wraps.
 
Fields inherited from class com.taco.data.WrappedKeyValueMap.WrappedEntry
_innerEntry
 
Constructor Summary
WrappedObservableMap.WrappedObservableEntry(INoReturnObservableMap.INoReturnObservableEntry innerEntry)
           
 
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)
           
 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.
 void setValueNoReturn(java.lang.Object value)
           
 void setValueNoReturn(java.lang.Object value, boolean notifyListeners)
          Set the value and notify listeners of the change if notifyListeners is true.
 void setValueNoReturn(java.lang.Object value, IObjectFilter listenerFilter)
          Set the value and notify listeners that are accepted by the filter of the change.
 
Methods inherited from class com.taco.data.WrappedKeyValueMap.WrappedEntry
getKey, getValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map.Entry
equals, getKey, getValue, hashCode
 
Methods inherited from interface java.util.Map.Entry
equals, getKey, getValue, hashCode
 

Field Detail

_observableEntry

protected INoReturnObservableMap.INoReturnObservableEntry _observableEntry
The entry in the storage map that this instance wraps.

Constructor Detail

WrappedObservableMap.WrappedObservableEntry

public WrappedObservableMap.WrappedObservableEntry(INoReturnObservableMap.INoReturnObservableEntry innerEntry)
Method Detail

setValue

public java.lang.Object setValue(java.lang.Object value)
Specified by:
setValue in interface java.util.Map.Entry
Overrides:
setValue in class WrappedKeyValueMap.WrappedEntry

setValue

public java.lang.Object setValue(java.lang.Object value,
                                 boolean notifyListeners)
Description copied from interface: IObservableMap.IObservableEntry
Set the value and notify listeners of the change if notifyListeners is true.

Specified by:
setValue in interface IObservableMap.IObservableEntry

setValue

public java.lang.Object setValue(java.lang.Object value,
                                 IObjectFilter listenerFilter)
Description copied from interface: IObservableMap.IObservableEntry
Set the value and notify listeners that are accepted by the filter of the change.

Specified by:
setValue in interface IObservableMap.IObservableEntry

setValueNoReturn

public void setValueNoReturn(java.lang.Object value)
Specified by:
setValueNoReturn in interface INoReturnMap.INoReturnEntry
Overrides:
setValueNoReturn in class WrappedKeyValueMap.WrappedEntry

setValueNoReturn

public void setValueNoReturn(java.lang.Object value,
                             boolean notifyListeners)
Description copied from interface: INoReturnObservableMap.INoReturnObservableEntry
Set the value and notify listeners of the change if notifyListeners is true.

Specified by:
setValueNoReturn in interface INoReturnObservableMap.INoReturnObservableEntry

setValueNoReturn

public void setValueNoReturn(java.lang.Object value,
                             IObjectFilter listenerFilter)
Description copied from interface: INoReturnObservableMap.INoReturnObservableEntry
Set the value and notify listeners that are accepted by the filter of the change.

Specified by:
setValueNoReturn in interface INoReturnObservableMap.INoReturnObservableEntry

addListener

public void addListener(java.beans.PropertyChangeListener listener)
Description copied from interface: IObservableMap.IObservableEntry
Add listener to the list of listeners to notify when the value of this entry is changed.

Specified by:
addListener in interface IObservableMap.IObservableEntry

removeListener

public void removeListener(java.beans.PropertyChangeListener listener)
Description copied from interface: IObservableMap.IObservableEntry
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.

Specified by:
removeListener in interface IObservableMap.IObservableEntry

getListeners

public java.util.Collection getListeners()
Description copied from interface: IObservableMap.IObservableEntry
Return a copy of the collection of listeners of changes to values of this entry.

Specified by:
getListeners in interface IObservableMap.IObservableEntry

setListeners

public void setListeners(java.util.Collection listeners)
Description copied from interface: IObservableMap.IObservableEntry
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.

Specified by:
setListeners in interface IObservableMap.IObservableEntry