changeset 4306:4c2005e6ac65

Close the gauge panel tree folds if a csv result should be shown Fixes flys/issue922 (W-INFO / Pegel-Info-Modul / Verhalten nach Berechnungsende)
author Björn Ricks <bjoern.ricks@intevation.de>
date Mon, 29 Oct 2012 15:43:49 +0100
parents 8c51c43e59ca
children 41cf1172825c
files flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java	Mon Oct 29 15:24:32 2012 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java	Mon Oct 29 15:43:49 2012 +0100
@@ -552,6 +552,7 @@
 
                 if (export.getFacet("csv") != null) {
                     hasCSV = true;
+                    parameterList.contractInfoPanel();
                 }
             }
         }
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java	Mon Oct 29 15:24:32 2012 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java	Mon Oct 29 15:43:49 2012 +0100
@@ -1002,5 +1002,15 @@
         }
     }
 
+    /**
+     * Allow to close all folds of the info panel.
+     * This is necessary e.g. if a csv result should be shown.
+     */
+    public void contractInfoPanel() {
+        if (infoPanel != null) {
+            infoPanel.contract();
+        }
+    }
+
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org