diff flys-client/src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java @ 854:67c678903280

Refactored to allow specialized controls within the ChartThemePanel, stubby first steps towards such a control (bound to FeedService). flys-client/trunk@2641 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 02 Sep 2011 13:20:06 +0000
parents f43d06d6a4a2
children 9f07f67f60a5
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java	Fri Sep 02 13:14:43 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java	Fri Sep 02 13:20:06 2011 +0000
@@ -31,8 +31,10 @@
 
 
 public abstract class ThemePanel
-extends    Canvas
-implements OnMoveHandler, EditCompleteHandler, HasOutputParameterChangeHandlers
+extends               Canvas
+implements            OnMoveHandler,
+                      EditCompleteHandler,
+                      HasOutputParameterChangeHandlers
 {
     protected CollectionAttributeServiceAsync updater =
         GWT.create(CollectionAttributeService.class);
@@ -48,13 +50,18 @@
     protected ListGrid list;
 
 
+    /**
+     * Setup Grid, navigation bar.
+     * @param collection Collection for which to show themes.
+     */
     public ThemePanel(Collection collection, OutputMode mode) {
         this.collection  = collection;
         this.mode        = mode;
-        this.list        = new ListGrid();
+
+        this.list        = createGrid();
+
         this.outHandlers = new ArrayList<OutputParameterChangeHandler>();
         this.navigation  = new ThemeNavigationPanel();
-
         this.navigation.addOnMoveHandler(this);
     }
 
@@ -176,6 +183,12 @@
     }
 
 
+    /**
+     * Create and configure the Grid to display.
+     */
+    protected ListGrid createGrid() {
+        return new ListGrid();
+    }
 
 
     /**

http://dive4elements.wald.intevation.org