diff flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartThemePanel.java @ 527:902609b5cc79

Added a navigation panel to the bottom of the theme control panel to move themes up/down (function not implemented yet). flys-client/trunk@2007 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 25 May 2011 16:23:16 +0000
parents 96e60e0a4345
children 39d9291513cc
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartThemePanel.java	Wed May 25 14:58:42 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartThemePanel.java	Wed May 25 16:23:16 2011 +0000
@@ -3,6 +3,7 @@
 import com.google.gwt.core.client.GWT;
 import com.google.gwt.user.client.rpc.AsyncCallback;
 
+import com.smartgwt.client.types.Alignment;
 import com.smartgwt.client.types.ListGridFieldType;
 import com.smartgwt.client.util.SC;
 import com.smartgwt.client.widgets.Canvas;
@@ -21,6 +22,8 @@
 
 import de.intevation.flys.client.client.Config;
 import de.intevation.flys.client.client.FLYSConstants;
+import de.intevation.flys.client.client.event.OnMoveEvent;
+import de.intevation.flys.client.client.event.OnMoveHandler;
 import de.intevation.flys.client.client.services.CollectionAttributeService;
 import de.intevation.flys.client.client.services.CollectionAttributeServiceAsync;
 
@@ -28,8 +31,10 @@
 /**
  * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
  */
-public class ChartThemePanel extends Canvas implements EditCompleteHandler {
-
+public class ChartThemePanel
+extends      Canvas
+implements   EditCompleteHandler, OnMoveHandler
+{
     /** The interface that provides i18n messages. */
     private FLYSConstants MSG = GWT.create(FLYSConstants.class);
 
@@ -49,12 +54,16 @@
 
     protected ListGrid list;
 
+    protected ThemeNavigationPanel navigation;
+
 
 
     public ChartThemePanel(Collection collection, OutputMode mode) {
         this.collection = collection;
         this.mode       = mode;
         this.list       = new ListGrid();
+        this.navigation = new ThemeNavigationPanel();
+        this.navigation.addOnMoveHandler(this);
 
         initGrid();
         initLayout();
@@ -75,6 +84,7 @@
         layout.setHeight100();
 
         layout.addMember(list);
+        layout.addMember(navigation);
 
         addChild(layout);
     }
@@ -243,5 +253,12 @@
             }
         });
     }
+
+
+    public void onMove(OnMoveEvent event) {
+        GWT.log("ChartThemePanel.onMove: " + event.getType());
+
+        // TODO IMPLEMENT ME
+    }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org