Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/DoubleArrayPanel.java @ 1369:1fae113b93fd
Issue 118/203.
Lock table for Q input and clear values on input change.
Updated i18n strings.
flys-client/trunk@3074 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 25 Oct 2011 13:32:16 +0000 |
parents | 1627a28c4504 |
children | 06c76de19b51 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/DoubleArrayPanel.java Tue Oct 25 12:41:16 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/DoubleArrayPanel.java Tue Oct 25 13:32:16 2011 +0000 @@ -100,6 +100,10 @@ public void setValues(double[] values) { NumberFormat f = NumberFormat.getDecimalFormat(); + if(values.length == 0) { + ti.clearValue(); + return; + } StringBuilder text = new StringBuilder(); boolean firstItem = true; if (values != null) {