NumberConstantsImpl class
NumberConstantsImpl class encapsulate a collection of Number formatting symbols for use with Number format and parse services. This class extends GWT's Constants class. The actual symbol collections are defined in a set of property files named like "NumberConstants_xx.properties". GWT will will perform late binding to the property file that specific to user's locale.
class NumberConstantsImpl implements Constants, NumberConstants { String notANumber() { return "NaN"; } String currencyPattern() { return "\$#,##0.00;(\$#,##0.00)"; } String decimalPattern() { return "#,##0.###"; } String decimalSeparator() { return "."; } String defCurrencyCode() { return "USD"; } String exponentialSymbol() { return "E"; } String globalCurrencyPattern() { return "\$\$\$\$#,##0.00 \$\$;(\$\$\$\$#,##0.00 \$\$)"; } String groupingSeparator() { return ","; } String infinity() { return new String.fromCharCodes([0x221E]); } String minusSign() { return "-"; } String monetaryGroupingSeparator() { return ","; } String monetarySeparator() { return "."; } String percent() { return "%"; } String percentPattern() { return "#,##0%"; } String perMill() { return new String.fromCharCodes([0x2030]); } String plusSign() { return "+"; } String scientificPattern() { return "#E0"; } String simpleCurrencyPattern() { return "\$\$\$\$#,##0.00;(\$\$\$\$#,##0.00)"; } String zeroDigit() { return "0"; } }
Implements
Methods
String currencyPattern() #
String currencyPattern() { return "\$#,##0.00;(\$#,##0.00)"; }
String decimalPattern() #
String decimalPattern() { return "#,##0.###"; }
String decimalSeparator() #
String decimalSeparator() { return "."; }
String defCurrencyCode() #
String defCurrencyCode() { return "USD"; }
String exponentialSymbol() #
String exponentialSymbol() { return "E"; }
String globalCurrencyPattern() #
String globalCurrencyPattern() { return "\$\$\$\$#,##0.00 \$\$;(\$\$\$\$#,##0.00 \$\$)"; }
String groupingSeparator() #
String groupingSeparator() { return ","; }
String infinity() #
String infinity() { return new String.fromCharCodes([0x221E]); }
String minusSign() #
String minusSign() { return "-"; }
String monetaryGroupingSeparator() #
String monetaryGroupingSeparator() { return ","; }
String monetarySeparator() #
String monetarySeparator() { return "."; }
String notANumber() #
String notANumber() { return "NaN"; }
String percent() #
String percent() { return "%"; }
String percentPattern() #
String percentPattern() { return "#,##0%"; }
String perMill() #
String perMill() { return new String.fromCharCodes([0x2030]); }
String plusSign() #
String plusSign() { return "+"; }
String scientificPattern() #
String scientificPattern() { return "#E0"; }
String simpleCurrencyPattern() #
String simpleCurrencyPattern() { return "\$\$\$\$#,##0.00;(\$\$\$\$#,##0.00)"; }
String zeroDigit() #
String zeroDigit() { return "0"; }