java.util.Locale, to directly populate a Locale property.
Expects the same syntax as Locale's toString(), i.e. language +
optionally country + optionally variant, separated by "_" (e.g. "en", "en_US").
Also accepts spaces as separators, as an alternative to underscores.
java.util.Locale , org.springframework.util.StringUtils#parseLocaleString
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getAsText()
Overrides java. Implements java. |
| public void | setAsText(String
The string to be parsed. text)Overrides java. Implements java. |
| LocaleEditor | back to summary |
|---|---|
| public LocaleEditor() | |
| 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. | |
| setAsText | back to summary |
|---|---|
| public void setAsText(String text) 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. | |