diff flys-client/src/main/java/de/intevation/flys/client/client/ui/DoubleArrayPanel.java @ 580:42512fce9b1b

#140, #122: Splitted the WQD table in the WQInputPanel into two tables: a table for QD values and a table for W values - only the QD table is selectable. flys-client/trunk@2164 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 20 Jun 2011 10:32:54 +0000
parents 756bd8f0b97c
children 81d7939a5d9e
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/DoubleArrayPanel.java	Fri Jun 17 13:46:28 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/DoubleArrayPanel.java	Mon Jun 20 10:32:54 2011 +0000
@@ -119,6 +119,22 @@
     }
 
 
+    /**
+     * This method appends a double value to the current list of values.
+     *
+     * @param value A new value.
+     */
+    public void addValue(double value) {
+        NumberFormat f = NumberFormat.getDecimalFormat();
+
+        String current = ti.getValueAsString();
+
+        current += " " + f.format(value);
+
+        ti.setValue(current);
+    }
+
+
     protected boolean validateForm() {
         return validateForm(ti);
     }

http://dive4elements.wald.intevation.org