public class PropertyEditorConverter extends StringToObject
TwoWayConverter
interface.Constructor and Description |
---|
PropertyEditorConverter(java.beans.PropertyEditor propertyEditor,
java.lang.Class<?> targetClass)
Creates a new property editor converter.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
toObject(java.lang.String string,
java.lang.Class<?> targetClass) |
protected java.lang.String |
toString(java.lang.Object object) |
convertSourceToTargetClass, convertTargetToSourceClass, getSourceClass, getTargetClass
public PropertyEditorConverter(java.beans.PropertyEditor propertyEditor, java.lang.Class<?> targetClass)
propertyEditor
- the property editor to adapttargetClass
- the value class
this property editor converts to from stringprotected java.lang.Object toObject(java.lang.String string, java.lang.Class<?> targetClass)
toObject
in class StringToObject
protected java.lang.String toString(java.lang.Object object)
toString
in class StringToObject