changeset 48:6e191588a295

Render the Single-W panel initially when the WQInputPanel is rendered. flys-client/trunk@1496 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 17 Mar 2011 11:23:07 +0000
parents 45ae03d9ca2b
children d573ae975330
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Thu Mar 17 10:54:41 2011 +0000
+++ b/flys-client/ChangeLog	Thu Mar 17 11:23:07 2011 +0000
@@ -1,3 +1,9 @@
+2011-03-17  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java:
+	  The Single-W panel is displayed initially when the WQInputPanel is
+	  rendered.
+
 2011-03-17  Ingo Weinzierl <ingo@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java:
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java	Thu Mar 17 10:54:41 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java	Thu Mar 17 11:23:07 2011 +0000
@@ -133,6 +133,11 @@
         container       = new VLayout();
         Canvas modeForm = createModePanel();
 
+        // the initial panel is the Single-W panel.
+        double[] values = getSingleW();
+        container.addMember(new DoubleArrayPanel(
+            MSG.unitWSingle(), values, this));
+
         layout.addMember(modeForm);
         layout.addMember(container);
 

http://dive4elements.wald.intevation.org