Formatter and PropertyEditor.
| Access | Constructor and Description |
|---|---|
| public | FormatterPropertyEditorAdapter(Formatter<?>
the formatter)Formatter to wrapCreate a new |
| Modifier and Type | Method and Description |
|---|---|
| public String | getAsText()
Overrides java. Implements java. Gets the property value as a string suitable for presentation to a human to edit. |
| public Class | |
| public void | setAsText(String
The string to be parsed. text)Overrides java. Implements java. Sets the property value by parsing a given String. |
| formatter | back to summary |
|---|---|
| private final Formatter<Object> formatter | |
| FormatterPropertyEditorAdapter | back to summary |
|---|---|
| public FormatterPropertyEditorAdapter(Formatter<?> formatter) Create a new
| |
| getAsText | back to summary |
|---|---|
| public String getAsText() Overrides java. Implements java. Doc from java. Gets the property value as a string suitable for presentation to a human to edit. | |
| getFieldType | back to summary |
|---|---|
| public Class Determine the
| |
| setAsText | back to summary |
|---|---|
| public void setAsText(String text) throws IllegalArgumentException Overrides java. Implements java. Doc from java. Sets the property value by parsing a given String. May raise java.lang.IllegalArgumentException if either the String is badly formatted or if this kind of property can't be expressed as text. | |