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) throws java.lang.Exception
toObject
in class StringToObject
java.lang.Exception
protected java.lang.String toString(java.lang.Object object) throws java.lang.Exception
toString
in class StringToObject
java.lang.Exception