[Dive4elements-commits] [PATCH 2 of 3] NaviChartOutputTab: In prep for issue1311, override getExportUrl to include km
Wald Commits
scm-commit at wald.intevation.org
Fri May 10 11:22:01 CEST 2013
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1368178130 -7200
# Node ID aaa5e5ac5b026ddab45fbd57dd06543954b5d2bc
# Parent dbbe3085384ed6437964fac2f387e6208a96d175
NaviChartOutputTab: In prep for issue1311, override getExportUrl to include km.
diff -r dbbe3085384e -r aaa5e5ac5b02 gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/NaviChartOutputTab.java
--- 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 :
More information about the Dive4elements-commits
mailing list