click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r778167 - in /incubator/click/trunk/click/framework/src/org/apache/click/control: FieldSet.java PageLink.java Panel.java
Date Sun, 24 May 2009 14:51:23 GMT
Author: sabob
Date: Sun May 24 14:51:23 2009
New Revision: 778167

URL: http://svn.apache.org/viewvc?rev=778167&view=rev
Log:
enable listener to be set

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

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=778167&r1=778166&r2=778167&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 Sun May
24 14:51:23 2009
@@ -23,7 +23,6 @@
 import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
-import org.apache.click.ActionListener;
 import org.apache.click.Control;
 import org.apache.click.util.ClickUtils;
 import org.apache.click.util.ContainerUtils;
@@ -804,31 +803,6 @@
     }
 
     /**
-     * This method is not supported and will throw a
-     * <tt>UnsupportedOperationException</tt>.
-     *
-     * @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) {
-        throw new UnsupportedOperationException("setListener not supported");
-    }
-
-    /**
-     * This method is not supported and will throw a
-     * <tt>UnsupportedOperationException</tt>.
-     *
-     * @see org.apache.click.control.AbstractControl#setActionListener(ActionListener)
-     *
-     * @param actionListener the control's action listener
-     */
-    public void setActionListener(ActionListener actionListener) {
-        throw new UnsupportedOperationException("setListener not supported");
-    }
-
-    /**
      * Render the HTML representation of the FieldSet.
      * <p/>
      * The size of buffer is determined by {@link #getControlSizeEst()}.

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=778167&r1=778166&r2=778167&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 Sun May
24 14:51:23 2009
@@ -172,17 +172,6 @@
     }
 
     /**
-     * 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

Modified: incubator/click/trunk/click/framework/src/org/apache/click/control/Panel.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/framework/src/org/apache/click/control/Panel.java?rev=778167&r1=778166&r2=778167&view=diff
==============================================================================
--- incubator/click/trunk/click/framework/src/org/apache/click/control/Panel.java (original)
+++ incubator/click/trunk/click/framework/src/org/apache/click/control/Panel.java Sun May
24 14:51:23 2009
@@ -26,7 +26,6 @@
 
 import javax.servlet.http.HttpServletRequest;
 
-import org.apache.click.ActionListener;
 import org.apache.click.Context;
 import org.apache.click.Control;
 import org.apache.click.Page;
@@ -522,28 +521,6 @@
     }
 
     /**
-     * This method does nothing, since Panel does not support listener callback.
-     *
-     * @see 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) {
-    }
-
-    /**
-     * This method does nothing, since Panel does not support action listener
-     * callback.
-     *
-     * @see AbstractControl#setActionListener(org.apache.click.ActionListener)
-     *
-     * @param listener the control's action listener
-     */
-    public void setActionListener(ActionListener listener) {
-    }
-
-    /**
      * Add the named object value to the Panels model map.
      *
      * @param name the key name of the object to add



Mime
View raw message