Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/DoubleArrayPanel.java @ 238:234c78a91c15
Added new UI provider for single location selection.
flys-client/trunk@1806 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 03 May 2011 13:52:14 +0000 |
parents | 137daff2c732 |
children | ccba1a0b743e |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/DoubleArrayPanel.java Mon May 02 16:41:35 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/DoubleArrayPanel.java Tue May 03 13:52:14 2011 +0000 @@ -86,15 +86,16 @@ StringBuilder text = new StringBuilder(); boolean firstItem = true; + if (values != null) { + for (double val: values) { + if (!firstItem) { + text.append(" "); + } - for (double val: values) { - if (!firstItem) { - text.append(" "); + text.append(f.format(val)); + + firstItem = false; } - - text.append(f.format(val)); - - firstItem = false; } ti.clearValue();