Revision: 849
          http://stripes.svn.sourceforge.net/stripes/?rev=849&view=rev
Author:   bengunter
Date:     2008-02-08 06:59:39 -0800 (Fri, 08 Feb 2008)

Log Message:
-----------
Fixed STS-506. Added getters for formatType, formatPattern, and locale to make 
life easier for those who wish to subclass DateFormatter.

Modified Paths:
--------------
    trunk/stripes/src/net/sourceforge/stripes/format/DateFormatter.java

Modified: trunk/stripes/src/net/sourceforge/stripes/format/DateFormatter.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/format/DateFormatter.java 
2008-02-08 14:37:29 UTC (rev 848)
+++ trunk/stripes/src/net/sourceforge/stripes/format/DateFormatter.java 
2008-02-08 14:59:39 UTC (rev 849)
@@ -70,16 +70,31 @@
         this.formatType = formatType;
     }
 
+    /** Gets the format type to be used to render dates as Strings. */
+    public String getFormatType() {
+        return formatType;
+    }
+
     /** Sets the named format string or date pattern to use to format the 
date. */
     public void setFormatPattern(String formatPattern) {
         this.formatPattern = formatPattern;
     }
 
+    /** Gets the named format string or date pattern to use to format the 
date. */
+    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;
+    }
+
     /**
      * Constructs the DateFormat used for formatting, based on the values 
passed to the
      * various setter methods on the class.  If the formatString is one of the 
named formats


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

Reply via email to