Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java @ 1399:748e7c828d03
Issue312.
Moved images and get image urls from constants to completly support IE7.
flys-client/trunk@3284 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 17 Nov 2011 14:10:51 +0000 |
parents | 9981ba2ee13a |
children | 047a44270348 |
comparison
equal
deleted
inserted
replaced
1398:3f6d2f18ee7b | 1399:748e7c828d03 |
---|---|
20 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | 20 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
21 */ | 21 */ |
22 public class ChartToolbar extends Toolbar { | 22 public class ChartToolbar extends Toolbar { |
23 | 23 |
24 protected static FLYSConstants MSG = GWT.create(FLYSConstants.class); | 24 protected static FLYSConstants MSG = GWT.create(FLYSConstants.class); |
25 | |
26 protected static FLYSImages IMG = GWT.create(FLYSImages.class); | |
27 | 25 |
28 | 26 |
29 public static final int PANEL_HEIGHT = 30; | 27 public static final int PANEL_HEIGHT = 30; |
30 | 28 |
31 | 29 |
74 }); | 72 }); |
75 | 73 |
76 String baseUrl = GWT.getHostPageBaseURL(); | 74 String baseUrl = GWT.getHostPageBaseURL(); |
77 | 75 |
78 downloadPNG = new ImgLink( | 76 downloadPNG = new ImgLink( |
79 IMG.downloadPNG().getURL(), | 77 baseUrl + MSG.downloadPNG(), |
80 chartTab.getExportUrl(1280, 1024, "png"), | 78 chartTab.getExportUrl(1280, 1024, "png"), |
81 20, | 79 20, |
82 20); | 80 20); |
83 | 81 |
84 downloadPDF = new ImgLink( | 82 downloadPDF = new ImgLink( |
85 IMG.downloadPDF().getURL(), | 83 baseUrl + MSG.downloadPDF(), |
86 chartTab.getExportUrl(1280, 1024, "pdf"), | 84 chartTab.getExportUrl(1280, 1024, "pdf"), |
87 20, | 85 20, |
88 20); | 86 20); |
89 | 87 |
90 downloadSVG = new ImgLink( | 88 downloadSVG = new ImgLink( |
91 IMG.downloadSVG().getURL(), | 89 baseUrl + MSG.downloadSVG(), |
92 chartTab.getExportUrl(1280, 1024, "svg"), | 90 chartTab.getExportUrl(1280, 1024, "svg"), |
93 20, | 91 20, |
94 20); | 92 20); |
95 | 93 |
96 zoomToMaxExtent.setSrc(baseUrl + MSG.zoom_all()); | 94 zoomToMaxExtent.setSrc(baseUrl + MSG.zoom_all()); |