diff flys-client/src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java @ 1474:0ba23e6fef0c

Refactored, set collectionview in Themepanels constructors. flys-client/trunk@3519 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 22 Dec 2011 08:58:33 +0000
parents e8aec81af22b
children 8c911c935b58
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java	Thu Dec 22 08:53:15 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java	Thu Dec 22 08:58:33 2011 +0000
@@ -43,6 +43,8 @@
 import de.intevation.flys.client.client.services.CollectionItemAttributeService;
 import de.intevation.flys.client.client.services.CollectionItemAttributeServiceAsync;
 
+import de.intevation.flys.client.client.ui.ThemePanel;
+
 /**
  * ThemePanel on the left in CollectionView.
  * Contains control widgets for "themes", which are plotted in a diagram (chart).
@@ -86,10 +88,15 @@
      * 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        = createGrid();
+    public ThemePanel(
+        Collection collection,
+        OutputMode mode,
+        CollectionView view
+    ) {
+        this.collection = collection;
+        this.mode       = mode;
+        this.list       = createGrid();
+        this.view       = view;
         list.addRowContextClickHandler(new RowContextClickHandler() {
             public void onRowContextClick(RowContextClickEvent event) {
                 ListGridRecord[] records = list.getSelection();

http://dive4elements.wald.intevation.org