public class ClassArrayEditor extends PropertyEditorSupport
Classes
, to enable
the direct population of a Class[]
property without having to
use a String
class name property as bridge.
Also supports "java.lang.String[]"-style array class names, in contrast
to the standard Class.forName(String)
method.
Constructor and Description |
---|
ClassArrayEditor()
Create a default
ClassEditor , using the thread
context ClassLoader . |
ClassArrayEditor(ClassLoader classLoader)
Create a default
ClassArrayEditor , using the given
ClassLoader . |
Modifier and Type | Method and Description |
---|---|
String |
getAsText() |
void |
setAsText(String text) |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
public ClassArrayEditor()
ClassEditor
, using the thread
context ClassLoader
.public ClassArrayEditor(ClassLoader classLoader)
ClassArrayEditor
, using the given
ClassLoader
.classLoader
- the ClassLoader
to use
(or pass null
for the thread context ClassLoader
)public void setAsText(String text) throws IllegalArgumentException
setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport
IllegalArgumentException
public String getAsText()
getAsText
in interface PropertyEditor
getAsText
in class PropertyEditorSupport