public class LocaleEditor
extends java.beans.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 |
---|---|
java.lang.String |
getAsText() |
void |
setAsText(java.lang.String text) |
public void setAsText(java.lang.String text)
setAsText
in interface java.beans.PropertyEditor
setAsText
in class java.beans.PropertyEditorSupport
public java.lang.String getAsText()
getAsText
in interface java.beans.PropertyEditor
getAsText
in class java.beans.PropertyEditorSupport