Author: [email protected]
Date: Mon Apr 27 15:50:59 2009
New Revision: 5287
Modified:
trunk/user/src/com/google/gwt/i18n/client/NumberFormat.java
Log:
Add protected accessors so more specific subclasses of NumberFormat can
access
parsed format values.
Patch by: mikeward
Review by: jat
Modified: trunk/user/src/com/google/gwt/i18n/client/NumberFormat.java
==============================================================================
--- trunk/user/src/com/google/gwt/i18n/client/NumberFormat.java (original)
+++ trunk/user/src/com/google/gwt/i18n/client/NumberFormat.java Mon Apr 27
15:50:59 2009
@@ -504,6 +504,34 @@
this(defaultNumberConstants, pattern, cdata, userSuppliedPattern);
}
+ protected NumberConstants getNumberConstants() {
+ return numberConstants;
+ }
+
+ protected String getPositivePrefix() {
+ return positivePrefix;
+ }
+
+ protected String getPositiveSuffix() {
+ return positiveSuffix;
+ }
+
+ protected String getNegativePrefix() {
+ return negativePrefix;
+ }
+
+ protected String getNegativeSuffix() {
+ return negativeSuffix;
+ }
+
+ protected int getGroupingSize() {
+ return groupingSize;
+ }
+
+ protected boolean isDecimalSeparatorAlwaysShown() {
+ return decimalSeparatorAlwaysShown;
+ }
+
/**
* This method formats a double to produce a string.
*
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---