public class CollectionEditor extends AbstractPropertyEditor
| Constructor and Description |
|---|
CollectionEditor(Class<?> elementType)
Creates a new CollectionEditor instance
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
defaultElement() |
protected Collection<Object> |
newCollection() |
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 CollectionEditor(Class<?> elementType)
elementType - The Element typeprotected final String toText(Object value)
toText in class AbstractPropertyEditorvalue - The valueprotected final Object toValue(String text) throws IllegalArgumentException
toValue in class AbstractPropertyEditortext - The String representation to convertIllegalArgumentExceptionprotected Collection<Object> newCollection()
protected Object defaultElement()
Copyright © 2004–2021 Apache MINA Project. All rights reserved.