Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/SingleLocationPanel.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 | 3cbc7fbfff0e |
children | 047a44270348 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/SingleLocationPanel.java Mon Nov 14 13:19:02 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/SingleLocationPanel.java Thu Nov 17 14:10:51 2011 +0000 @@ -56,9 +56,6 @@ /** The message class that provides i18n strings.*/ protected FLYSConstants MESSAGES = GWT.create(FLYSConstants.class); - /** The interface that provides the image resources. */ - private FLYSImages IMAGES = GWT.create(FLYSImages.class); - /** The DistanceInfoService used to retrieve locations about rivers.*/ protected DistanceInfoServiceAsync distanceInfoService = GWT.create(DistanceInfoService.class); @@ -130,6 +127,9 @@ */ protected void createLocationTable() { GWT.log("---------- I WAS HERE ---------"); + + String baseUrl = GWT.getHostPageBaseURL(); + locationTable.setWidth100(); locationTable.setShowRecordComponents(true); locationTable.setShowRecordComponentsByCell(true); @@ -154,7 +154,7 @@ setLocationValues(selected); } }); - addLocation.setCellIcon (IMAGES.markerGreen ().getURL ()); + addLocation.setCellIcon (baseUrl + MESSAGES.markerGreen()); ListGridField ldescr = new ListGridField("description", MESSAGES.description());