changeset 1391:f554dce42d66

Issue 355. Cancel the double click event for projectlist header. flys-client/trunk@3224 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 10 Nov 2011 13:59:48 +0000
parents 13d07b7daa89
children baada4879c20
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java
diffstat 2 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Thu Nov 10 13:38:36 2011 +0000
+++ b/flys-client/ChangeLog	Thu Nov 10 13:59:48 2011 +0000
@@ -1,3 +1,10 @@
+2011-11-10  Raimund Renkert <raimund.renkert@intevation.de>
+
+	Issue 355.
+
+	* src/main/java/de/intevation/flys/client/client/ui/ProjectList.java:
+	  Cancel the double click event for projectlist header.
+
 2011-11-10  Raimund Renkert <raimund.renkert@intevation.de>
 
 	Issue 342
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java	Thu Nov 10 13:38:36 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java	Thu Nov 10 13:59:48 2011 +0000
@@ -34,6 +34,8 @@
 import com.smartgwt.client.widgets.grid.events.EditCompleteHandler;
 import com.smartgwt.client.widgets.grid.events.RowContextClickEvent;
 import com.smartgwt.client.widgets.grid.events.RowContextClickHandler;
+import com.smartgwt.client.widgets.grid.events.HeaderDoubleClickHandler;
+import com.smartgwt.client.widgets.grid.events.HeaderDoubleClickEvent;
 import com.smartgwt.client.widgets.layout.VLayout;
 import com.smartgwt.client.widgets.menu.Menu;
 import com.smartgwt.client.widgets.menu.MenuItem;
@@ -198,6 +200,13 @@
 
         grid.setFields(date, name, fav);
 
+        grid.addHeaderDoubleClickHandler(new HeaderDoubleClickHandler() {
+            public void onHeaderDoubleClick(HeaderDoubleClickEvent event) {
+                // cancel the event.
+                return;
+            }
+        });
+
         // add a handler to set / unset the favorite state of a project
         grid.addCellClickHandler(new CellClickHandler() {
             public void onCellClick(CellClickEvent event) {

http://dive4elements.wald.intevation.org