|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.taco.text.CompositeConverter.AbstractCompositeUpdater
protected abstract static class CompositeConverter.AbstractCompositeUpdater
A useful base class for a listener that updates a composite when the value corresponding to an argument map key changes.
Field Summary | |
---|---|
protected java.lang.Object |
_composite
The composite object to update. |
protected IObjectMapper |
_fromMapValueConverter
The converter from argument map values to composite property values. |
protected boolean |
_inPropertyChange
A flag that indicates we have entered propertyChange()
already; detects infinite recursion. |
protected java.lang.String |
_propertyName
The name of the property to update. |
Constructor Summary | |
---|---|
CompositeConverter.AbstractCompositeUpdater(java.lang.Object composite,
java.lang.String propertyName,
IObjectMapper fromMapValueConverter)
|
Method Summary | |
---|---|
protected java.lang.Object |
_makePropertyValue(java.lang.Object mapValue)
If there is a property value converter, convert mapValue to the property value, and return the result. |
java.lang.Object |
getComposite()
Return the composite that this instance updates. |
java.lang.String |
getPropertyName()
Return property name of composite that this instance updates. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.beans.PropertyChangeListener |
---|
propertyChange |
Field Detail |
---|
protected final java.lang.Object _composite
protected final java.lang.String _propertyName
protected final IObjectMapper _fromMapValueConverter
protected transient boolean _inPropertyChange
propertyChange()
already; detects infinite recursion.
Constructor Detail |
---|
public CompositeConverter.AbstractCompositeUpdater(java.lang.Object composite, java.lang.String propertyName, IObjectMapper fromMapValueConverter)
Method Detail |
---|
public java.lang.Object getComposite()
CompositeConverter.ICompositeUpdater
getComposite
in interface CompositeConverter.ICompositeUpdater
public java.lang.String getPropertyName()
CompositeConverter.ICompositeUpdater
getPropertyName
in interface CompositeConverter.ICompositeUpdater
protected java.lang.Object _makePropertyValue(java.lang.Object mapValue)
mapValue
to the property value, and return the result.
Otherwise, return mapValue
unchanged.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |