click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r722868 - in /incubator/click/trunk/click: documentation/docs/ extras/src/net/sf/click/extras/control/
Date Wed, 03 Dec 2008 12:30:34 GMT
Author: sabob
Date: Wed Dec  3 04:30:33 2008
New Revision: 722868

URL: http://svn.apache.org/viewvc?rev=722868&view=rev
Log:
Added constructors which accepts size attribute. CLK-475

Modified:
    incubator/click/trunk/click/documentation/docs/roadmap-changes.html
    incubator/click/trunk/click/extras/src/net/sf/click/extras/control/DateField.java
    incubator/click/trunk/click/extras/src/net/sf/click/extras/control/DoubleField.java
    incubator/click/trunk/click/extras/src/net/sf/click/extras/control/EmailField.java
    incubator/click/trunk/click/extras/src/net/sf/click/extras/control/IntegerField.java
    incubator/click/trunk/click/extras/src/net/sf/click/extras/control/LongField.java
    incubator/click/trunk/click/extras/src/net/sf/click/extras/control/NumberField.java
    incubator/click/trunk/click/extras/src/net/sf/click/extras/control/RegexField.java
    incubator/click/trunk/click/extras/src/net/sf/click/extras/control/TelephoneField.java

Modified: incubator/click/trunk/click/documentation/docs/roadmap-changes.html
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/documentation/docs/roadmap-changes.html?rev=722868&r1=722867&r2=722868&view=diff
==============================================================================
--- incubator/click/trunk/click/documentation/docs/roadmap-changes.html (original)
+++ incubator/click/trunk/click/documentation/docs/roadmap-changes.html Wed Dec  3 04:30:33
2008
@@ -55,7 +55,7 @@
 <h2>Changes</h2>
 
 <dl>
-  <dt><a name="1.5.1"></a><a name="stable-release" href="#"></a><div
class="release-header">Latest Stable Release - Version 1.5.1 - ??? November 2008</div></dt>
+  <dt><a name="1.5.1"></a><a name="stable-release" href="#"></a><div
class="release-header">Latest Stable Release - Version 1.5.1 - ??? December 2008</div></dt>
   <dd>
     <div style="margin-left:-2em;margin-bottom:1em;">
       <b>IMPORTANT</b> be sure to read the <a href="#1.5-upgrade-path">upgrade
path</a> when upgrading from Click 1.4 or earlier.
@@ -69,6 +69,11 @@
         [<a target='blank' href="http://www.avoka.com/jira/browse/CLK-473">473</a>].
       </li>
       <li class="change">
+        Added new constructors to extra controls which accepts the <tt>size</tt>
+        attribute
+        [<a target='blank' href="http://www.avoka.com/jira/browse/CLK-475">475</a>].
+      </li>
+      <li class="change">
         Fixed WebappLoader to reload Velocity global macro's
         [<a target='blank' href="http://www.avoka.com/jira/browse/CLK-467">467</a>].
       </li>

Modified: incubator/click/trunk/click/extras/src/net/sf/click/extras/control/DateField.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/net/sf/click/extras/control/DateField.java?rev=722868&r1=722867&r2=722868&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/net/sf/click/extras/control/DateField.java (original)
+++ incubator/click/trunk/click/extras/src/net/sf/click/extras/control/DateField.java Wed
Dec  3 04:30:33 2008
@@ -183,7 +183,6 @@
         setRequired(required);
     }
 
-
     /**
      * Construct the Date Field with the given name, label and required status.
      * <p/>
@@ -200,7 +199,33 @@
     }
 
     /**
-     * Create a date field with no name defined.
+     * Construct the Date Field with the given name, label and size.
+     *
+     * @param name the name of the field
+     * @param label the label of the field
+     * @param size the size of the field
+     */
+    public DateField(String name, String label, int size) {
+        this(name, label);
+        setSize(size);
+    }
+
+    /**
+     * Construct the Date Field with the given name, label, size and
+     * required status.
+     *
+     * @param name the name of the field
+     * @param label the label of the field
+     * @param size the size of the field
+     * @param required the field required status
+     */
+    public DateField(String name, String label, int size, boolean required) {
+        this(name, label, required);
+        setSize(size);
+    }
+
+    /**
+     * Create a Date Field with no name defined.
      * <p/>
      * <b>Please note</b> the control's name must be defined before it is valid.
      */

Modified: incubator/click/trunk/click/extras/src/net/sf/click/extras/control/DoubleField.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/net/sf/click/extras/control/DoubleField.java?rev=722868&r1=722867&r2=722868&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/net/sf/click/extras/control/DoubleField.java (original)
+++ incubator/click/trunk/click/extras/src/net/sf/click/extras/control/DoubleField.java Wed
Dec  3 04:30:33 2008
@@ -109,6 +109,32 @@
     }
 
     /**
+     * Construct the DoubleField with the given name, label and size.
+     *
+     * @param name the name of the field
+     * @param label the label of the field
+     * @param size the size of the field
+     */
+    public DoubleField(String name, String label, int size) {
+        this(name, label);
+        setSize(size);
+    }
+
+    /**
+     * Construct the DoubleField with the given name, label, size and
+     * required status.
+     *
+     * @param name the name of the field
+     * @param label the label of the field
+     * @param size the size of the field
+     * @param required the field required status
+     */
+    public DoubleField(String name, String label, int size, boolean required) {
+        this(name, label, required);
+        setSize(size);
+    }
+
+    /**
      * Create a DoubleField with no name defined.
      * <p/>
      * <b>Please note</b> the control's name must be defined before it is valid.

Modified: incubator/click/trunk/click/extras/src/net/sf/click/extras/control/EmailField.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/net/sf/click/extras/control/EmailField.java?rev=722868&r1=722867&r2=722868&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/net/sf/click/extras/control/EmailField.java (original)
+++ incubator/click/trunk/click/extras/src/net/sf/click/extras/control/EmailField.java Wed
Dec  3 04:30:33 2008
@@ -126,6 +126,32 @@
     }
 
     /**
+     * Construct the Email Field with the given name, label and size.
+     *
+     * @param name the name of the field
+     * @param label the label of the field
+     * @param size the size of the field
+     */
+    public EmailField(String name, String label, int size) {
+        super(name, label);
+        setSize(size);
+    }
+
+    /**
+     * Construct the Email Field with the given name, label, size and
+     * required status.
+     *
+     * @param name the name of the field
+     * @param label the label of the field
+     * @param size the size of the field
+     * @param required the field required status
+     */
+    public EmailField(String name, String label, int size, boolean required) {
+        super(name, label, required);
+        setSize(size);
+    }
+
+    /**
      * Create an Email Field with no name defined.
      * <p/>
      * <b>Please note</b> the control's name must be defined before it is valid.

Modified: incubator/click/trunk/click/extras/src/net/sf/click/extras/control/IntegerField.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/net/sf/click/extras/control/IntegerField.java?rev=722868&r1=722867&r2=722868&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/net/sf/click/extras/control/IntegerField.java (original)
+++ incubator/click/trunk/click/extras/src/net/sf/click/extras/control/IntegerField.java Wed
Dec  3 04:30:33 2008
@@ -109,6 +109,32 @@
     }
 
     /**
+     * Construct the IntegerField with the given name, label and size.
+     *
+     * @param name the name of the field
+     * @param label the label of the field
+     * @param size the size of the field
+     */
+    public IntegerField(String name, String label, int size) {
+        this(name, label);
+        setSize(size);
+    }
+
+    /**
+     * Construct the IntegerField with the given name, label, size and
+     * required status.
+     *
+     * @param name the name of the field
+     * @param label the label of the field
+     * @param size the size of the field
+     * @param required the field required status
+     */
+    public IntegerField(String name, String label, int size, boolean required) {
+        this(name, label, required);
+        setSize(size);
+    }
+
+    /**
      * Create a IntegerField with no name defined.
      * <p/>
      * <b>Please note</b> the control's name must be defined before it is valid.

Modified: incubator/click/trunk/click/extras/src/net/sf/click/extras/control/LongField.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/net/sf/click/extras/control/LongField.java?rev=722868&r1=722867&r2=722868&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/net/sf/click/extras/control/LongField.java (original)
+++ incubator/click/trunk/click/extras/src/net/sf/click/extras/control/LongField.java Wed
Dec  3 04:30:33 2008
@@ -109,6 +109,32 @@
     }
 
     /**
+     * Construct the LongField with the given name, label and size.
+     *
+     * @param name the name of the field
+     * @param label the label of the field
+     * @param size the size of the field
+     */
+    public LongField(String name, String label, int size) {
+        this(name, label);
+        setSize(size);
+    }
+
+    /**
+     * Construct the LongField with the given name, label, size and
+     * required status.
+     *
+     * @param name the name of the field
+     * @param label the label of the field
+     * @param size the size of the field
+     * @param required the field required status
+     */
+    public LongField(String name, String label, int size, boolean required) {
+        this(name, label, required);
+        setSize(size);
+    }
+
+    /**
      * Create a LongField with no name defined.
      * <p/>
      * <b>Please note</b> the control's name must be defined before it is valid.

Modified: incubator/click/trunk/click/extras/src/net/sf/click/extras/control/NumberField.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/net/sf/click/extras/control/NumberField.java?rev=722868&r1=722867&r2=722868&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/net/sf/click/extras/control/NumberField.java (original)
+++ incubator/click/trunk/click/extras/src/net/sf/click/extras/control/NumberField.java Wed
Dec  3 04:30:33 2008
@@ -183,6 +183,32 @@
     }
 
     /**
+     * Construct the NumberField with the given name, label and size.
+     *
+     * @param name the name of the field
+     * @param label the label of the field
+     * @param size the size of the field
+     */
+    public NumberField(String name, String label, int size) {
+        this(name, label);
+        setSize(size);
+    }
+
+    /**
+     * Construct the NumberField with the given name, label, size and
+     * required status.
+     *
+     * @param name the name of the field
+     * @param label the label of the field
+     * @param size the size of the field
+     * @param required the field required status
+     */
+    public NumberField(String name, String label, int size, boolean required) {
+        this(name, label, required);
+        setSize(size);
+    }
+
+    /**
      * Create a NumberField with no name defined.
      * <p/>
      * <b>Please note</b> the control's name must be defined before it is valid.

Modified: incubator/click/trunk/click/extras/src/net/sf/click/extras/control/RegexField.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/net/sf/click/extras/control/RegexField.java?rev=722868&r1=722867&r2=722868&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/net/sf/click/extras/control/RegexField.java (original)
+++ incubator/click/trunk/click/extras/src/net/sf/click/extras/control/RegexField.java Wed
Dec  3 04:30:33 2008
@@ -152,6 +152,19 @@
     }
 
     /**
+     * Construct the RegexField with the given name, label, size and
+     * required status.
+     *
+     * @param name the name of the field
+     * @param label the label of the field
+     * @param size the size of the field
+     * @param required the field required status
+     */
+    public RegexField(String name, String label, int size, boolean required) {
+        super(name, label, size, required);
+    }
+
+    /**
      * Construct the RegexField with the given name and label.
      *
      * @param name the name of the field

Modified: incubator/click/trunk/click/extras/src/net/sf/click/extras/control/TelephoneField.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/net/sf/click/extras/control/TelephoneField.java?rev=722868&r1=722867&r2=722868&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/net/sf/click/extras/control/TelephoneField.java
(original)
+++ incubator/click/trunk/click/extras/src/net/sf/click/extras/control/TelephoneField.java
Wed Dec  3 04:30:33 2008
@@ -126,6 +126,20 @@
     }
 
     /**
+     * Construct the TelephoneField with the given name, label, size and
+     * required status.
+     *
+     * @param name the name of the field
+     * @param label the label of the field
+     * @param size the size of the field
+     * @param required the field required status
+     */
+    public TelephoneField(String name, String label, int size, boolean required) {
+        this(name, label, required);
+        setSize(size);
+    }
+
+    /**
      * Create a TelephoneField with no name defined. The default the minium
      * valid length is 10 characters.
      * <p/>



Mime
View raw message