click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From med...@apache.org
Subject svn commit: r1389367 - /click/trunk/click/framework/src/org/apache/click/control/Field.java
Date Mon, 24 Sep 2012 13:40:55 GMT
Author: medgar
Date: Mon Sep 24 13:40:54 2012
New Revision: 1389367

URL: http://svn.apache.org/viewvc?rev=1389367&view=rev
Log:
CLK-794

Modified:
    click/trunk/click/framework/src/org/apache/click/control/Field.java

Modified: click/trunk/click/framework/src/org/apache/click/control/Field.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/control/Field.java?rev=1389367&r1=1389366&r2=1389367&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/control/Field.java (original)
+++ click/trunk/click/framework/src/org/apache/click/control/Field.java Mon Sep 24 13:40:54
2012
@@ -272,6 +272,24 @@ public abstract class Field extends Abst
     // Public Attributes ------------------------------------------------------
 
     /**
+     * Return the field HTML5 autofocus attribute.
+     *
+     * @return the field HTML5 autofocus attribute
+     */
+    public boolean isAutofocus() {
+        return getFocus();
+    }
+
+    /**
+     * Set the field HTML5 autofocus attribute.
+     *
+     * @param autofocus the field HTML5 autofocus attribute
+     */
+    public void setAutofocus(boolean autofocus) {
+        setFocus(autofocus);
+    }
+
+    /**
      * Set the parent of the Field.
      *
      * @see org.apache.click.Control#setParent(Object)



Mime
View raw message