org.gvsig.fmap.mapcontrol.dal.feature.swing.table
Class FeatureTypeListModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by 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

Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
FeatureTypeListModel(org.gvsig.fmap.dal.feature.FeatureStore featureStore, org.gvsig.fmap.dal.feature.FeatureQuery featureQuery)
          Constructs a FeatureTypeListModel.
 
Method Summary
 Object getElementAt(int index)
           
 org.gvsig.fmap.dal.feature.FeatureStore getFeatureStore()
          Returns the FeatureStore
 org.gvsig.fmap.dal.feature.FeatureType getFeatureType(String featureTypeId)
          Returns the FeatureType with the given identifier.
 int getSize()
          Returns the number of FeatureType to show.
 void update(Observable observable, Object notification)
           
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

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.