Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.geronimo.common.propertyeditor
Class ArrayPropertyEditorAdapter  view ArrayPropertyEditorAdapter download ArrayPropertyEditorAdapter.java

java.lang.Object
  extended byjava.beans.PropertyEditorSupport
      extended byorg.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) $

Field Summary
private  java.beans.PropertyEditor editor
           
private  java.lang.Class type
           
 
Fields inherited from class java.beans.PropertyEditorSupport
 
Constructor Summary
ArrayPropertyEditorAdapter(java.lang.Class type, java.beans.PropertyEditor editor)
           
 
Method Summary
 java.lang.String getAsText()
          Gets the value as text.
 void setAsText(java.lang.String text)
          Sets the value as text.
 
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
 

Field Detail

type

private java.lang.Class type

editor

private java.beans.PropertyEditor editor
Constructor Detail

ArrayPropertyEditorAdapter

public ArrayPropertyEditorAdapter(java.lang.Class type,
                                  java.beans.PropertyEditor editor)
Method Detail

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().