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, supportsCustomEditor
protected void setTrimText(boolean trimText)
public String getAsText()
getAsText
in interface PropertyEditor
getAsText
in class PropertyEditorSupport
public Object getValue()
getValue
in interface PropertyEditor
getValue
in class PropertyEditorSupport
public void setAsText(String text)
setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport
public void setValue(Object value)
setValue
in interface PropertyEditor
setValue
in class PropertyEditorSupport
protected String defaultText()
protected Object defaultValue()
protected abstract String toText(Object value)
value
- The valueCopyright © 2004–2021 Apache MINA Project. All rights reserved.