org.gvsig.fmap.mapcontrol.dal.feature.swing.table
Class FeatureTypeListModel
java.lang.Object
javax.swing.AbstractListModel
org.gvsig.fmap.mapcontrol.dal.feature.swing.table.FeatureTypeListModel
- All Implemented Interfaces:
- Serializable, ListModel, Observer
public class FeatureTypeListModel
- extends AbstractListModel
- implements Observer
Model to be used by components showing a list of FeatureTypes.
- Version:
- $Id$
- Author:
- gvSIG Team
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FeatureTypeListModel
public FeatureTypeListModel(org.gvsig.fmap.dal.feature.FeatureStore featureStore,
org.gvsig.fmap.dal.feature.FeatureQuery featureQuery)
- Constructs a
FeatureTypeListModel.
- Parameters:
featureStore - to get the FeatureTypes fromfeatureQuery - to get the FeatureType to filter if any
getSize
public int getSize()
- Returns the number of
FeatureType to show.
- Specified by:
getSize in interface ListModel
getElementAt
public Object getElementAt(int index)
- Specified by:
getElementAt in interface ListModel
update
public void update(Observable observable,
Object notification)
- Specified by:
update in interface Observer
getFeatureStore
public org.gvsig.fmap.dal.feature.FeatureStore getFeatureStore()
- Returns the
FeatureStore
- Returns:
- the featureStore
getFeatureType
public org.gvsig.fmap.dal.feature.FeatureType getFeatureType(String featureTypeId)
- Returns the
FeatureType with the given identifier.
- Parameters:
featureTypeId - identifier of the FeatureType
- Returns:
- a
FeatureType
Copyright © 2004-2013 gvSIG. All Rights Reserved.