Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
579:f1b977657880 | 580:42512fce9b1b |
---|---|
117 ti.clearValue(); | 117 ti.clearValue(); |
118 ti.setValue(text.toString()); | 118 ti.setValue(text.toString()); |
119 } | 119 } |
120 | 120 |
121 | 121 |
122 /** | |
123 * This method appends a double value to the current list of values. | |
124 * | |
125 * @param value A new value. | |
126 */ | |
127 public void addValue(double value) { | |
128 NumberFormat f = NumberFormat.getDecimalFormat(); | |
129 | |
130 String current = ti.getValueAsString(); | |
131 | |
132 current += " " + f.format(value); | |
133 | |
134 ti.setValue(current); | |
135 } | |
136 | |
137 | |
122 protected boolean validateForm() { | 138 protected boolean validateForm() { |
123 return validateForm(ti); | 139 return validateForm(ti); |
124 } | 140 } |
125 | 141 |
126 | 142 |