Revision: 1202
          http://stripes.svn.sourceforge.net/stripes/?rev=1202&view=rev
Author:   bengunter
Date:     2009-10-27 19:17:55 +0000 (Tue, 27 Oct 2009)

Log Message:
-----------
Applied fix for STS-704 from trunk

Modified Paths:
--------------
    branches/1.5.x/stripes/src/net/sourceforge/stripes/format/DateFormatter.java

Modified: 
branches/1.5.x/stripes/src/net/sourceforge/stripes/format/DateFormatter.java
===================================================================
--- 
branches/1.5.x/stripes/src/net/sourceforge/stripes/format/DateFormatter.java    
    2009-10-27 19:17:00 UTC (rev 1201)
+++ 
branches/1.5.x/stripes/src/net/sourceforge/stripes/format/DateFormatter.java    
    2009-10-27 19:17:55 UTC (rev 1202)
@@ -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(R) 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/devconference
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to