Mercurial > dive4elements > river
changeset 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 |
files | gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/NaviChartOutputTab.java |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/NaviChartOutputTab.java Fri May 10 11:28:04 2013 +0200 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/NaviChartOutputTab.java Fri May 10 11:28:50 2013 +0200 @@ -344,5 +344,16 @@ return attr; } + + /** In contrast to supers implementation, include the currently selected + * km in the url. */ + @Override + public String getExportUrl(int width, int height, String format) { + String url = super.getExportUrl(width, height, format); + if (collectionView.getCurrentKm() != -1) { + url += "¤tKm=" + collectionView.getCurrentKm(); + } + return url; + } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :