|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.taco.data.WrappedObservableMap.WrappedNotificationStrategy
protected static class WrappedObservableMap.WrappedNotificationStrategy
A notification strategy that wraps another one, used so that when the observable map notifies its listeners, the keys and values it sends to the listeners are suitably unwrapped (they are stored wrapped in the observable map).
Field Summary | |
---|---|
protected INotificationStrategy |
_decoratee
The notification strategy wrapped by this instance. |
protected IObjectMapper |
_keyUnwrapper
The key unwrapper. |
protected IObjectMapper |
_valueUnwrapper
The value unwrapper. |
Constructor Summary | |
---|---|
protected |
WrappedObservableMap.WrappedNotificationStrategy(INotificationStrategy decoratee,
IObjectMapper keyUnwrapper,
IObjectMapper valueUnwrapper)
Construct a new strategy by wrapping the argument strategy. |
Method Summary | |
---|---|
void |
notifyListeners(java.lang.Object source,
java.lang.Object key,
java.lang.Object oldValue,
java.lang.Object newValue,
java.util.Collection listeners,
IObjectFilter listenerFilter)
Create a new instance of PropertyChangeEvent by
unwrapping the key and values, then call
notifyListeners() with the event. |
void |
notifyListeners(java.beans.PropertyChangeEvent event,
java.util.Collection listeners,
IObjectFilter listenerFilter)
Notify the listeners using the wrapped strategy. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected INotificationStrategy _decoratee
protected IObjectMapper _keyUnwrapper
protected IObjectMapper _valueUnwrapper
Constructor Detail |
---|
protected WrappedObservableMap.WrappedNotificationStrategy(INotificationStrategy decoratee, IObjectMapper keyUnwrapper, IObjectMapper valueUnwrapper)
keyUnwrapper
or valueUnwrapper
is
null
, it will be set to the identity object wrapper.
Method Detail |
---|
public void notifyListeners(java.lang.Object source, java.lang.Object key, java.lang.Object oldValue, java.lang.Object newValue, java.util.Collection listeners, IObjectFilter listenerFilter)
PropertyChangeEvent
by
unwrapping the key and values, then call
notifyListeners()
with the event.
notifyListeners
in interface INotificationStrategy
public void notifyListeners(java.beans.PropertyChangeEvent event, java.util.Collection listeners, IObjectFilter listenerFilter)
notifyListeners
in interface INotificationStrategy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |