org.gvsig.fmap.mapcontrol.dal.feature.swing.table
Class FeatureStoreModel

java.lang.Object
  extended by org.gvsig.fmap.mapcontrol.dal.feature.swing.table.FeatureStoreModel

public class FeatureStoreModel
extends Object

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
FeatureStoreModel(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
 ConfigurableFeatureTableModel getCurrentFeatureTableModel()
          Returns the TableModel to use to show data of the current feature type.
 String getCurrentFeatureTypeId()
          Returns the id of the current FeatureType.
 org.gvsig.fmap.dal.feature.FeatureQuery getFeatureQuery()
           
 org.gvsig.fmap.dal.feature.FeatureStore getFeatureStore()
           
 ConfigurableFeatureTableModel getFeatureTableModel(org.gvsig.fmap.dal.feature.FeatureType type)
          Returns the TableModel to use to show data of a FeatureType.
 ConfigurableFeatureTableModel getFeatureTableModel(String typeId)
          Returns the TableModel to use to show data of a FeatureType.
 FeatureTypeListModel getFeatureTypeListModel()
          Returns the FeatureTypeListModel to show a list of available FeatureTypes.
 void setCurrentFeatureTypeId(String currentFeatureTypeId)
          Sets the id of the current FeatureType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

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


Copyright © 2004-2013 gvSIG. All Rights Reserved.