Package com.toedter.components
Class LocaleEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- com.toedter.components.LocaleEditor
-
- All Implemented Interfaces:
java.beans.PropertyEditor
public class LocaleEditor extends java.beans.PropertyEditorSupport
Property editor for locales.- Version:
- $LastChangedRevision: 85 $, $LastChangedDate: 2006-04-28 13:50:52 +0200 (Fr, 28 Apr 2006) $
- Author:
- Kai Toedter
-
-
Constructor Summary
Constructors Constructor Description LocaleEditor()
Default LocaleEditor constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAsText()
Returns 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 ).
-
-
-
Method Detail
-
getTags
public java.lang.String[] getTags()
Returns the locale strings.- Specified by:
getTags
in interfacejava.beans.PropertyEditor
- Overrides:
getTags
in classjava.beans.PropertyEditorSupport
- Returns:
- the locale strings
-
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 interfacejava.beans.PropertyEditor
- Overrides:
setAsText
in classjava.beans.PropertyEditorSupport
- Parameters:
text
- the locale string text- Throws:
java.lang.IllegalArgumentException
- not used
-
getAsText
public java.lang.String getAsText()
Returns the locale string as text.- Specified by:
getAsText
in interfacejava.beans.PropertyEditor
- Overrides:
getAsText
in classjava.beans.PropertyEditorSupport
- Returns:
- the locale string
-
-