click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r778440 - in /incubator/click/trunk/click: extras/src/org/apache/click/extras/control/ExternalLink.java framework/src/org/apache/click/control/FieldSet.java framework/src/org/apache/click/control/PageLink.java
Date Mon, 25 May 2009 15:47:57 GMT
Author: sabob
Date: Mon May 25 15:47:54 2009
New Revision: 778440

URL: http://svn.apache.org/viewvc?rev=778440&view=rev
Log:
enable listener support on fieldset. Removed listener support from externallink and pagelink

Modified:
    incubator/click/trunk/click/extras/src/org/apache/click/extras/control/ExternalLink.java
    incubator/click/trunk/click/framework/src/org/apache/click/control/FieldSet.java
    incubator/click/trunk/click/framework/src/org/apache/click/control/PageLink.java

Modified: incubator/click/trunk/click/extras/src/org/apache/click/extras/control/ExternalLink.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/org/apache/click/extras/control/ExternalLink.java?rev=778440&r1=778439&r2=778440&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/org/apache/click/extras/control/ExternalLink.java
(original)
+++ incubator/click/trunk/click/extras/src/org/apache/click/extras/control/ExternalLink.java
Mon May 25 15:47:54 2009
@@ -21,6 +21,7 @@
 import java.util.Iterator;
 import java.util.Map;
 
+import org.apache.click.ActionListener;
 import org.apache.click.control.AbstractLink;
 import org.apache.click.util.ClickUtils;
 import org.apache.click.util.HtmlStringBuffer;
@@ -128,6 +129,27 @@
     }
 
     /**
+     * This method does nothing.
+     *
+     * @see org.apache.click.control.AbstractControl#setActionListener(org.apache.click.ActionListener)
+     *
+     * @param listener the listener to invoke
+     */
+    public void setActionListener(ActionListener listener) {
+    }
+
+    /**
+     * This method does nothing.
+     *
+     * @see org.apache.click.Control#setListener(Object, String)
+     *
+     * @param listener the listener object with the named method to invoke
+     * @param method the name of the method to invoke
+     */
+    public void setListener(Object listener, String method) {
+    }
+
+    /**
      * Return the link href target path.
      *
      * @return the link href target path

Modified: incubator/click/trunk/click/framework/src/org/apache/click/control/FieldSet.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/framework/src/org/apache/click/control/FieldSet.java?rev=778440&r1=778439&r2=778440&view=diff
==============================================================================
--- incubator/click/trunk/click/framework/src/org/apache/click/control/FieldSet.java (original)
+++ incubator/click/trunk/click/framework/src/org/apache/click/control/FieldSet.java Mon May
25 15:47:54 2009
@@ -758,6 +758,7 @@
                 }
             }
         }
+        registerActionEvent();
         return true;
     }
 

Modified: incubator/click/trunk/click/framework/src/org/apache/click/control/PageLink.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/framework/src/org/apache/click/control/PageLink.java?rev=778440&r1=778439&r2=778440&view=diff
==============================================================================
--- incubator/click/trunk/click/framework/src/org/apache/click/control/PageLink.java (original)
+++ incubator/click/trunk/click/framework/src/org/apache/click/control/PageLink.java Mon May
25 15:47:54 2009
@@ -21,6 +21,7 @@
 import java.util.Iterator;
 import java.util.Map;
 
+import org.apache.click.ActionListener;
 import org.apache.click.Context;
 import org.apache.click.util.ClickUtils;
 import org.apache.click.util.HtmlStringBuffer;
@@ -172,6 +173,27 @@
     }
 
     /**
+     * This method does nothing.
+     *
+     * @see org.apache.click.control.AbstractControl#setActionListener(org.apache.click.ActionListener)
+     *
+     * @param listener the listener to invoke
+     */
+    public void setActionListener(ActionListener listener) {
+    }
+
+    /**
+     * This method does nothing.
+     *
+     * @see org.apache.click.Control#setListener(Object, String)
+     *
+     * @param listener the listener object with the named method to invoke
+     * @param method the name of the method to invoke
+     */
+    public void setListener(Object listener, String method) {
+    }
+ 	
+    /**
      * Return the target Page class.
      *
      * @return the target Page class



Mime
View raw message