public interface Converter extends PropertyEditor
| Modifier and Type | Method and Description |
|---|---|
Class |
getType()
Gets the the type of object supported by this converter.
|
Object |
toObject(String text)
Converts the supplied text in to an instance of the editor type.
|
String |
toString(Object value)
Converts the supplied object to text.
|
addPropertyChangeListener, getAsText, getCustomEditor, getJavaInitializationString, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setAsText, setValue, supportsCustomEditorClass getType()
String toString(Object value) throws PropertyEditorException
value - an instance of the editor typePropertyEditorException - if an error occurs while converting the value to a String (this is very rare)Object toObject(String text) throws PropertyEditorException
text - the text to convertPropertyEditorException - if an error occurs while converting the text to an objectCopyright © 2005–2022 The Apache Software Foundation. All rights reserved.