click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r931472 - in /click/trunk/click: extras/src/org/apache/click/extras/control/CreditCardField.java framework/src/org/apache/click/control/PasswordField.java
Date Wed, 07 Apr 2010 09:07:55 GMT
Author: sabob
Date: Wed Apr  7 09:07:55 2010
New Revision: 931472

URL: http://svn.apache.org/viewvc?rev=931472&view=rev
Log:
added size constructor

Modified:
    click/trunk/click/extras/src/org/apache/click/extras/control/CreditCardField.java
    click/trunk/click/framework/src/org/apache/click/control/PasswordField.java

Modified: click/trunk/click/extras/src/org/apache/click/extras/control/CreditCardField.java
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/src/org/apache/click/extras/control/CreditCardField.java?rev=931472&r1=931471&r2=931472&view=diff
==============================================================================
--- click/trunk/click/extras/src/org/apache/click/extras/control/CreditCardField.java (original)
+++ click/trunk/click/extras/src/org/apache/click/extras/control/CreditCardField.java Wed
Apr  7 09:07:55 2010
@@ -251,6 +251,32 @@ public class CreditCardField extends Tex
     }
 
     /**
+     * Construct a CreditCardField 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 CreditCardField(String name, String label, int size) {
+        this(name, label);
+        setSize(size);
+    }
+
+    /**
+     * Construct the CreditCardField 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 CreditCardField(String name, String label, int size, boolean required) {
+        this(name, label, size);
+        setRequired(required);
+    }
+
+    /**
      * Create a credit card field with no name defined.
      * <p/>
      * <b>Please note</b> the control's name must be defined before it is valid.

Modified: click/trunk/click/framework/src/org/apache/click/control/PasswordField.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/control/PasswordField.java?rev=931472&r1=931471&r2=931472&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/control/PasswordField.java (original)
+++ click/trunk/click/framework/src/org/apache/click/control/PasswordField.java Wed Apr  7
09:07:55 2010
@@ -86,6 +86,30 @@ public class PasswordField extends TextF
     }
 
     /**
+     * Construct a PasswordField 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 PasswordField(String name, String label, int size) {
+        super(name, label, size);
+    }
+
+    /**
+     * Construct the PasswordField 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 PasswordField(String name, String label, int size, boolean required) {
+        super(name, label, size, required);
+    }
+
+    /**
      * Create a PasswordField with no name defined.
      * <p/>
      * <b>Please note</b> the control's name must be defined before it is valid.



Mime
View raw message