Class AbstractPropertyEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.apache.mina.integration.beans.AbstractPropertyEditor
- All Implemented Interfaces:
PropertyEditor
- Direct Known Subclasses:
ArrayEditor, BooleanEditor, CharacterEditor, ClassEditor, CollectionEditor, DateEditor, EnumEditor, FileEditor, InetAddressEditor, InetSocketAddressEditor, MapEditor, NullEditor, NumberEditor, PatternEditor, StringEditor, URIEditor, URLEditor, VmPipeAddressEditor
An abstract bi-directional
PropertyEditor.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected ObjectgetValue()voidprotected voidsetTrimText(boolean trimText) voidprotected abstract StringReturns a String representation of the given valueprotected abstract ObjectReturns an instance from a String representation of an objectMethods inherited from class PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor
-
Field Details
-
text
-
value
-
trimText
private boolean trimText
-
-
Constructor Details
-
AbstractPropertyEditor
public AbstractPropertyEditor()
-
-
Method Details
-
setTrimText
protected void setTrimText(boolean trimText) -
getAsText
- Specified by:
getAsTextin interfacePropertyEditor- Overrides:
getAsTextin classPropertyEditorSupport
-
getValue
- Specified by:
getValuein interfacePropertyEditor- Overrides:
getValuein classPropertyEditorSupport
-
setAsText
- Specified by:
setAsTextin interfacePropertyEditor- Overrides:
setAsTextin classPropertyEditorSupport
-
setValue
- Specified by:
setValuein interfacePropertyEditor- Overrides:
setValuein classPropertyEditorSupport
-
defaultText
- Returns:
- The default text
-
defaultValue
- Returns:
- The default value
-
toText
-
toValue
-