org.apache.mina.integration.beans
Class AbstractPropertyEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.apache.mina.integration.beans.AbstractPropertyEditor
- All Implemented Interfaces:
- java.beans.PropertyEditor
- Direct Known Subclasses:
- ArrayEditor, BooleanEditor, CharacterEditor, ClassEditor, CollectionEditor, DateEditor, EnumEditor, FileEditor, InetAddressEditor, InetSocketAddressEditor, MapEditor, NullEditor, NumberEditor, PatternEditor, SerialAddressEditor, StringEditor, URIEditor, URLEditor, VmPipeAddressEditor
public abstract class AbstractPropertyEditor
- extends java.beans.PropertyEditorSupport
An abstract bi-directional PropertyEditor
.
- Author:
- Apache MINA Project
Method Summary |
protected java.lang.String |
defaultText()
|
protected java.lang.Object |
defaultValue()
|
java.lang.String |
getAsText()
|
java.lang.Object |
getValue()
|
void |
setAsText(java.lang.String text)
|
protected void |
setTrimText(boolean trimText)
|
void |
setValue(java.lang.Object value)
|
protected abstract java.lang.String |
toText(java.lang.Object value)
|
protected abstract java.lang.Object |
toValue(java.lang.String text)
|
Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractPropertyEditor
public AbstractPropertyEditor()
setTrimText
protected void setTrimText(boolean trimText)
getAsText
public java.lang.String getAsText()
- Specified by:
getAsText
in interface java.beans.PropertyEditor
- Overrides:
getAsText
in class java.beans.PropertyEditorSupport
getValue
public java.lang.Object getValue()
- Specified by:
getValue
in interface java.beans.PropertyEditor
- Overrides:
getValue
in class java.beans.PropertyEditorSupport
setAsText
public void setAsText(java.lang.String text)
throws java.lang.IllegalArgumentException
- Specified by:
setAsText
in interface java.beans.PropertyEditor
- Overrides:
setAsText
in class java.beans.PropertyEditorSupport
- Throws:
java.lang.IllegalArgumentException
setValue
public void setValue(java.lang.Object value)
- Specified by:
setValue
in interface java.beans.PropertyEditor
- Overrides:
setValue
in class java.beans.PropertyEditorSupport
defaultText
protected java.lang.String defaultText()
defaultValue
protected java.lang.Object defaultValue()
toText
protected abstract java.lang.String toText(java.lang.Object value)
toValue
protected abstract java.lang.Object toValue(java.lang.String text)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException