diff flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartThemePanel.java @ 1555:c057ef91b268

Refactored Collection reference out of Panels. flys-client/trunk@3794 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 27 Jan 2012 13:02:38 +0000
parents 0b79630e3bcb
children d738132d64b9
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartThemePanel.java	Fri Jan 27 12:47:25 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartThemePanel.java	Fri Jan 27 13:02:38 2012 +0000
@@ -54,9 +54,6 @@
     /** The interface that provides i18n messages. */
     protected FLYSConstants MSG = GWT.create(FLYSConstants.class);
 
-    /** The collection */
-    protected Collection collection;
-
     public static final String GRID_FIELD_ACTIVE  = "active";
     public static final String GRID_FIELD_NAME    = "name";
     public static final String GRID_FIELD_ACTIONS = "actions";
@@ -67,12 +64,10 @@
 
     /** Constructor for a ChartThemePanel. */
     public ChartThemePanel(
-        Collection collection,
         OutputMode mode,
         CollectionView view
     ) {
-        super(collection, mode, view);
-        this.collection = collection;
+        super(mode, view);
 
         initGrid();
         initLayout();
@@ -253,7 +248,7 @@
         Recommendation[] recommendations = new Recommendation[] {area};
 
         loadService.loadMany(
-            this.collection,
+            this.getCollection(),
             recommendations,
             null, //use individual factories.
             locale,

http://dive4elements.wald.intevation.org