public abstract class AbstractPropertyEditor extends PropertyEditorSupport
PropertyEditor.| Constructor and Description |
|---|
AbstractPropertyEditor() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
defaultText() |
protected Object |
defaultValue() |
String |
getAsText() |
Object |
getValue() |
void |
setAsText(String text) |
protected void |
setTrimText(boolean trimText) |
void |
setValue(Object value) |
protected abstract String |
toText(Object value) |
protected abstract Object |
toValue(String text) |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditorprotected void setTrimText(boolean trimText)
public String getAsText()
getAsText in interface PropertyEditorgetAsText in class PropertyEditorSupportpublic Object getValue()
getValue in interface PropertyEditorgetValue in class PropertyEditorSupportpublic void setAsText(String text) throws IllegalArgumentException
setAsText in interface PropertyEditorsetAsText in class PropertyEditorSupportIllegalArgumentExceptionpublic void setValue(Object value)
setValue in interface PropertyEditorsetValue in class PropertyEditorSupportprotected String defaultText()
protected Object defaultValue()
protected abstract Object toValue(String text) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2004–2016. All rights reserved.