public abstract class AbstractPropertyEditor extends PropertyEditorSupport implements ExtendedPropertyEditor
Constructor and Description |
---|
AbstractPropertyEditor() |
Modifier and Type | Method and Description |
---|---|
String |
getAsText() |
protected String |
getAsTextInternal() |
String |
getFormat() |
String |
getFormattedValue() |
protected Object |
getValueInternal() |
protected ValueConversionException |
illegalValue(Object value,
Class<?> klass) |
protected ValueConversionException |
illegalValue(Object value,
Class<?> klass,
Exception e) |
protected Formatter<?> |
resolveFormatter() |
void |
setAsText(String str) |
protected void |
setAsTextInternal(String str) |
void |
setFormat(String format) |
void |
setFormattedValue(String value) |
void |
setValue(Object value) |
protected void |
setValueInternal(Object value) |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor
@Nullable public String getFormat()
getFormat
in interface ExtendedPropertyEditor
public void setFormat(@Nullable String format)
setFormat
in interface ExtendedPropertyEditor
public String getAsText()
getAsText
in interface PropertyEditor
getAsText
in class PropertyEditorSupport
public void setAsText(String str) throws IllegalArgumentException
setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport
IllegalArgumentException
public void setValue(Object value)
setValue
in interface PropertyEditor
setValue
in class PropertyEditorSupport
protected void setValueInternal(Object value)
protected Object getValueInternal()
protected void setAsTextInternal(String str) throws IllegalArgumentException
IllegalArgumentException
protected String getAsTextInternal()
public String getFormattedValue()
getFormattedValue
in interface ExtendedPropertyEditor
public void setFormattedValue(String value)
setFormattedValue
in interface ExtendedPropertyEditor
protected Formatter<?> resolveFormatter()
protected ValueConversionException illegalValue(Object value, Class<?> klass)
protected ValueConversionException illegalValue(Object value, Class<?> klass, Exception e)