public class LocaleEditor extends PropertyEditorSupport
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 alternative to underscores.
Locale,
StringUtils.parseLocaleString(java.lang.String)| Constructor and Description |
|---|
LocaleEditor() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAsText() |
void |
setAsText(String text) |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditorpublic void setAsText(String text)
setAsText in interface PropertyEditorsetAsText in class PropertyEditorSupportpublic String getAsText()
getAsText in interface PropertyEditorgetAsText in class PropertyEditorSupport