[Schmitzm-commits] r59 - trunk/src/skrueger/geotools

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Apr 17 19:27:00 CEST 2009


Author: mojays
Date: 2009-04-17 19:26:58 +0200 (Fri, 17 Apr 2009)
New Revision: 59

Modified:
   trunk/src/skrueger/geotools/StyledFeatureCollectionTableModel.java
Log:


Modified: trunk/src/skrueger/geotools/StyledFeatureCollectionTableModel.java
===================================================================
--- trunk/src/skrueger/geotools/StyledFeatureCollectionTableModel.java	2009-04-17 15:55:33 UTC (rev 58)
+++ trunk/src/skrueger/geotools/StyledFeatureCollectionTableModel.java	2009-04-17 17:26:58 UTC (rev 59)
@@ -44,6 +44,8 @@
   protected Map<Integer, AttributeMetaData> visibleAMD = null;
   /** Holds the data source for the table as {@code FeatureSource}. */
   protected FeatureSource featureSource = null;
+  /** Contains the complete {@link AttributeMetaData}-Map of the styled layer. */
+  protected Map<Integer, AttributeMetaData> origAMD = null;
   /** Holds the current filter on the table */
   protected Filter filter = null;
 
@@ -95,6 +97,7 @@
 
     this.featureSource = fs;
     this.filter        = filter;
+    this.origAMD       = amd;
     this.visibleAMD    = null;
     
     FeatureCollection fc = null;
@@ -165,7 +168,7 @@
    */
   public void setFilter(Filter filter) {
     try{
-      setFeatureSource(this.featureSource, this.visibleAMD, filter);
+      setFeatureSource(this.featureSource, this.origAMD, filter);
     } catch (Exception err) {
       throw new RuntimeException(err);
     }



More information about the Schmitzm-commits mailing list