You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@click.apache.org by sa...@apache.org on 2010/05/01 19:14:17 UTC
svn commit: r940087 -
/click/trunk/click/framework/src/org/apache/click/control/ActionLink.java
Author: sabob
Date: Sat May 1 17:14:17 2010
New Revision: 940087
URL: http://svn.apache.org/viewvc?rev=940087&view=rev
Log:
cleanup
Modified:
click/trunk/click/framework/src/org/apache/click/control/ActionLink.java
Modified: click/trunk/click/framework/src/org/apache/click/control/ActionLink.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/control/ActionLink.java?rev=940087&r1=940086&r2=940087&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/control/ActionLink.java (original)
+++ click/trunk/click/framework/src/org/apache/click/control/ActionLink.java Sat May 1 17:14:17 2010
@@ -145,7 +145,7 @@ import org.apache.commons.lang.StringUti
*/
public class ActionLink extends AbstractLink {
- // -------------------------------------------------------------- Constants
+ // Constants --------------------------------------------------------------
private static final long serialVersionUID = 1L;
@@ -155,12 +155,12 @@ public class ActionLink extends Abstract
/** The value parameter name: <tt>value</tt>. */
public static final String VALUE = "value";
- // ----------------------------------------------------- Instance Variables
+ // Instance Variables -----------------------------------------------------
/** The link is clicked. */
protected boolean clicked;
- // ----------------------------------------------------------- Constructors
+ // Constructors -----------------------------------------------------------
/**
* Create an ActionLink for the given name.
@@ -268,7 +268,7 @@ public class ActionLink extends Abstract
public ActionLink() {
}
- // ------------------------------------------------------ Public Attributes
+ // Public Attributes ------------------------------------------------------
/**
* Returns true if the ActionLink was clicked, otherwise returns false.
@@ -360,6 +360,7 @@ public class ActionLink extends Abstract
* @param name of the control
* @throws IllegalArgumentException if the name is null
*/
+ @Override
public void setName(String name) {
if (ACTION_LINK.equals(name)) {
String msg = "Invalid name '" + ACTION_LINK + "'. This name is "
@@ -379,6 +380,7 @@ public class ActionLink extends Abstract
* @throws IllegalArgumentException if the given parent instance is
* referencing <tt>this</tt> object: <tt>if (parent == this)</tt>
*/
+ @Override
public void setParent(Object parent) {
if (parent == this) {
throw new IllegalArgumentException("Cannot set parent to itself");
@@ -477,6 +479,7 @@ public class ActionLink extends Abstract
* This method binds the submitted request value to the ActionLink's
* value.
*/
+ @Override
public void bindRequestValue() {
Context context = getContext();
if (context.isMultipartRequest()) {
@@ -490,7 +493,7 @@ public class ActionLink extends Abstract
}
}
- // --------------------------------------------------------- Public Methods
+ // Public Methods ---------------------------------------------------------
/**
* This method will set the {@link #isClicked()} property to true if the
@@ -501,6 +504,7 @@ public class ActionLink extends Abstract
*
* @return true to continue Page event processing or false otherwise
*/
+ @Override
public boolean onProcess() {
bindRequestValue();