com.taco.data
Class DelayedResultObservableMap

java.lang.Object
  extended by java.util.AbstractMap
      extended by com.taco.data.AbstractNoReturnMap
          extended by com.taco.data.WrappedKeyValueMap
              extended by com.taco.data.WrappedObservableMap
                  extended by com.taco.data.DelayedResultObservableMap
All Implemented Interfaces:
IDelayedResultObservableMap, INoReturnMap, INoReturnObservableMap, IObservableMap, java.io.Serializable, java.lang.Cloneable, java.util.Map

public class DelayedResultObservableMap
extends WrappedObservableMap
implements IDelayedResultObservableMap

A useful type of WrappedObservableMap which is able to unwrap values that are instances of IDelayedResult. Though this is probably the type of map to use to facilate communication between non-GUI and GUI portions of applications, there are several caveats to be aware of when using this class:

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.taco.data.WrappedObservableMap
WrappedObservableMap.WrappedNotificationStrategy, WrappedObservableMap.WrappedObservableEntry, WrappedObservableMap.WrappedObservableEntryIterator, WrappedObservableMap.WrappedObservableEntrySet
 
Nested classes/interfaces inherited from class com.taco.data.WrappedKeyValueMap
WrappedKeyValueMap.WrappedEntry, WrappedKeyValueMap.WrappedEntryIterator, WrappedKeyValueMap.WrappedEntrySet
 
Nested classes/interfaces inherited from class com.taco.data.AbstractNoReturnMap
AbstractNoReturnMap.NoReturnEntry, AbstractNoReturnMap.NoReturnEntrySet, AbstractNoReturnMap.NoReturnIterator
 
Nested classes/interfaces inherited from interface com.taco.data.INoReturnObservableMap
INoReturnObservableMap.INoReturnObservableEntry
 
Nested classes/interfaces inherited from interface com.taco.data.INoReturnMap
INoReturnMap.INoReturnEntry
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry
 
Nested classes/interfaces inherited from interface com.taco.data.IObservableMap
IObservableMap.IObservableEntry
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry
 
Field Summary
 
Fields inherited from class com.taco.data.WrappedObservableMap
_observableMap
 
Fields inherited from class com.taco.data.WrappedKeyValueMap
_cachedEntrySet, _innerMap, _keyUnwrapper, _keyWrapper, _noReturnMap, _valueUnwrapper, _valueWrapper
 
Fields inherited from class com.taco.data.AbstractNoReturnMap
_cachedNoReturnEntrySet
 
Fields inherited from interface com.taco.data.IObservableMap
SINGLE_THREADED_STRATEGY
 
Constructor Summary
DelayedResultObservableMap()
          Create a new instance that uses the single-threaded notification strategy.
DelayedResultObservableMap(INotificationStrategy strategy)
          Create a new instance that uses the argument notification strategy.
 
Method Summary
static IDelayedResultObservableMap makeSynchronizedInstance(INotificationStrategy notificationStrategy)
          Create a new instance that uses the argument notification strategy, and return a synchronized proxy to it.
 void setNotificationStrategy(INotificationStrategy strategy)
          Wrap the argument strategy so that listeners are notified with the unwrapped keys and values.
 
Methods inherited from class com.taco.data.WrappedObservableMap
addPropertyChangeListener, clone, entrySet, getNotificationStrategy, getPropertyChangeListeners, put, put, put, putAll, putAll, putAll, putNoReturn, putNoReturn, putNoReturn, removePropertyChangeListener, setPropertyChangeListeners
 
Methods inherited from class com.taco.data.WrappedKeyValueMap
clear, entrySetNoReturn, get, isEmpty, remove, removeNoReturn, size
 
Methods inherited from class java.util.AbstractMap
containsKey, containsValue, equals, hashCode, keySet, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.taco.data.INoReturnObservableMap
putNoReturn, putNoReturn
 
Methods inherited from interface com.taco.data.INoReturnMap
entrySetNoReturn, putAll, putNoReturn, removeNoReturn
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, remove, size, values
 
Methods inherited from interface com.taco.data.IObservableMap
addPropertyChangeListener, getNotificationStrategy, getPropertyChangeListeners, put, put, put, putAll, putAll, putAll, removePropertyChangeListener, setPropertyChangeListeners
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, remove, size, values
 

Constructor Detail

DelayedResultObservableMap

public DelayedResultObservableMap()
Create a new instance that uses the single-threaded notification strategy. This is not thread-safe!


DelayedResultObservableMap

public DelayedResultObservableMap(INotificationStrategy strategy)
Create a new instance that uses the argument notification strategy.

Method Detail

setNotificationStrategy

public void setNotificationStrategy(INotificationStrategy strategy)
Wrap the argument strategy so that listeners are notified with the unwrapped keys and values.

Specified by:
setNotificationStrategy in interface IObservableMap
Overrides:
setNotificationStrategy in class WrappedObservableMap

makeSynchronizedInstance

public static final IDelayedResultObservableMap makeSynchronizedInstance(INotificationStrategy notificationStrategy)
Create a new instance that uses the argument notification strategy, and return a synchronized proxy to it.