/** * Provides the standard currency format for the current locale using a * specified currency. * * @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 getCurrencyFormat(String currencyCode) { return getCurrencyFormat(lookupCurrency(currencyCode)); }
/** * Provides the global currency format for the current locale, using a * specified currency. * * @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 getGlobalCurrencyFormat(String currencyCode) { return getGlobalCurrencyFormat(lookupCurrency(currencyCode)); }
/** * Gets a custom <code>NumberFormat</code> instance for the default locale * using the specified pattern and currency code. * * @param pattern pattern for this formatter * @param currencyCode international currency code * @return a NumberFormat instance * @throws IllegalArgumentException if the specified pattern is invalid * or the currency code is unknown */ public static NumberFormat getFormat(String pattern, String currencyCode) { return new NumberFormat(pattern, lookupCurrency(currencyCode), true); }
/** * 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 global currency format for the current locale, using a * specified currency. * * @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 getGlobalCurrencyFormat(String currencyCode) { return getGlobalCurrencyFormat(lookupCurrency(currencyCode)); }
/** * Provides the standard currency format for the current locale using a * specified currency. * * @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 getCurrencyFormat(String currencyCode) { return getCurrencyFormat(lookupCurrency(currencyCode)); }
/** * Provides the standard currency format for the current locale using a * specified currency. * * @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 getCurrencyFormat(String currencyCode) { return getCurrencyFormat(lookupCurrency(currencyCode)); }
/** * Gets a custom <code>NumberFormat</code> instance for the default locale * using the specified pattern and currency code. * * @param pattern pattern for this formatter * @param currencyCode international currency code * @return a NumberFormat instance * @throws IllegalArgumentException if the specified pattern is invalid * or the currency code is unknown */ public static NumberFormat getFormat(String pattern, String currencyCode) { return new NumberFormat(pattern, lookupCurrency(currencyCode), true); }
/** * Provides the global currency format for the current locale, using a * specified currency. * * @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 getGlobalCurrencyFormat(String currencyCode) { return getGlobalCurrencyFormat(lookupCurrency(currencyCode)); }
/** * Gets a custom <code>NumberFormat</code> instance for the default locale * using the specified pattern and currency code. * * @param pattern pattern for this formatter * @param currencyCode international currency code * @return a NumberFormat instance * @throws IllegalArgumentException if the specified pattern is invalid * or the currency code is unknown */ public static NumberFormat getFormat(String pattern, String currencyCode) { return new NumberFormat(pattern, lookupCurrency(currencyCode), true); }
/** * 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)); }