diff flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapOutputTab.java @ 1364:9981ba2ee13a

Display the datacage button in the map toolbar. flys-client/trunk@3063 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 24 Oct 2011 13:35:30 +0000
parents 8a93fb299e64
children 4c65c5b60a86
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapOutputTab.java	Mon Oct 24 10:53:39 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapOutputTab.java	Mon Oct 24 13:35:30 2011 +0000
@@ -43,12 +43,14 @@
 import de.intevation.flys.client.client.Config;
 import de.intevation.flys.client.client.services.StepForwardService;
 import de.intevation.flys.client.client.services.StepForwardServiceAsync;
+import de.intevation.flys.client.client.event.RedrawRequestHandler;
+import de.intevation.flys.client.client.event.RedrawRequestEvent;
 import de.intevation.flys.client.client.ui.CollectionView;
 import de.intevation.flys.client.client.ui.OutputTab;
 import de.intevation.flys.client.client.ui.ThemePanel;
 
 
-public class MapOutputTab extends OutputTab {
+public class MapOutputTab extends OutputTab implements RedrawRequestHandler {
 
     public static final String DEFAULT_SRID = "4326";
 
@@ -60,8 +62,6 @@
     protected StepForwardServiceAsync feedService =
         GWT.create(StepForwardService.class);
 
-    protected CollectionView parent;
-
     protected MapToolbar controlPanel;
     protected ThemePanel themePanel;
     protected Widget     mapPanel;
@@ -75,8 +75,7 @@
         OutputMode     mode,
         CollectionView collectionView
     ){
-        super(title, collection, mode);
-        this.parent = collectionView;
+        super(title, collection, collectionView, mode);
 
         floodMap = new FloodMap(getSrid(), getMaxExtent());
 
@@ -231,6 +230,13 @@
     }
 
 
+    @Override
+    public void onRedrawRequest(RedrawRequestEvent event) {
+        // TODO FILL ME
+        GWT.log("TODO: Request redraw.");
+    }
+
+
     protected Map getMap() {
         return floodMap.getMap();
     }
@@ -267,11 +273,6 @@
     }
 
 
-    public Artifact getArtifact() {
-        return parent.getArtifact();
-    }
-
-
     public ThemeList getThemeList() {
         return collection.getThemeList(mode.getName());
     }
@@ -395,7 +396,7 @@
 
 
     protected MapToolbar createControlPanel(Canvas wrapper) {
-        return new MapToolbar(floodMap, wrapper, false);
+        return new MapToolbar(this, floodMap, wrapper, false);
     }
 
 

http://dive4elements.wald.intevation.org