public class FormatterPropertyEditorAdapter extends PropertyEditorSupport
Formatter
and PropertyEditor
.Constructor and Description |
---|
FormatterPropertyEditorAdapter(Formatter<?> formatter)
Create a new
FormatterPropertyEditorAdapter for the given Formatter . |
Modifier and Type | Method and Description |
---|---|
String |
getAsText() |
Class<?> |
getFieldType()
Determine the
Formatter -declared field type. |
void |
setAsText(String text) |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
public Class<?> getFieldType()
Formatter
-declared field type.Formatter
implementation
(never null
)IllegalArgumentException
- if the Formatter
-declared field type
cannot be inferredpublic 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