com.interface21.beans.propertyeditors
Class LocaleEditor

java.lang.Object
  |
  +--java.beans.PropertyEditorSupport
        |
        +--com.interface21.beans.propertyeditors.LocaleEditor
All Implemented Interfaces:
java.beans.PropertyEditor

public class LocaleEditor
extends java.beans.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").

Since:
26.05.2003
Author:
Juergen Hoeller

Constructor Summary
LocaleEditor()
           
 
Method Summary
 void setAsText(java.lang.String text)
           
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setValue, supportsCustomEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocaleEditor

public LocaleEditor()
Method Detail

setAsText

public void setAsText(java.lang.String text)
Overrides:
setAsText in class java.beans.PropertyEditorSupport


Rod Johnson and Spring contributors 2001-2003.