java.lang.Object
java.beans.PropertyEditorSupport
org.apache.geronimo.common.propertyeditor.ArrayPropertyEditorAdapter
- All Implemented Interfaces:
- java.beans.PropertyEditor
- public final class ArrayPropertyEditorAdapter
- extends java.beans.PropertyEditorSupport
Adapter for editing array types.
- Version:
- $Rev: 46019 $ $Date: 2004-09-14 02:56:06 -0700 (Tue, 14 Sep 2004) $
| Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
type
private java.lang.Class type
editor
private java.beans.PropertyEditor editor
ArrayPropertyEditorAdapter
public ArrayPropertyEditorAdapter(java.lang.Class type,
java.beans.PropertyEditor editor)
setAsText
public void setAsText(java.lang.String text)
- Description copied from class:
java.beans.PropertyEditorSupport
- Sets the value as text.
In this class, you cannot count on setAsText() doing
anything useful across implementations.
Implementation Note: In this
implementation it checks if the String is "null", and
if it is, sets the value to null, otherwise it throws
an IllegalArgumentException.
getAsText
public java.lang.String getAsText()
- Description copied from class:
java.beans.PropertyEditorSupport
- Gets the value as text.
In this class, you cannot count on getAsText() doing
anything useful, although in this implementation I
do toString().