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:
  • Constructor Details

    • 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 from
      featureQuery - to get the FeatureType to filter if any
  • Method Details

    • 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(org.gvsig.tools.observer.Observable observable, Object notification)
      Specified by:
      update in interface org.gvsig.tools.observer.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