public class FeatureTypeListModel extends javax.swing.AbstractListModel implements Observer
FeatureTypes.| Constructor and Description |
|---|
FeatureTypeListModel(FeatureStore featureStore,
FeatureQuery featureQuery)
Constructs a
FeatureTypeListModel. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getElementAt(int index) |
FeatureStore |
getFeatureStore()
Returns the
FeatureStore |
FeatureType |
getFeatureType(java.lang.String featureTypeId)
Returns the
FeatureType with the given identifier. |
int |
getSize()
Returns the number of
FeatureType to show. |
void |
update(Observable observable,
java.lang.Object notification)
Called whenever a
Observable object is changed and this
Observer has registered on it to receive notifications. |
public FeatureTypeListModel(FeatureStore featureStore, FeatureQuery featureQuery)
FeatureTypeListModel.featureStore - to get the FeatureTypes fromfeatureQuery - to get the FeatureType to filter if anypublic int getSize()
FeatureType to show.getSize in interface javax.swing.ListModelpublic java.lang.Object getElementAt(int index)
getElementAt in interface javax.swing.ListModelpublic void update(Observable observable, java.lang.Object notification)
ObserverObservable object is changed and this
Observer has registered on it to receive notifications.
Implementations of this method will be called for each simple notification or, if a complex notification is created, for each of the child notifications.
In the latter case, don't assume any ordering in the notification between
this Observer and other Observers listening to the same
Observable.
In a complex notification scenario, if you want to receive only the
complex notification and not each of the child notifications, just
implement the ComplexObserver and prepare this method
implementation to handle receiving DefaultComplexNotification instances
as well as direct notification objects.
public FeatureStore getFeatureStore()
FeatureStorepublic FeatureType getFeatureType(java.lang.String featureTypeId)
FeatureType with the given identifier.featureTypeId - identifier of the FeatureTypeFeatureType