_valueLocale       = null; _valueDateFormat   = null; _valueTimeFormat   = null; _valueNumberFormat = null;
_valueLocale = null; setValueDateFormat(null); setValueTimeFormat(null); setValueNumberFormat(null);
    public void setValueLocale(String localeStr)    {        if (localeStr != null)        {            int    sepPos   = localeStr.indexOf('_');            String language = null;            String country  = null;            String variant  = null;            if (sepPos > 0)            {                language = localeStr.substring(0, sepPos);                country  = localeStr.substring(sepPos + 1);                sepPos   = country.indexOf('_');                if (sepPos > 0)                {                    variant = country.substring(sepPos + 1);                    country = country.substring(0, sepPos);                }            }            else            {                language = localeStr;            }            if (language != null)            {                Locale locale = null;                    if (variant != null)                {                    locale = new Locale(language, country, variant);                }                else if (country != null)                {                    locale = new Locale(language, country);                }                else                {                    locale = new Locale(language);                }                _valueLocale       = localeStr;                _valueDateFormat   = DateFormat.getDateInstance(DateFormat.SHORT, locale);                _valueTimeFormat   = DateFormat.getTimeInstance(DateFormat.SHORT, locale);                _valueNumberFormat = NumberFormat.getNumberInstance(locale);                return;            }        }        _valueLocale       = null;        _valueDateFormat   = null;        _valueTimeFormat   = null;        _valueNumberFormat = null;    }