org.springframework.beans.propertyeditors
Class LocaleEditor

java.lang.Object
  |
  +--java.beans.PropertyEditorSupport
        |
        +--org.springframework.beans.propertyeditors.LocaleEditor

public class LocaleEditor
extends PropertyEditorSupport

Editor for java.util.Locale, to directly feed a Locale property. Expects the same syntax as Locale.toString, i.e. language + optionally country + optionally variant, separated by "_" (e.g. "en", "en_US").

Author:
Juergen Hoeller
Since: 26.05.2003

Method Summary
 voidsetAsText(String text)
           

Methods inherited from class java.beans.PropertyEditorSupport
firePropertyChange, isPaintable, supportsCustomEditor, getCustomEditor, addPropertyChangeListener, removePropertyChangeListener, getValue, setValue, getAsText, getJavaInitializationString, getTags, paintValue

Methods inherited from class java.lang.Object
hashCode, notify, notifyAll, wait, wait, wait, getClass, equals, toString

Method Detail

setAsText

public void setAsText(String text)