org.springframework.beans.propertyeditors
Class LocaleEditor

java.lang.Object
  extended byjava.beans.PropertyEditorSupport
      extended byorg.springframework.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)


Copyright (C) 2003-2004 The Spring Framework Project.