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, supportsCustomEditor
public void setAsText(String text) throws IllegalArgumentException
String
into Properties
, considering it as
properties content.setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport
text
- the text to be so convertedIllegalArgumentException
public void setValue(Object value)
setValue
in interface PropertyEditor
setValue
in class PropertyEditorSupport