[Dive4elements-commits] [PATCH 8 of 8] Show measurement info panel if MINFO artifact is choosen
Wald Commits
scm-commit at wald.intevation.org
Fri Oct 26 12:27:44 CEST 2012
# HG changeset patch
# User Björn Ricks <bjoern.ricks at intevation.de>
# Date 1351247253 -7200
# Node ID 6c776f102e0344a6e8f138c6619c2d14e1e672f4
# Parent cde9a6fe18448035b05ce674ef82aadbcf27d99f
Show measurement info panel if MINFO artifact is choosen
Show the measurement station info panel if MINFO is selected.
diff -r cde9a6fe1844 -r 6c776f102e03 flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java
--- 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");
More information about the Dive4elements-commits
mailing list