changeset 4271:6c776f102e03

Show measurement info panel if MINFO artifact is choosen Show the measurement station info panel if MINFO is selected.
author Björn Ricks <bjoern.ricks@intevation.de>
date Fri, 26 Oct 2012 12:27:33 +0200
parents cde9a6fe1844
children edcd276a7234
files flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java	Fri Oct 26 12:26:01 2012 +0200
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java	Fri Oct 26 12:27:33 2012 +0200
@@ -52,6 +52,7 @@
 import de.intevation.flys.client.shared.model.ReportMode;
 import de.intevation.flys.client.shared.model.River;
 import de.intevation.flys.client.shared.model.WINFOArtifact;
+import de.intevation.flys.client.shared.model.MINFOArtifact;
 
 import java.util.ArrayList;
 import java.util.List;
@@ -755,6 +756,10 @@
             createGaugePanel();
             renderInfo(desc.getRiver(), desc.getOldData());
         }
+        else if (art instanceof MINFOArtifact) {
+            createMeasurementStationPanel();
+            renderInfo(desc.getRiver(), desc.getOldData());
+        }
         else {
             removeInfoPanel();
         }
@@ -945,6 +950,15 @@
         }
     }
 
+    private void createMeasurementStationPanel() {
+        GWT.log("ParameterList - createMeasurementStationPanel");
+        if (infoPanel == null) {
+            infoPanel = new MeasurementStationPanel(flys);
+            infoPanel.setWidth100();
+            infoPanel.setHeight100();
+        }
+    }
+
     private void showInfoPanel() {
         GWT.log("ParameterList - showInfoPanel");
 

http://dive4elements.wald.intevation.org