Class FeatureTypeListModel
java.lang.Object
javax.swing.AbstractListModel
org.gvsig.fmap.mapcontrol.dal.feature.swing.table.FeatureTypeListModel
- All Implemented Interfaces:
Serializable,ListModel,org.gvsig.tools.observer.Observer
public class FeatureTypeListModel
extends AbstractListModel
implements org.gvsig.tools.observer.Observer
Model to be used by components showing a list of
FeatureTypes.- Version:
- $Id$
- Author:
- gvSIG Team
- See Also:
-
Field Summary
Fields inherited from class javax.swing.AbstractListModel
listenerList -
Constructor Summary
ConstructorsConstructorDescriptionFeatureTypeListModel(org.gvsig.fmap.dal.feature.FeatureStore featureStore, org.gvsig.fmap.dal.feature.FeatureQuery featureQuery) Constructs aFeatureTypeListModel. -
Method Summary
Modifier and TypeMethodDescriptiongetElementAt(int index) org.gvsig.fmap.dal.feature.FeatureStoreReturns theFeatureStoreorg.gvsig.fmap.dal.feature.FeatureTypegetFeatureType(String featureTypeId) Returns theFeatureTypewith the given identifier.intgetSize()Returns the number ofFeatureTypeto show.voidMethods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
-
Constructor Details
-
FeatureTypeListModel
public FeatureTypeListModel(org.gvsig.fmap.dal.feature.FeatureStore featureStore, org.gvsig.fmap.dal.feature.FeatureQuery featureQuery) Constructs aFeatureTypeListModel.- Parameters:
featureStore- to get theFeatureTypes fromfeatureQuery- to get the FeatureType to filter if any
-
-
Method Details
-
getSize
public int getSize()Returns the number ofFeatureTypeto show. -
getElementAt
- Specified by:
getElementAtin interfaceListModel
-
update
- Specified by:
updatein interfaceorg.gvsig.tools.observer.Observer
-
getFeatureStore
public org.gvsig.fmap.dal.feature.FeatureStore getFeatureStore()Returns theFeatureStore- Returns:
- the featureStore
-
getFeatureType
Returns theFeatureTypewith the given identifier.- Parameters:
featureTypeId- identifier of theFeatureType- Returns:
- a
FeatureType
-