PropertyEditor
, Converter
ArrayConverter
, ArrayListEditor
, GenericCollectionConverter
, LinkedHashSetEditor
, LinkedListEditor
, ListEditor
, SetEditor
, SortedSetEditor
, TreeSetEditor
, VectorEditor
public abstract class AbstractCollectionConverter extends AbstractConverter
Constructor | Description |
---|---|
AbstractCollectionConverter(Class type) |
|
AbstractCollectionConverter(Class type,
PropertyEditor editor) |
Modifier and Type | Method | Description |
---|---|---|
protected abstract Object |
createCollection(List list) |
|
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, getCustomEditor, getJavaInitializationString, getTags, isPaintable, paintValue, removePropertyChangeListener, supportsCustomEditor
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor
public AbstractCollectionConverter(Class type)
public AbstractCollectionConverter(Class type, PropertyEditor editor)
protected final Object toObjectImpl(String text)
AbstractConverter
toObjectImpl
in class AbstractConverter
text
- the text to convertprotected final String toStringImpl(Object value)
AbstractConverter
toStringImpl
in class AbstractConverter
value
- an instance of the editor typeCopyright © 2005–2018. All rights reserved.