/** * Provides the simple currency format for the current locale using a * specified currency. Note that these formats may be ambiguous if the * currency isn't clear from other content on the page. * * @param currencyCode valid currency code, as defined in * com.google.gwt.i18n.client * .constants.CurrencyCodeMapConstants.properties * @return a <code>NumberFormat</code> capable of producing and consuming * currency format for the current locale * @throws IllegalArgumentException if the currency code is unknown */ public static NumberFormat getSimpleCurrencyFormat(String currencyCode) { return getSimpleCurrencyFormat(lookupCurrency(currencyCode)); }
/** * Provides the simple currency format for the current locale using its * default currency. Note that these formats may be ambiguous if the * currency isn't clear from other content on the page. * * @return a <code>NumberFormat</code> capable of producing and consuming * currency format for the current locale */ public static NumberFormat getSimpleCurrencyFormat() { return getSimpleCurrencyFormat(CurrencyList.get().getDefault()); }
/** * Provides the simple currency format for the current locale using a * specified currency. Note that these formats may be ambiguous if the * currency isn't clear from other content on the page. * * @param currencyCode valid currency code, as defined in * com.google.gwt.i18n.client * .constants.CurrencyCodeMapConstants.properties * @return a <code>NumberFormat</code> capable of producing and consuming * currency format for the current locale * @throws IllegalArgumentException if the currency code is unknown */ public static NumberFormat getSimpleCurrencyFormat(String currencyCode) { return getSimpleCurrencyFormat(lookupCurrency(currencyCode)); }
/** * Provides the simple currency format for the current locale using a * specified currency. Note that these formats may be ambiguous if the * currency isn't clear from other content on the page. * * @param currencyCode valid currency code, as defined in * com.google.gwt.i18n.client * .constants.CurrencyCodeMapConstants.properties * @return a <code>NumberFormat</code> capable of producing and consuming * currency format for the current locale * @throws IllegalArgumentException if the currency code is unknown */ public static NumberFormat getSimpleCurrencyFormat(String currencyCode) { return getSimpleCurrencyFormat(lookupCurrency(currencyCode)); }
/** * Provides the simple currency format for the current locale using its * default currency. Note that these formats may be ambiguous if the * currency isn't clear from other content on the page. * * @return a <code>NumberFormat</code> capable of producing and consuming * currency format for the current locale */ public static NumberFormat getSimpleCurrencyFormat() { return getSimpleCurrencyFormat(CurrencyList.get().getDefault()); }
/** * Provides the simple currency format for the current locale using its * default currency. Note that these formats may be ambiguous if the * currency isn't clear from other content on the page. * * @return a <code>NumberFormat</code> capable of producing and consuming * currency format for the current locale */ public static NumberFormat getSimpleCurrencyFormat() { return getSimpleCurrencyFormat(CurrencyList.get().getDefault()); }