public class FeatureStoreModel extends AbstractDisposable
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 |
|---|---|
protected void |
doDispose()
Internal implementation for the
AbstractDisposable.dispose() method, to be
implemented by child classes. |
ConfigurableFeatureTableModel |
getCurrentFeatureTableModel()
Returns the
TableModel to use to show data of the current feature
type. |
java.lang.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(java.lang.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(java.lang.String currentFeatureTypeId)
Sets the id of the current
FeatureType. |
dispose, disposepublic 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 FeatureTypepublic FeatureStoreModel(FeatureStore store) throws DataException
store - the FeatureStore to get data fromDataException - if there is an error getting the default FeatureTypepublic FeatureTypeListModel getFeatureTypeListModel()
FeatureTypeListModel to show a list of available
FeatureTypes.FeatureTypeListModel to show a list of available
FeatureTypespublic 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(java.lang.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(java.lang.String currentFeatureTypeId)
FeatureType.currentFeatureTypeId - the id of the current FeatureTypepublic java.lang.String getCurrentFeatureTypeId()
FeatureType.FeatureTypepublic FeatureQuery getFeatureQuery()
public FeatureStore getFeatureStore()
protected void doDispose()
throws BaseException
AbstractDisposableAbstractDisposable.dispose() method, to be
implemented by child classes.doDispose in class AbstractDisposableBaseExceptionAbstractDisposable.dispose()