Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ManualPointsEditor.java @ 2482:cef4c624c68c
Cosmetics.
flys-client/trunk@4254 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 17 Apr 2012 14:40:19 +0000 |
parents | 4e81439ffa28 |
children | 51ed89b754ae |
comparison
equal
deleted
inserted
replaced
2481:37438d7228b4 | 2482:cef4c624c68c |
---|---|
207 } | 207 } |
208 }; | 208 }; |
209 | 209 |
210 CellEditValueFormatter cevf = new CellEditValueFormatter() { | 210 CellEditValueFormatter cevf = new CellEditValueFormatter() { |
211 public Object format(Object value, ListGridRecord record, int rowNum, int colNum) { | 211 public Object format(Object value, ListGridRecord record, int rowNum, int colNum) { |
212 if (value == null) { | |
213 return ""; | |
214 } | |
212 NumberFormat nf = NumberFormat.getDecimalFormat(); | 215 NumberFormat nf = NumberFormat.getDecimalFormat(); |
213 try { | 216 try { |
214 double d = Double.valueOf(value.toString()).doubleValue(); | 217 double d = Double.valueOf(value.toString()).doubleValue(); |
215 return nf.format(d); | 218 return nf.format(d); |
216 } | 219 } |