You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@click.apache.org by me...@apache.org on 2012/09/24 15:40:55 UTC
svn commit: r1389367 -
/click/trunk/click/framework/src/org/apache/click/control/Field.java
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)