org.apache.geronimo.common.propertyeditor
Class AbstractCollectionEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.apache.geronimo.common.propertyeditor.AbstractCollectionEditor
- All Implemented Interfaces:
- PropertyEditor
- Direct Known Subclasses:
- ArrayListEditor, CollectionEditor, HashSetEditor, LinkedListEditor, ListEditor, SetEditor, StackEditor, TreeSetEditor, VectorEditor
- public abstract class AbstractCollectionEditor
- extends PropertyEditorSupport
An abstract collection editor. Subclasses should provide the correct type of collection from
the createCollection method and should override setValue to check the type of the value.
- Version:
- $Rev: 356022 $ $Date: 2005-12-11 21:58:34 +0100 (Sun, 11 Dec 2005) $
Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setValue, supportsCustomEditor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractCollectionEditor
public AbstractCollectionEditor()
createCollection
protected abstract Collection createCollection()
- Concrete subclasses should implement this method to create the correct type of collection.
- Returns:
- an empty instance of the type of collection the subclass edits.
setAsText
public void setAsText(String text)
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.