public class FormatterPropertyEditorAdapter
extends java.beans.PropertyEditorSupport
Formatter
and PropertyEditor
.Modifier and Type | Field and Description |
---|---|
private Formatter<java.lang.Object> |
formatter |
Constructor and Description |
---|
FormatterPropertyEditorAdapter(Formatter<?> formatter)
Create a new
FormatterPropertyEditorAdapter for the given Formatter . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAsText() |
java.lang.Class<?> |
getFieldType()
Determine the
Formatter -declared field type. |
void |
setAsText(java.lang.String text) |
private final Formatter<java.lang.Object> formatter
public java.lang.Class<?> getFieldType()
Formatter
-declared field type.public 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