public class EnumEditor extends AbstractPropertyEditor
Constructor and Description |
---|
EnumEditor(Class enumType)
Creates a new EnumEditor instance
|
Modifier and Type | Method and Description |
---|---|
protected String |
toText(Object value)
Returns a String representation of the given value
|
protected Object |
toValue(String text)
Returns an instance from a String representation of an object
|
defaultText, defaultValue, getAsText, getValue, setAsText, setTrimText, setValue
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor
public EnumEditor(Class enumType)
enumType
- The type of Enumprotected String toText(Object value)
toText
in class AbstractPropertyEditor
value
- The valueprotected Object toValue(String text)
toValue
in class AbstractPropertyEditor
text
- The String representation to convertCopyright © 2004–2021 Apache MINA Project. All rights reserved.