public class FeatureStoreModel extends Object
FeatureTypesTablePanel
which unifies the access
to the different models needed by the components included into it.Constructor and Description |
---|
FeatureStoreModel(FeatureStore store)
Constructor.
|
FeatureStoreModel(FeatureStore store,
FeatureQuery query)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ConfigurableFeatureTableModel |
getCurrentFeatureTableModel()
Returns the
TableModel to use to show data of the current feature
type. |
String |
getCurrentFeatureTypeId()
Returns the id of the current
FeatureType . |
FeatureQuery |
getFeatureQuery() |
FeatureStore |
getFeatureStore() |
ConfigurableFeatureTableModel |
getFeatureTableModel(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
FeatureType s. |
void |
setCurrentFeatureTypeId(String currentFeatureTypeId)
Sets the id of the current
FeatureType . |
public FeatureStoreModel(FeatureStore store, FeatureQuery query) throws DataException
store
- the FeatureStore to get data fromquery
- the FeatureQuery to use to get dataDataException
- if there is an error getting the default FeatureType
public FeatureStoreModel(FeatureStore store) throws DataException
store
- the FeatureStore to get data fromDataException
- if there is an error getting the default FeatureType
public FeatureTypeListModel getFeatureTypeListModel()
FeatureTypeListModel
to show a list of available
FeatureType
s.FeatureTypeListModel
to show a list of available
FeatureType
spublic ConfigurableFeatureTableModel getCurrentFeatureTableModel()
TableModel
to use to show data of the current feature
type.public ConfigurableFeatureTableModel getFeatureTableModel(FeatureType type)
TableModel
to use to show data of a
FeatureType
.type
- to use to filter the datapublic ConfigurableFeatureTableModel getFeatureTableModel(String typeId)
TableModel
to use to show data of a
FeatureType
.typeId
- the id of the FeatureType
to use to filter the datapublic void setCurrentFeatureTypeId(String currentFeatureTypeId)
FeatureType
.currentFeatureTypeId
- the id of the current FeatureType
public String getCurrentFeatureTypeId()
FeatureType
.FeatureType
public FeatureQuery getFeatureQuery()
public FeatureStore getFeatureStore()