Revision: 850
http://stripes.svn.sourceforge.net/stripes/?rev=850&view=rev
Author: javelotinfo
Date: 2008-02-08 07:15:28 -0800 (Fri, 08 Feb 2008)
Log Message:
-----------
Added getters in NumberFormatter for formatPattern, formatType and locale
Modified Paths:
--------------
trunk/stripes/src/net/sourceforge/stripes/format/NumberFormatter.java
Modified: trunk/stripes/src/net/sourceforge/stripes/format/NumberFormatter.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/format/NumberFormatter.java
2008-02-08 14:59:39 UTC (rev 849)
+++ trunk/stripes/src/net/sourceforge/stripes/format/NumberFormatter.java
2008-02-08 15:15:28 UTC (rev 850)
@@ -66,16 +66,31 @@
this.formatType = formatType;
}
+ /** Gets the format type to be used to render numbers as Strings. */
+ public String getFormatType() {
+ return formatType;
+ }
+
/** Sets the named format string or number format pattern to use to format
the number. */
public void setFormatPattern(String formatPattern) {
this.formatPattern = formatPattern;
}
+ /** Gets the named format string or number format pattern to use to format
the number. */
+ public String getFormatPattern() {
+ return formatPattern;
+ }
+
/** Sets the locale that output String should be in. */
public void setLocale(Locale locale) {
this.locale = locale;
}
+ /** Gets the locale that output String should be in. */
+ public Locale getLocale() {
+ return locale;
+ }
+
/** Instantiates the NumberFormat based on the information provided
through setter methods. */
public void init() {
// Set some sensible defaults if things are null
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development