comparison gnv-artifacts/src/main/java/de/intevation/gnv/transition/MinMaxTransition.java @ 79:e33c61735a4e

Implementation of the Static UI done gnv-artifacts/trunk@101 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Thu, 17 Sep 2009 13:38:12 +0000
parents 5f47881f7c97
children bb45c5097cb6
comparison
equal deleted inserted replaced
78:969faa37a11b 79:e33c61735a4e
40 log.debug("MinMaxTransition.purifyResult"); 40 log.debug("MinMaxTransition.purifyResult");
41 if (this.descibeData == null){ 41 if (this.descibeData == null){
42 this.descibeData = new ArrayList<Object>(); 42 this.descibeData = new ArrayList<Object>();
43 } 43 }
44 if (result != null && result.size() == 1){ 44 if (result != null && result.size() == 1){
45
46 Object[] names = this.inputValueNames.toArray();
47 String minName = names[names.length-2].toString();
48 String maxName = names[names.length-1].toString();
45 Result value = result.iterator().next(); 49 Result value = result.iterator().next();
46 DescribeData describeData = new DefaultMinMaxDescribeData(value.getObject("MIN"), value.getObject("MAX")); 50 DescribeData describeData = new DefaultMinMaxDescribeData(minName, maxName,value.getObject("MIN"), value.getObject("MAX"));
47 log.debug(describeData.toString()); 51 log.debug(describeData.toString());
48 this.descibeData.add(describeData); 52 this.descibeData.add(describeData);
49 }else{ 53 }else{
50 log.warn("Result cannot be handled as MinMax Resultset"); 54 log.warn("Result cannot be handled as MinMax Resultset");
51 } 55 }

http://dive4elements.wald.intevation.org