Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/ChartOutputTab.java @ 87:c8cd1b918901
Bugfix: Step back will remove duplicated output tab and an extended chart image URL bypasses the browser cache.
flys-client/trunk@1599 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 28 Mar 2011 17:04:17 +0000 |
parents | d327cff11848 |
children | f7967d12ce6e |
comparison
equal
deleted
inserted
replaced
86:eae92a05282e | 87:c8cd1b918901 |
---|---|
75 */ | 75 */ |
76 protected String getImgUrl() { | 76 protected String getImgUrl() { |
77 Config config = Config.getInstance(); | 77 Config config = Config.getInstance(); |
78 String server = config.getServerUrl(); | 78 String server = config.getServerUrl(); |
79 String uuid = collection.getItem(0).identifier(); | 79 String uuid = collection.getItem(0).identifier(); |
80 String hash = collection.getItem(0).hash(); | |
80 | 81 |
81 String imgUrl = GWT.getModuleBaseURL(); | 82 String imgUrl = GWT.getModuleBaseURL(); |
82 imgUrl += "chart"; | 83 imgUrl += "chart"; |
83 imgUrl += "?target=chart"; | 84 imgUrl += "?target=chart"; |
84 imgUrl += "&server=" + server; | 85 imgUrl += "&server=" + server; |
85 imgUrl += "&mode=img"; | 86 imgUrl += "&mode=img"; |
86 imgUrl += "&width=600"; | 87 imgUrl += "&width=600"; |
87 imgUrl += "&height=400"; | 88 imgUrl += "&height=400"; |
88 imgUrl += "&points=false"; | 89 imgUrl += "&points=false"; |
89 imgUrl += "&uuid=" + uuid; | 90 imgUrl += "&uuid=" + uuid; |
90 imgUrl += "&hash=" + "TODO-HASH"; | 91 imgUrl += "&hash=" + hash; |
91 | 92 |
92 GWT.log("IMAGE URL = " + imgUrl); | 93 GWT.log("IMAGE URL = " + imgUrl); |
93 | 94 |
94 // TODO Build the correct url that points to the OUT() resource of the | 95 // TODO Build the correct url that points to the OUT() resource of the |
95 // collection. | 96 // collection. |