changeset 559:ec85bab86e7b

Added units to the selected W or Q values in the static UI part. flys-client/trunk@2088 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 08 Jun 2011 14:49:47 +0000
parents 5749fd2b0138
children 5274b9317e40
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java
diffstat 2 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Wed Jun 08 13:28:23 2011 +0000
+++ b/flys-client/ChangeLog	Wed Jun 08 14:49:47 2011 +0000
@@ -1,3 +1,10 @@
+2011-06-08  Ingo Weinzierl <ingo@intevation.de>
+
+	  flys/issue103 PART 2 (WINFO: Wasserspiegellagenberechnung / Layout-Inkonsistenz)
+
+	* src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java:
+	  Append the unit of W or Q to the values in the single mode.
+
 2011-06-08  Ingo Weinzierl <ingo@intevation.de>
 
 	  flys/issue43 (i18n: Einige Verbesserungen)
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java	Wed Jun 08 13:28:23 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java	Wed Jun 08 14:49:47 2011 +0000
@@ -564,7 +564,7 @@
 
 
     protected String createWString(DataItem single) {
-        return single.getLabel();
+        return single.getLabel().replace(" ", " " + MESSAGE.unitWSingle() + " ");
     }
 
 
@@ -582,7 +582,7 @@
 
 
     protected String createQString(DataItem single) {
-        return single.getLabel();
+        return single.getLabel().replace(" ", " " + MESSAGE.unitQSingle() + " ");
     }
 
 

http://dive4elements.wald.intevation.org