public class ConvertingPropertyEditorAdapter
extends java.beans.PropertyEditorSupport
PropertyEditor
for any given
ConversionService
and specific target type.Constructor and Description |
---|
ConvertingPropertyEditorAdapter(ConversionService conversionService,
TypeDescriptor targetDescriptor)
Create a new ConvertingPropertyEditorAdapter for a given
ConversionService
and the given target type. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAsText() |
void |
setAsText(java.lang.String text) |
public ConvertingPropertyEditorAdapter(ConversionService conversionService, TypeDescriptor targetDescriptor)
ConversionService
and the given target type.conversionService
- the ConversionService to delegate totargetDescriptor
- the target type to convert topublic void setAsText(java.lang.String text) throws java.lang.IllegalArgumentException
setAsText
in interface java.beans.PropertyEditor
setAsText
in class java.beans.PropertyEditorSupport
java.lang.IllegalArgumentException
public java.lang.String getAsText()
getAsText
in interface java.beans.PropertyEditor
getAsText
in class java.beans.PropertyEditorSupport