comparison 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
comparison
equal deleted inserted replaced
1368:ec0c81f2c7a4 1369:1fae113b93fd
98 * @param values The double values. 98 * @param values The double values.
99 */ 99 */
100 public void setValues(double[] values) { 100 public void setValues(double[] values) {
101 NumberFormat f = NumberFormat.getDecimalFormat(); 101 NumberFormat f = NumberFormat.getDecimalFormat();
102 102
103 if(values.length == 0) {
104 ti.clearValue();
105 return;
106 }
103 StringBuilder text = new StringBuilder(); 107 StringBuilder text = new StringBuilder();
104 boolean firstItem = true; 108 boolean firstItem = true;
105 if (values != null) { 109 if (values != null) {
106 for (double val: values) { 110 for (double val: values) {
107 if (!firstItem) { 111 if (!firstItem) {

http://dive4elements.wald.intevation.org