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, supportsCustomEditor
public void setAsText(String text)
setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport
public String getAsText()
getAsText
in interface PropertyEditor
getAsText
in class PropertyEditorSupport