Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/MapSelection.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 | dfbc6693247e |
children | 047a44270348 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/MapSelection.java Mon Nov 14 13:19:02 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/MapSelection.java Thu Nov 17 14:10:51 2011 +0000 @@ -9,7 +9,7 @@ import com.smartgwt.client.widgets.layout.HLayout; import de.intevation.flys.client.shared.model.DataList; -import de.intevation.flys.client.client.FLYSImages; +import de.intevation.flys.client.client.FLYSConstants; import de.intevation.flys.client.shared.model.Data; @@ -23,7 +23,7 @@ public class MapSelection extends SelectProvider { /** The interface that provides the image resources. */ - private FLYSImages IMAGES = GWT.create(FLYSImages.class); + private FLYSConstants MESSAGES = GWT.create(FLYSConstants.class); protected ModuleSelection moduleSelection; @@ -46,6 +46,8 @@ protected Canvas createWidget(DataList data) { GWT.log("MapSelection - create()"); + String baseUrl = GWT.getHostPageBaseURL(); + HLayout h = new HLayout(); h.setAlign(VerticalAlignment.TOP); h.setHeight(100); @@ -55,8 +57,7 @@ form.setWidth(250); form.setLayoutAlign(VerticalAlignment.TOP); - ImageResource mapRes = IMAGES.riverMap(); - Img map = new Img(mapRes.getURL(), 400, 452); + Img map = new Img(baseUrl + MESSAGES.riverMap(), 400, 452); // TODO implement event handling in the river map