Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/DoubleRangePanel.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 | 6ebe845a9d37 |
children | a39c2f531755 |
comparison
equal
deleted
inserted
replaced
579:f1b977657880 | 580:42512fce9b1b |
---|---|
216 public double getStep() { | 216 public double getStep() { |
217 String v = getValueAsString(FIELD_WIDTH); | 217 String v = getValueAsString(FIELD_WIDTH); |
218 | 218 |
219 return getDouble(v); | 219 return getDouble(v); |
220 } | 220 } |
221 | |
222 | |
223 /** | |
224 * Sets the value of the field with name <i>fieldname</i>. | |
225 * | |
226 * @param value The new value. | |
227 * @param fieldname The name of the field. | |
228 */ | |
229 public void setDoubleValue(double value, String fieldname) { | |
230 NumberFormat f = NumberFormat.getDecimalFormat(); | |
231 setValue(fieldname, f.format(value)); | |
232 } | |
233 | |
234 | |
235 /** | |
236 * Sets a new start value. | |
237 * | |
238 * @param value The new start value. | |
239 */ | |
240 public void setFrom(double value) { | |
241 setDoubleValue(value, FIELD_FROM); | |
242 } | |
243 | |
244 | |
245 /** | |
246 * Sets a new end value. | |
247 * | |
248 * @param value The new end value. | |
249 */ | |
250 public void setTo(double value) { | |
251 setDoubleValue(value, FIELD_TO); | |
252 } | |
221 } | 253 } |
222 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 254 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |