public class GenericArrayPropertyEditor<T> extends PropertyEditorSupport<T>
PropertyEditorManager
. It is created at runtime in following
condition:
PropertyEditors
fetch methods is passed array type for which there is no editorPropertyEditors
or PropertyEditorManager
can access editor for Class.getComponentType()
.Constructor and Description |
---|
GenericArrayPropertyEditor(Class<T> initType) |
Modifier and Type | Method and Description |
---|---|
protected String |
encode(String[] v) |
String |
getAsText()
Gets the property value as text.
|
protected Class<?> |
getCellType() |
protected ArrayTokenizer |
getTokenizer() |
void |
setAsText(String text)
Set the property value by parsing a given String.
|
protected String[] |
tokenize(String text) |
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getType, getValue, removePropertyChangeListener, removePropertyChangeListener, setValue
firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, setSource, supportsCustomEditor
public void setAsText(String text) throws IllegalArgumentException
PropertyEditor
setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport<T>
text
- The string to be parsed.IllegalArgumentException
public String getAsText()
PropertyEditor
getAsText
in interface PropertyEditor
getAsText
in class PropertyEditorSupport<T>
Returns null if the value can't be expressed as an editable string.
If a non-null value is returned, then the PropertyEditor should be prepared to parse that string back in setAsText().
protected Class<?> getCellType()
protected ArrayTokenizer getTokenizer()
Copyright © 2014 JBoss by Red Hat. All rights reserved.