click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r900128 - /incubator/click/trunk/click/extras/src/org/apache/click/extras/control/DateField.java
Date Sun, 17 Jan 2010 12:40:25 GMT
Author: sabob
Date: Sun Jan 17 12:40:24 2010
New Revision: 900128

URL: http://svn.apache.org/viewvc?rev=900128&view=rev
Log:
Use static pattern. CLK-610

Modified:
    incubator/click/trunk/click/extras/src/org/apache/click/extras/control/DateField.java

Modified: incubator/click/trunk/click/extras/src/org/apache/click/extras/control/DateField.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/org/apache/click/extras/control/DateField.java?rev=900128&r1=900127&r2=900128&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/org/apache/click/extras/control/DateField.java
(original)
+++ incubator/click/trunk/click/extras/src/org/apache/click/extras/control/DateField.java
Sun Jan 17 12:40:24 2010
@@ -135,6 +135,9 @@
 
     // -------------------------------------------------------------- Constants
 
+    /** The date default format pattern: "<tt>dd MMM yyyy</tt>". */
+    public static String defaultFormatPattern = "dd MMM yyyy";
+
     private static final long serialVersionUID = 1L;
 
     /** Supported locales. */
@@ -192,7 +195,7 @@
     public DateField(String name) {
         super(name);
         setAttribute("id", getName() + "_field");
-        setFormatPattern("dd MMM yyyy");
+        setFormatPattern(defaultFormatPattern);
     }
 
     /**
@@ -206,7 +209,7 @@
     public DateField(String name, String label) {
         super(name, label);
         setAttribute("id", getName() + "_field");
-        setFormatPattern("dd MMM yyyy");
+        setFormatPattern(defaultFormatPattern);
     }
 
     /**
@@ -234,7 +237,7 @@
     public DateField(String name, String label, boolean required) {
         super(name, label, required);
         setAttribute("id", getName() + "_field");
-        setFormatPattern("dd MMM yyyy");
+        setFormatPattern(defaultFormatPattern);
     }
 
     /**
@@ -270,7 +273,7 @@
      */
     public DateField() {
         super();
-        setFormatPattern("dd MMM yyyy");
+        setFormatPattern(defaultFormatPattern);
     }
 
     // ------------------------------------------------------ Public Attributes



Mime
View raw message