public class ArrayEditor extends AbstractPropertyEditor
PropertyEditor which converts a String into
a one-dimensional array and vice versa.| Constructor and Description |
|---|
ArrayEditor(Class<?> componentType)
Creates a new ArrayEditor 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, setValueaddPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditorpublic ArrayEditor(Class<?> componentType)
componentType - The component typeprotected String toText(Object value)
toText in class AbstractPropertyEditorvalue - The valueprotected Object toValue(String text) throws IllegalArgumentException
toValue in class AbstractPropertyEditortext - The String representation to convertIllegalArgumentExceptionCopyright © 2004–2023 Apache MINA Project. All rights reserved.