public class PropertyEditorConverter extends AbstractConverter
Constructor and Description |
---|
PropertyEditorConverter(Class<?> type) |
Modifier and Type | Method and Description |
---|---|
Object |
toObjectImpl(String text)
Converts the supplied text in to an instance of the editor type.
|
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 PropertyEditorConverter(Class<?> type)
public String toStringImpl(Object value) throws PropertyEditorException
AbstractConverter
toStringImpl
in class AbstractConverter
value
- an instance of the editor typePropertyEditorException
public Object toObjectImpl(String text) throws PropertyEditorException
AbstractConverter
toObjectImpl
in class AbstractConverter
text
- the text to convertPropertyEditorException
Copyright © 2005–2019. All rights reserved.