Revision: 1139
          http://stripes.svn.sourceforge.net/stripes/?rev=1139&view=rev
Author:   fdaoud
Date:     2009-09-15 02:10:08 +0000 (Tue, 15 Sep 2009)

Log Message:
-----------
Fix for STS-704

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 
2009-08-22 02:23:12 UTC (rev 1138)
+++ trunk/stripes/src/net/sourceforge/stripes/format/DateFormatter.java 
2009-09-15 02:10:08 UTC (rev 1139)
@@ -140,6 +140,22 @@
         }
     }
 
+    /**
+     * Gets the date format that will format the date. Subclasses that wish to 
alter the date format
+     * should override init(), call super.init(), and then obtain the date 
format object.
+     */
+    public DateFormat getDateFormat() {
+        return this.format;
+    }
+
+    /**
+     * Sets the date format that will format the date. Subclasses that wish to 
set the date format
+     * should override init() and then set the date format object.
+     */
+    public void setDateFormat(DateFormat dateFormat) {
+        this.format = format;
+    }
+
     /** Formats a Date as a String using the rules supplied when the formatter 
was built. */
     public String format(Date input) {
         return this.format.format(input);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to