/[schmitzm]/trunk/src/skrueger/geotools/StyledFeatureCollectionTableModel.java
ViewVC logotype

Diff of /trunk/src/skrueger/geotools/StyledFeatureCollectionTableModel.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 58 by mojays, Fri Apr 17 15:55:33 2009 UTC revision 59 by mojays, Fri Apr 17 17:26:58 2009 UTC
# Line 44  public class StyledFeatureCollectionTabl Line 44  public class StyledFeatureCollectionTabl
44    protected Map<Integer, AttributeMetaData> visibleAMD = null;    protected Map<Integer, AttributeMetaData> visibleAMD = null;
45    /** Holds the data source for the table as {@code FeatureSource}. */    /** Holds the data source for the table as {@code FeatureSource}. */
46    protected FeatureSource featureSource = null;    protected FeatureSource featureSource = null;
47      /** Contains the complete {@link AttributeMetaData}-Map of the styled layer. */
48      protected Map<Integer, AttributeMetaData> origAMD = null;
49    /** Holds the current filter on the table */    /** Holds the current filter on the table */
50    protected Filter filter = null;    protected Filter filter = null;
51    
# Line 95  public class StyledFeatureCollectionTabl Line 97  public class StyledFeatureCollectionTabl
97    
98      this.featureSource = fs;      this.featureSource = fs;
99      this.filter        = filter;      this.filter        = filter;
100        this.origAMD       = amd;
101      this.visibleAMD    = null;      this.visibleAMD    = null;
102            
103      FeatureCollection fc = null;      FeatureCollection fc = null;
# Line 165  public class StyledFeatureCollectionTabl Line 168  public class StyledFeatureCollectionTabl
168     */     */
169    public void setFilter(Filter filter) {    public void setFilter(Filter filter) {
170      try{      try{
171        setFeatureSource(this.featureSource, this.visibleAMD, filter);        setFeatureSource(this.featureSource, this.origAMD, filter);
172      } catch (Exception err) {      } catch (Exception err) {
173        throw new RuntimeException(err);        throw new RuntimeException(err);
174      }      }

Legend:
Removed from v.58  
changed lines
  Added in v.59

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26