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/06/23 13:11:10 UTC

svn commit: r957156 - /click/trunk/click/framework/src/org/apache/click/control/AbstractLink.java

Author: sabob
Date: Wed Jun 23 11:11:09 2010
New Revision: 957156

URL: http://svn.apache.org/viewvc?rev=957156&view=rev
Log:
fixed setParameter to accept object instead of string

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

Modified: click/trunk/click/framework/src/org/apache/click/control/AbstractLink.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/control/AbstractLink.java?rev=957156&r1=957155&r2=957156&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/control/AbstractLink.java (original)
+++ click/trunk/click/framework/src/org/apache/click/control/AbstractLink.java Wed Jun 23 11:11:09 2010
@@ -399,7 +399,7 @@ public abstract class AbstractLink exten
      * @param value the attribute value
      * @throws IllegalArgumentException if name parameter is null
      */
-    public void setParameter(String name, String value) {
+    public void setParameter(String name, Object value) {
         if (name == null) {
             throw new IllegalArgumentException("Null name parameter");
         }
@@ -438,13 +438,13 @@ public abstract class AbstractLink exten
      * Set the link parameter with the given parameter name and values. If the
      * values are null, the parameter will be removed from the {@link #parameters}.
      *
-     * @see #setParameter(java.lang.String, java.lang.String)
+     * @see #setParameter(java.lang.String, java.lang.Object)
      *
      * @param name the attribute name
      * @param values the attribute values
      * @throws IllegalArgumentException if name parameter is null
      */
-    public void setParameterValues(String name, String[] values) {
+    public void setParameterValues(String name, Object[] values) {
         if (name == null) {
             throw new IllegalArgumentException("Null name parameter");
         }