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, supportsCustomEditorpublic 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 PropertyEditorsetAsText in class PropertyEditorSupportIllegalArgumentExceptionpublic String getAsText()
getAsText in interface PropertyEditorgetAsText in class PropertyEditorSupport