/** * @return StringFormatter based on user request info * @deprecated 1.8.1 use {@link UIResults#getFormatter()}. */ public StringFormatter getFormatter() { if (formatter == null) { Locale l = locale; if (l == null) { l = Locale.getAvailableLocales()[0]; } ResourceBundle b = ResourceBundle.getBundle( UIResults.UI_RESOURCE_BUNDLE_NAME, l, new UTF8Control()); formatter = new StringFormatter(b, l); } return formatter; } /**
/** * @return StringFormatter based on user request info * @deprecated 1.8.1 use {@link UIResults#getFormatter()}. */ public StringFormatter getFormatter() { if (formatter == null) { Locale l = locale; if (l == null) { l = Locale.getAvailableLocales()[0]; } ResourceBundle b = ResourceBundle.getBundle( UIResults.UI_RESOURCE_BUNDLE_NAME, l, new UTF8Control()); formatter = new StringFormatter(b, l); } return formatter; } /**
/** * return StringFormatter set-up for locale of request being * processed. * <p>deprecation recalled 2014-05-06.</p> * @return StringFormatter localized to user request */ public StringFormatter getFormatter() { if (formatter == null) { ResourceBundle b = ResourceBundle.getBundle(UI_RESOURCE_BUNDLE_NAME, new UTF8Control()); formatter = new StringFormatter(b, getLocale()); } return formatter; }
/** * return StringFormatter set-up for locale of request being * processed. * <p>deprecation recalled 2014-05-06.</p> * @return StringFormatter localized to user request */ public StringFormatter getFormatter() { if (formatter == null) { ResourceBundle b = ResourceBundle.getBundle(UI_RESOURCE_BUNDLE_NAME, new UTF8Control()); formatter = new StringFormatter(b, getLocale()); } return formatter; }