changeset 617:5bf652ba4581

#182 Initial WQ mode in adapted wq panel is now Q. flys-client/trunk@2256 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 27 Jun 2011 15:15:34 +0000
parents ef88ecbbd4d3
children 6fd6c223b81e 261faa6a271f
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/WQAdaptedInputPanel.java
diffstat 2 files changed, 11 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Mon Jun 27 13:06:22 2011 +0000
+++ b/flys-client/ChangeLog	Mon Jun 27 15:15:34 2011 +0000
@@ -1,3 +1,10 @@
+2011-06-27  Ingo Weinzierl <ingo@intevation.de>
+
+	  flys/issue182 (WINFO: Vorbelegung Q bei "ungleichwertigem Abflusslängsschnitt")
+
+	* src/main/java/de/intevation/flys/client/client/ui/WQAdaptedInputPanel.java:
+	  Set initial mode to Q.
+
 2011-06-27  Ingo Weinzierl <ingo@intevation.de>
 
 	* Changes: Prepared changes for the upcoming release.
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQAdaptedInputPanel.java	Mon Jun 27 13:06:22 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQAdaptedInputPanel.java	Mon Jun 27 15:15:34 2011 +0000
@@ -340,11 +340,11 @@
         DataItem def   = dDef != null ? dDef.getDefault() : null;
         String   value = def != null ? def.getStringValue() : null;
 
-        if (value != null && value.equals(FIELD_WQ_Q)) {
-            modes.setValue(FIELD_WQ_MODE, FIELD_WQ_Q);
+        if (value != null && value.equals(FIELD_WQ_W)) {
+            modes.setValue(FIELD_WQ_MODE, FIELD_WQ_W);
         }
         else {
-            modes.setValue(FIELD_WQ_MODE, FIELD_WQ_W);
+            modes.setValue(FIELD_WQ_MODE, FIELD_WQ_Q);
         }
     }
 
@@ -468,7 +468,7 @@
         modes.setWidth(200);
 
         LinkedHashMap initial = new LinkedHashMap();
-        initial.put(FIELD_WQ_MODE, FIELD_WQ_W);
+        initial.put(FIELD_WQ_MODE, FIELD_WQ_Q);
         modes.setValues(initial);
 
         return modes;

http://dive4elements.wald.intevation.org