applications.basics
Class LocaleEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by applications.basics.LocaleEditor
All Implemented Interfaces:
java.beans.PropertyEditor

public class LocaleEditor
extends java.beans.PropertyEditorSupport

Property editor for locales.


Constructor Summary
LocaleEditor()
          Default LocaleEditor constructor.
 
Method Summary
 java.lang.String getAsText()
          Returnss the locale String as text.
 java.lang.String[] getTags()
          Returns the locale Strings.
 void setAsText(java.lang.String text)
          Sets the locale Strings as text and invokes setValue( locale ).
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, 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()
Default LocaleEditor constructor.

Method Detail

getTags

public java.lang.String[] getTags()
Returns the locale Strings.

Specified by:
getTags in interface java.beans.PropertyEditor
Overrides:
getTags in class java.beans.PropertyEditorSupport

setAsText

public void setAsText(java.lang.String text)
               throws java.lang.IllegalArgumentException
Sets the locale Strings as text and invokes setValue( locale ).

Specified by:
setAsText in interface java.beans.PropertyEditor
Overrides:
setAsText in class java.beans.PropertyEditorSupport
Throws:
java.lang.IllegalArgumentException

getAsText

public java.lang.String getAsText()
Returnss the locale String as text.

Specified by:
getAsText in interface java.beans.PropertyEditor
Overrides:
getAsText in class java.beans.PropertyEditorSupport