|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap
com.taco.data.AbstractNoReturnMap
com.taco.data.WrappedKeyValueMap
com.taco.data.WrappedObservableMap
com.taco.data.DelayedResultObservableMap
public class DelayedResultObservableMap
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:
getOldValue()
or getNewValue()
may trigger a
delayed evaluation. If the evaluation of the value by
getOldValue()
fails, getOldValue()
will return
null
, which may not be expected by listeners.
getNewValue()
has similar behavior.makeSynchronizedInstance()
. An instance safe for use with
Swing can be created with
com.taco.swinger.SwingInvokeProxyFactory.makeSwingInvokeProxyMap()
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 |
---|
public DelayedResultObservableMap()
public DelayedResultObservableMap(INotificationStrategy strategy)
Method Detail |
---|
public void setNotificationStrategy(INotificationStrategy strategy)
setNotificationStrategy
in interface IObservableMap
setNotificationStrategy
in class WrappedObservableMap
public static final IDelayedResultObservableMap makeSynchronizedInstance(INotificationStrategy notificationStrategy)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |