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 Summary
ConstructorsConstructorDescriptionFeatureStoreModel(org.gvsig.fmap.dal.feature.FeatureStore store) Constructor.FeatureStoreModel(org.gvsig.fmap.dal.feature.FeatureStore store, org.gvsig.fmap.dal.feature.FeatureQuery query) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidReturns theTableModelto use to show data of the current feature type.Returns the id of the currentFeatureType.org.gvsig.fmap.dal.feature.FeatureQueryorg.gvsig.fmap.dal.feature.FeatureStoregetFeatureTableModel(String typeId) Returns theTableModelto use to show data of aFeatureType.getFeatureTableModel(org.gvsig.fmap.dal.feature.FeatureType type) Returns theTableModelto use to show data of aFeatureType.Returns theFeatureTypeListModelto show a list of availableFeatureTypes.voidsetCurrentFeatureTypeId(String currentFeatureTypeId) Sets the id of the currentFeatureType.Methods inherited from class org.gvsig.tools.dispose.impl.AbstractDisposable
dispose, dispose
-
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 fromquery- the FeatureQuery to use to get data- Throws:
org.gvsig.fmap.dal.exception.DataException- if there is an error getting the defaultFeatureType
-
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 defaultFeatureType
-
-
Method Details
-
getFeatureTypeListModel
Returns theFeatureTypeListModelto show a list of availableFeatureTypes.- Returns:
- the
FeatureTypeListModelto show a list of availableFeatureTypes
-
getCurrentFeatureTableModel
Returns theTableModelto 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 theTableModelto use to show data of aFeatureType.- Parameters:
type- to use to filter the data- Returns:
- the TableModel to use
-
getFeatureTableModel
Returns theTableModelto use to show data of aFeatureType.- Parameters:
typeId- the id of theFeatureTypeto use to filter the data- Returns:
- the TableModel to use
-
setCurrentFeatureTypeId
Sets the id of the currentFeatureType.- Parameters:
currentFeatureTypeId- the id of the currentFeatureType
-
getCurrentFeatureTypeId
Returns the id of the currentFeatureType.- 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:
doDisposein classorg.gvsig.tools.dispose.impl.AbstractDisposable- Throws:
org.gvsig.tools.exception.BaseException
-