public class EnumConverter extends AbstractConverter
Constructor and Description |
---|
EnumConverter(Class type) |
Modifier and Type | Method and Description |
---|---|
protected Object |
toObjectImpl(String text)
Converts the supplied text in to an instance of the editor type.
|
protected String |
toStringImpl(Object value)
Converts the supplied object to text.
|
getAsText, getType, getValue, setAsText, setValue, toObject, toString
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, getCustomEditor, getJavaInitializationString, getTags, isPaintable, paintValue, removePropertyChangeListener, supportsCustomEditor
public EnumConverter(Class type)
protected String toStringImpl(Object value)
AbstractConverter
toStringImpl
in class AbstractConverter
value
- an instance of the editor typeprotected Object toObjectImpl(String text)
AbstractConverter
toObjectImpl
in class AbstractConverter
text
- the text to convertCopyright © 2005–2019. All rights reserved.