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)
Returns a String representation of the given value
|
protected abstract Object |
toValue(String text)
Returns an instance from a String representation of an object
|
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)
setAsText in interface PropertyEditorsetAsText in class PropertyEditorSupportpublic void setValue(Object value)
setValue in interface PropertyEditorsetValue in class PropertyEditorSupportprotected String defaultText()
protected Object defaultValue()
protected abstract String toText(Object value)
value - The valueCopyright © 2004–2018 Apache MINA Project. All rights reserved.