类 LocaleEditor
- java.lang.Object
- java.beans.PropertyEditorSupport
- org.springframework.beans.propertyeditors.LocaleEditor
- 所有已实现的接口:
PropertyEditor
public class LocaleEditor extends PropertyEditorSupport
Editor forjava.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.- 从以下版本开始:
- 26.05.2003
- 作者:
- Juergen Hoeller
- 另请参阅:
Locale
,StringUtils.parseLocaleString(java.lang.String)
构造器概要
构造器 构造器 说明 LocaleEditor()
构造器详细资料
LocaleEditor
public LocaleEditor()
方法详细资料
setAsText
public void setAsText(String text)
- 指定者:
setAsText
在接口中PropertyEditor
- 覆盖:
setAsText
在类中PropertyEditorSupport
getAsText
public String getAsText()
- 指定者:
getAsText
在接口中PropertyEditor
- 覆盖:
getAsText
在类中PropertyEditorSupport