comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/QSegmentedInputPanel.java @ 5104:5f70c73b11ed

Display gauge names in WQAdapted input panel instead of gauge range.
author Raimund Renkert <rrenkert@intevation.de>
date Tue, 26 Feb 2013 13:59:20 +0100
parents 03de5c424f95
children d07abdb7ed7f
comparison
equal deleted inserted replaced
5103:15e856a64cdd 5104:5f70c73b11ed
178 178
179 for (String gauge: gauges) { 179 for (String gauge: gauges) {
180 HLayout h = new HLayout(); 180 HLayout h = new HLayout();
181 181
182 String[] parts = gauge.split(GAUGE_PART_SEPARATOR); 182 String[] parts = gauge.split(GAUGE_PART_SEPARATOR);
183 String[] values = parts[2].split(VALUE_SEPARATOR); 183 String[] values = parts[3].split(VALUE_SEPARATOR);
184 184
185 Label l = new Label(parts[0] + " - " + parts[1] + ": "); 185 Label l = new Label(parts[0] + " - " + parts[1] + ": ");
186 186
187 StringBuilder sb = new StringBuilder(); 187 StringBuilder sb = new StringBuilder();
188 boolean first = true; 188 boolean first = true;
359 String key = iter.next(); 359 String key = iter.next();
360 DoubleArrayPanel dap = wqranges.get(key); 360 DoubleArrayPanel dap = wqranges.get(key);
361 361
362 double[] values = dap.getInputValues(); 362 double[] values = dap.getInputValues();
363 if (wqvalue == null) { 363 if (wqvalue == null) {
364 wqvalue = createValueString(key, values); 364 wqvalue = createValueString(key + "; ", values);
365 } 365 }
366 else { 366 else {
367 wqvalue += GAUGE_SEPARATOR + createValueString(key, values); 367 wqvalue += GAUGE_SEPARATOR + createValueString(key + "; ", values);
368 } 368 }
369 } 369 }
370 370
371 // TODO probably ranges 371 // TODO probably ranges
372 DataItem valueItem = new DefaultDataItem( 372 DataItem valueItem = new DefaultDataItem(

http://dive4elements.wald.intevation.org