comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/NaviChartOutputTab.java @ 5964:aaa5e5ac5b02

NaviChartOutputTab: In prep for issue1311, override getExportUrl to include km.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 10 May 2013 11:28:50 +0200
parents dbbe3085384e
children e9e298724f03
comparison
equal deleted inserted replaced
5963:dbbe3085384e 5964:aaa5e5ac5b02
342 attr = super.getChartAttributes(); 342 attr = super.getChartAttributes();
343 attr.put("km", String.valueOf(collectionView.getCurrentKm())); 343 attr.put("km", String.valueOf(collectionView.getCurrentKm()));
344 344
345 return attr; 345 return attr;
346 } 346 }
347
348 /** In contrast to supers implementation, include the currently selected
349 * km in the url. */
350 @Override
351 public String getExportUrl(int width, int height, String format) {
352 String url = super.getExportUrl(width, height, format);
353 if (collectionView.getCurrentKm() != -1) {
354 url += "&currentKm=" + collectionView.getCurrentKm();
355 }
356 return url;
357 }
347 } 358 }
348 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 359 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org