Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java @ 1587:45cd2364adad
Issue 466.
CSV export for activated chart themes.
flys-client/trunk@3875 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 02 Feb 2012 11:14:40 +0000 |
parents | 2432973ccced |
children | 3c8ae5605a51 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java Thu Feb 02 07:40:44 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java Thu Feb 02 11:14:40 2012 +0000 @@ -36,6 +36,8 @@ protected Canvas downloadSVG; + protected Canvas downloadCSV; + protected MousePositionPanel position; protected ZoomboxControl zoombox; @@ -101,6 +103,12 @@ 20, 20); + downloadCSV = new ImgLink( + baseUrl + MSG.downloadCSV(), + chartTab.getExportUrl(-1, -1, "csv"), + 20, + 20); + zoomToMaxExtent.setSrc(baseUrl + MSG.zoom_all()); adjustImageButton(zoomToMaxExtent); zoomToMaxExtent.addClickHandler(new ClickHandler() { @@ -185,6 +193,7 @@ addMember(downloadPNG); addMember(downloadPDF); addMember(downloadSVG); + addMember(downloadCSV); addMember(zoomToMaxExtent); addMember(historyBack); addMember(zoomOut);