public class PropertiesEditor extends PropertyEditorSupport
PropertyEditor for Properties objects.
Handles conversion from content String to Properties object.
Also handles Map to Properties conversion, for populating
a Properties object via XML "map" entries.
The required format is defined in the standard Properties
documentation. Each property must be on a new line.
Properties.load(java.io.Reader)| Constructor and Description |
|---|
PropertiesEditor() |
| Modifier and Type | Method and Description |
|---|---|
void |
setAsText(String text)
Convert
String into Properties, considering it as
properties content. |
void |
setValue(Object value)
|
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditorpublic void setAsText(@Nullable String text) throws IllegalArgumentException
String into Properties, considering it as
properties content.setAsText in interface PropertyEditorsetAsText in class PropertyEditorSupporttext - the text to be so convertedIllegalArgumentExceptionpublic void setValue(Object value)
setValue in interface PropertyEditorsetValue in class PropertyEditorSupport