public class ConvertingPropertyEditorAdapter extends 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 |
---|---|
String |
getAsText() |
void |
setAsText(String text) |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
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(String text) throws IllegalArgumentException
setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport
IllegalArgumentException
public String getAsText()
getAsText
in interface PropertyEditor
getAsText
in class PropertyEditorSupport