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:
java.io.Serializable, javax.swing.ListModel, org.gvsig.tools.observer.Observer

public class FeatureTypeListModel
extends javax.swing.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:
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
 java.lang.Object getElementAt(int index)
           
 org.gvsig.fmap.dal.feature.FeatureStore getFeatureStore()
          Returns the FeatureStore
 org.gvsig.fmap.dal.feature.FeatureType getFeatureType(java.lang.String featureTypeId)
          Returns the FeatureType with the given identifier.
 int getSize()
          Returns the number of FeatureType to show.
 void update(org.gvsig.tools.observer.Observable observable, java.lang.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

getElementAt

public java.lang.Object getElementAt(int index)
Specified by:
getElementAt in interface javax.swing.ListModel

getFeatureStore

public org.gvsig.fmap.dal.feature.FeatureStore getFeatureStore()
Returns the FeatureStore

Returns:
the featureStore

getFeatureType

public org.gvsig.fmap.dal.feature.FeatureType getFeatureType(java.lang.String featureTypeId)
Returns the FeatureType with the given identifier.

Parameters:
featureTypeId - identifier of the FeatureType
Returns:
a FeatureType

getSize

public int getSize()
Returns the number of FeatureType to show.

Specified by:
getSize in interface javax.swing.ListModel

update

public void update(org.gvsig.tools.observer.Observable observable,
                   java.lang.Object notification)
Specified by:
update in interface org.gvsig.tools.observer.Observer


Copyright © 2014 gvSIG Association. All Rights Reserved.