|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.taco.text.CompositeConverter.AbstractMapConsistencyListener
protected abstract static class CompositeConverter.AbstractMapConsistencyListener
A useful base class for observable map updaters.
Field Summary | |
---|---|
protected INoReturnMap |
_argMap
The map to update. |
protected boolean |
_inChangeMethod
A flag that indicates we have already entered the method that responds to the change of one of the composite's properties. |
protected IObjectFilter |
_listenerFilter
A filter that rejects updater listeners that update the same property of the same composite. |
protected java.lang.Object |
_mapKey
The key of the argument map associated with the updated value. |
protected IObjectMapper |
_toMapValueConverter
The converter from the composite property value to the argument map value. |
Constructor Summary | |
---|---|
CompositeConverter.AbstractMapConsistencyListener(java.lang.Object composite,
java.lang.String propertyName,
INoReturnMap argMap,
java.lang.Object mapKey,
IObjectMapper toMapValueConverter)
|
Method Summary | |
---|---|
protected java.lang.Object |
_makeMapValue(java.lang.Object propertyValue)
If there is a map value converter, convert propertyValue to the map value, and return the result. |
protected void |
_put(java.lang.Object value)
Convert the value using _makeMapValue() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final INoReturnMap _argMap
protected final java.lang.Object _mapKey
protected final IObjectMapper _toMapValueConverter
protected final IObjectFilter _listenerFilter
protected transient boolean _inChangeMethod
Constructor Detail |
---|
public CompositeConverter.AbstractMapConsistencyListener(java.lang.Object composite, java.lang.String propertyName, INoReturnMap argMap, java.lang.Object mapKey, IObjectMapper toMapValueConverter)
Method Detail |
---|
protected void _put(java.lang.Object value) throws java.lang.Exception
_makeMapValue()
. Then put the
result in the argument map, notifying only listeners that are not
updaters.
java.lang.Exception
protected java.lang.Object _makeMapValue(java.lang.Object propertyValue) throws java.lang.Exception
propertyValue
to the map value, and return the result.
Otherwise, return propertyValue
unchanged.
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |