Class FeatureStoreModel

java.lang.Object
org.gvsig.tools.dispose.impl.AbstractDisposable
org.gvsig.fmap.mapcontrol.dal.feature.swing.table.FeatureStoreModel
All Implemented Interfaces:
org.gvsig.tools.dispose.Disposable

public class FeatureStoreModel extends org.gvsig.tools.dispose.impl.AbstractDisposable
A model for the FeatureTypesTablePanel which unifies the access to the different models needed by the components included into it.
Version:
$Id$
Author:
gvSIG Team
  • Constructor Details

    • FeatureStoreModel

      public FeatureStoreModel(org.gvsig.fmap.dal.feature.FeatureStore store, org.gvsig.fmap.dal.feature.FeatureQuery query) throws org.gvsig.fmap.dal.exception.DataException
      Constructor.
      Parameters:
      store - the FeatureStore to get data from
      query - the FeatureQuery to use to get data
      Throws:
      org.gvsig.fmap.dal.exception.DataException - if there is an error getting the default FeatureType
    • FeatureStoreModel

      public FeatureStoreModel(org.gvsig.fmap.dal.feature.FeatureStore store) throws org.gvsig.fmap.dal.exception.DataException
      Constructor.
      Parameters:
      store - the FeatureStore to get data from
      Throws:
      org.gvsig.fmap.dal.exception.DataException - if there is an error getting the default FeatureType
  • Method Details

    • getFeatureTypeListModel

      public FeatureTypeListModel getFeatureTypeListModel()
      Returns the FeatureTypeListModel to show a list of available FeatureTypes.
      Returns:
      the FeatureTypeListModel to show a list of available FeatureTypes
    • getCurrentFeatureTableModel

      public ConfigurableFeatureTableModel getCurrentFeatureTableModel()
      Returns the TableModel to use to show data of the current feature type.
      Returns:
      the TableModel to use
    • getFeatureTableModel

      public ConfigurableFeatureTableModel getFeatureTableModel(org.gvsig.fmap.dal.feature.FeatureType type)
      Returns the TableModel to use to show data of a FeatureType.
      Parameters:
      type - to use to filter the data
      Returns:
      the TableModel to use
    • getFeatureTableModel

      public ConfigurableFeatureTableModel getFeatureTableModel(String typeId)
      Returns the TableModel to use to show data of a FeatureType.
      Parameters:
      typeId - the id of the FeatureType to use to filter the data
      Returns:
      the TableModel to use
    • setCurrentFeatureTypeId

      public void setCurrentFeatureTypeId(String currentFeatureTypeId)
      Sets the id of the current FeatureType.
      Parameters:
      currentFeatureTypeId - the id of the current FeatureType
    • getCurrentFeatureTypeId

      public String getCurrentFeatureTypeId()
      Returns the id of the current FeatureType.
      Returns:
      the id of the current FeatureType
    • getFeatureQuery

      public org.gvsig.fmap.dal.feature.FeatureQuery getFeatureQuery()
      Returns:
      the featureQuery
    • getFeatureStore

      public org.gvsig.fmap.dal.feature.FeatureStore getFeatureStore()
      Returns:
      the featureStore
    • doDispose

      protected void doDispose() throws org.gvsig.tools.exception.BaseException
      Specified by:
      doDispose in class org.gvsig.tools.dispose.impl.AbstractDisposable
      Throws:
      org.gvsig.tools.exception.BaseException