diff flys-client/src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java @ 1327:8a93fb299e64

#288 Added legend symbols to the MapThemePanel. flys-client/trunk@2971 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 14 Oct 2011 12:46:46 +0000
parents c4c957a9c092
children aa2313e0f18d
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java	Fri Oct 14 08:36:29 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java	Fri Oct 14 12:46:46 2011 +0000
@@ -193,13 +193,18 @@
                 continue;
             }
 
-            list.addData(new FacetRecord(theme));
+            list.addData(createRecord(theme));
         }
 
         fireOutputParameterChanged();
     }
 
 
+    protected ListGridRecord createRecord(Theme theme) {
+        return new FacetRecord(theme);
+    }
+
+
     /**
      * This method triggers the CollectionAttributeService. Based on the current
      * collectin settings, the attribute of the collection is modified or not.
@@ -238,7 +243,7 @@
      * Create and configure the Grid to display.
      */
     protected ListGrid createGrid() {
-        ListGrid grid =  new ListGrid();
+        ListGrid grid = createNewGrid();
         grid.addRowContextClickHandler(new RowContextClickHandler() {
             public void onRowContextClick(RowContextClickEvent event) {
                 ListGridRecord[] records = list.getSelection();
@@ -268,6 +273,11 @@
     }
 
 
+    protected ListGrid createNewGrid() {
+        return new ListGrid();
+    }
+
+
     /**
      * A method that removes all records from theme grid.
      */

http://dive4elements.wald.intevation.org