comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/SingleLocationPanel.java @ 3802:e831dc29e572

Picked rev3186 from trunk. flys-client/tags/pre2.6-2011-11-04@3187 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 08 Nov 2011 15:34:59 +0000
parents 24d15c2e0da3
children 748e7c828d03
comparison
equal deleted inserted replaced
3801:4bb2736ee9bb 3802:e831dc29e572
379 * @return the selected/inserted data. 379 * @return the selected/inserted data.
380 */ 380 */
381 public Data[] getData() { 381 public Data[] getData() {
382 saveLocationValues(locationPanel); 382 saveLocationValues(locationPanel);
383 double[] values = getLocationValues(); 383 double[] values = getLocationValues();
384 Data[] data = new Data[values.length]; 384 Data[] data = new Data[values.length+1];
385 DataItem item = new DefaultDataItem(); 385 DataItem item = new DefaultDataItem();
386 for (int i = 0; i < values.length; i++) { 386 for (int i = 0; i < values.length; i++) {
387 item = new DefaultDataItem( 387 item = new DefaultDataItem(
388 "ld_locations", 388 "ld_locations",
389 "ld_locations", 389 "ld_locations",
392 "ld_locations", 392 "ld_locations",
393 null, 393 null,
394 null, 394 null,
395 new DataItem[] {item}); 395 new DataItem[] {item});
396 } 396 }
397 data[values.length] = new DefaultData(
398 "ld_mode",
399 null, null,
400 new DataItem[] {
401 new DefaultDataItem("ld_mode", "ld_mode", "locations") });
402
397 return data; 403 return data;
398 } 404 }
399 405
400 406
401 407

http://dive4elements.wald.intevation.org