Class LocaleEditor

  • All Implemented Interfaces:
    java.beans.PropertyEditor, PropertyEditor<java.util.Locale>

    public class LocaleEditor
    extends PropertyEditorSupport<java.util.Locale>
    Locale editor.
    • Constructor Detail

      • LocaleEditor

        public LocaleEditor()
    • Method Detail

      • setAsText

        public void setAsText​(java.lang.String text)
        Description copied from interface: PropertyEditor
        Set the property value by parsing a given String. May raise java.lang.IllegalArgumentException if either the String is badly formatted or if this kind of property can't be expressed as text.
        Specified by:
        setAsText in interface java.beans.PropertyEditor
        Specified by:
        setAsText in interface PropertyEditor<java.util.Locale>
        Specified by:
        setAsText in class PropertyEditorSupport<java.util.Locale>
        Parameters:
        text - The string to be parsed.
      • parseLocaleString

        private static java.util.Locale parseLocaleString​(java.lang.String localeString)
      • trimLeadingWhitespace

        private static java.lang.String trimLeadingWhitespace​(java.lang.String substring)
        Parameters:
        substring -
        Returns: