]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix for #3259 - Removing all action handlers
authorArtur Signell <artur.signell@itmill.com>
Thu, 17 Dec 2009 06:34:40 +0000 (06:34 +0000)
committerArtur Signell <artur.signell@itmill.com>
Thu, 17 Dec 2009 06:34:40 +0000 (06:34 +0000)
svn changeset:10363/svn branch:6.2

src/com/vaadin/ui/Panel.java
src/com/vaadin/ui/Table.java
src/com/vaadin/ui/Tree.java

index 1fdbd21237994fe945ba49eefdd4e26da906ea46..df08c4e62bfb315ee9c6e43aa88621135a6a2c7c 100644 (file)
@@ -553,6 +553,15 @@ public class Panel extends AbstractComponentContainer implements Scrollable,
         }
     }
 
+    /**
+     * Removes all action handlers
+     */
+    public void removeAllActionHandlers() {
+        actionHandlers = null;
+        actionMapper = null;
+        requestRepaint();
+    }
+
     /**
      * Add a click listener to the Panel. The listener is called whenever the
      * user clicks inside the Panel. Also when the click targets a component
index 3339dc90ec68c4d466fa01e4d728a670528d1038..0563756d40e869b829feba5674184b5da6528329 100644 (file)
@@ -2466,6 +2466,15 @@ public class Table extends AbstractSelect implements Action.Container,
         }
     }
 
+    /**
+     * Removes all action handlers
+     */
+    public void removeAllActionHandlers() {
+        actionHandlers = null;
+        actionMapper = null;
+        requestRepaint();
+    }
+
     /* Property value change listening support */
 
     /**
index 25138e5b0a23df074ec68dc79b0cb9a83b7246ac..509d83a1532bcbdaccd837efa56414438fc0212b 100644 (file)
@@ -910,6 +910,15 @@ public class Tree extends AbstractSelect implements Container.Hierarchical,
         }
     }
 
+    /**
+     * Removes all action handlers
+     */
+    public void removeAllActionHandlers() {
+        actionHandlers = null;
+        actionMapper = null;
+        requestRepaint();
+    }
+
     /**
      * Gets the visible item ids.
      *