Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/NaviChartOutputTab.java @ 2935:6cf983dd4f8a
Add km to chart info request parameters to get valid chart infos.
flys-client/trunk@4868 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 03 Jul 2012 15:29:33 +0000 |
parents | d92770527b0f |
children | a805118fffa6 |
comparison
equal
deleted
inserted
replaced
2934:a5ebe2e2c772 | 2935:6cf983dd4f8a |
---|---|
1 package de.intevation.flys.client.client.ui.chart; | 1 package de.intevation.flys.client.client.ui.chart; |
2 | |
3 import java.util.Map; | |
4 import java.util.HashMap; | |
2 | 5 |
3 import com.google.gwt.core.client.GWT; | 6 import com.google.gwt.core.client.GWT; |
4 | 7 |
5 import com.smartgwt.client.types.Alignment; | 8 import com.smartgwt.client.types.Alignment; |
6 | 9 |
232 updateChartInfo(); | 235 updateChartInfo(); |
233 currentkm.setValue(collectionView.getCurrentKm()); | 236 currentkm.setValue(collectionView.getCurrentKm()); |
234 } | 237 } |
235 } | 238 } |
236 | 239 |
240 @Override | |
241 public Map<String, String> getChartAttributes() { | |
242 Map<String, String> attr = new HashMap<String, String>(); | |
243 | |
244 attr = super.getChartAttributes(); | |
245 attr.put("km", String.valueOf(collectionView.getCurrentKm())); | |
246 | |
247 return attr; | |
248 } | |
249 | |
237 } | 250 } |