comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/ChartToolbar.java @ 7606:424c3d84e119

(issue1666) Update CSV link in updateLinks, too
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 27 Nov 2013 18:06:04 +0100
parents 2098ac94bebc
children 11bc2d6a2059
comparison
equal deleted inserted replaced
7605:f51c943c707a 7606:424c3d84e119
40 protected Button manageThemes; 40 protected Button manageThemes;
41 protected Button datacage; 41 protected Button datacage;
42 protected ImgLink downloadPNG; 42 protected ImgLink downloadPNG;
43 protected ImgLink downloadPDF; 43 protected ImgLink downloadPDF;
44 protected ImgLink downloadSVG; 44 protected ImgLink downloadSVG;
45 protected Canvas downloadCSV; 45 protected ImgLink downloadCSV;
46 protected MousePositionPanel position; 46 protected MousePositionPanel position;
47 protected ZoomboxControl zoombox; 47 protected ZoomboxControl zoombox;
48 protected ImgButton zoomToMaxExtent; 48 protected ImgButton zoomToMaxExtent;
49 protected ImgButton historyBack; 49 protected ImgButton historyBack;
50 protected ImgButton zoomOut; 50 protected ImgButton zoomOut;
329 public void updateLinks() { 329 public void updateLinks() {
330 ChartOutputTab chartTab = getChartOutputTab(); 330 ChartOutputTab chartTab = getChartOutputTab();
331 String moduleUrl = GWT.getModuleBaseURL(); 331 String moduleUrl = GWT.getModuleBaseURL();
332 Config config = Config.getInstance(); 332 Config config = Config.getInstance();
333 333
334 // make sure that the current km is set correctly
335 // for the other buttons this is handled by onZoom
336 downloadCSV.setSource(
337 chartTab.getExportUrl(-1, -1, "csv", "windows-1252"));
338
334 if (chartTab.getMode().getName().equals("fix_wq_curve")) { 339 if (chartTab.getMode().getName().equals("fix_wq_curve")) {
335 exportAT.setSource( 340 exportAT.setSource(
336 moduleUrl + "export" + 341 moduleUrl + "export" +
337 "?uuid=" + chartTab.getCollection().identifier() + 342 "?uuid=" + chartTab.getCollection().identifier() +
338 "&name=" + chartTab.getMode().getName() + 343 "&name=" + chartTab.getMode().getName() +

http://dive4elements.wald.intevation.org