changeset 894:5341be7dec7a

Removed the table listener for "Q" input. The table is no longer used for input assistance. (Issue203) flys-client/trunk@2739 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 14 Sep 2011 11:07:19 +0000
parents 89c01218172b
children 9acbd3f98262
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java flys-client/src/main/java/de/intevation/flys/client/client/ui/wq/QDTable.java
diffstat 3 files changed, 10 insertions(+), 51 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Wed Sep 14 10:11:50 2011 +0000
+++ b/flys-client/ChangeLog	Wed Sep 14 11:07:19 2011 +0000
@@ -1,3 +1,12 @@
+2011-09-14  Raimund Renkert <raimund.renkert@intevation.de>
+
+	Issue203
+
+	* src/main/java/de/intevation/flys/client/client/ui/wq/QDTable.java,
+	  src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java:
+	  Removed the table listener for "Q" input. The table is no longer used
+	  for input assistance.
+
 2011-09-14  Raimund Renkert <raimund.renkert@intevation.de>
 
 	Issue305
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java	Wed Sep 14 10:11:50 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java	Wed Sep 14 11:07:19 2011 +0000
@@ -156,46 +156,6 @@
     public WQInputPanel() {
         qdTable      = new QDTable();
         wTable       = new WTable();
-
-        initTableListeners();
-    }
-
-
-    /**
-     * Initializes the listeners of the WQD tables.
-     */
-    protected void initTableListeners() {
-        CellClickHandler handler = new CellClickHandler() {
-            public void onCellClick(CellClickEvent e) {
-
-                if (isWMode()) {
-                    return;
-                }
-
-                int    idx = e.getColNum();
-                Record r   = e.getRecord ();
-                double val = r.getAttributeAsDouble("value");
-
-                if (idx == 0) {
-                    if (isRangeMode()) {
-                        qRangePanel.setFrom(val);
-                    }
-                    else {
-                        qArrayPanel.addValue(val);
-                    }
-                }
-                else if (idx == 1) {
-                    if (isRangeMode()) {
-                        qRangePanel.setTo(val);
-                    }
-                    else {
-                        qArrayPanel.addValue(val);
-                    }
-                }
-            }
-        };
-
-        qdTable.addCellClickHandler(handler);
     }
 
 
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/wq/QDTable.java	Wed Sep 14 10:11:50 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/wq/QDTable.java	Wed Sep 14 11:07:19 2011 +0000
@@ -33,16 +33,6 @@
         setShowRecordComponentsByCell(true);
         setEmptyMessage(MESSAGE.empty_table());
 
-        ListGridField addMax = new ListGridField("", "");
-        addMax.setType(ListGridFieldType.ICON);
-        addMax.setWidth(30);
-        addMax.setCellIcon(IMAGES.markerRed().getURL());
-
-        ListGridField addMin = new ListGridField("", "");
-        addMin.setType(ListGridFieldType.ICON);
-        addMin.setWidth(30);
-        addMin.setCellIcon(IMAGES.markerGreen().getURL());
-
         ListGridField name = new ListGridField("name", MESSAGE.name());
         name.setType(ListGridFieldType.TEXT);
         name.setWidth("*");
@@ -55,7 +45,7 @@
         value.setType(ListGridFieldType.TEXT);
         type.setWidth("50");
 
-        setFields(addMin, addMax, name, type, value);
+        setFields(name, type, value);
     }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org