changeset 3830:60911c8422b7

Don't display the GaugePanel if no river is selected flys-client/trunk@5525 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Bjoern Ricks <bjoern.ricks@intevation.de>
date Wed, 19 Sep 2012 13:16:24 +0000
parents e6186ab00553
children dc505433173f
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java
diffstat 2 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Wed Sep 19 13:14:46 2012 +0000
+++ b/flys-client/ChangeLog	Wed Sep 19 13:16:24 2012 +0000
@@ -1,3 +1,8 @@
+2012-09-19	Björn Ricks	<bjoern.ricks@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/ui/ParameterList.java:
+	  Don't display the GaugePanel if no river is selected.
+
 2012-09-19	Björn Ricks	<bjoern.ricks@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/shared/model/DefaultArtifactDescription.java:
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java	Wed Sep 19 13:14:46 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java	Wed Sep 19 13:16:24 2012 +0000
@@ -743,7 +743,13 @@
             }
         }
         if (art instanceof WINFOArtifact) {
-            renderGaugeInfo(desc.getRiver());
+            String river = desc.getRiver();
+            if (river != null) {
+                renderGaugeInfo(desc.getRiver());
+            }
+            else {
+                gaugePanel.hide();
+            }
         }
 
         addOldDatas(

http://dive4elements.wald.intevation.org