public class FeatureTypeListModel extends AbstractListModel implements Observer
FeatureType
s.listenerList
Constructor and Description |
---|
FeatureTypeListModel(FeatureStore featureStore,
FeatureQuery featureQuery)
Constructs a
FeatureTypeListModel . |
Modifier and Type | Method and Description |
---|---|
Object |
getElementAt(int index) |
FeatureStore |
getFeatureStore()
Returns the
FeatureStore |
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)
Called whenever a
Observable object is changed and this
Observer has registered on it to receive notifications. |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
public FeatureTypeListModel(FeatureStore featureStore, FeatureQuery featureQuery)
FeatureTypeListModel
.featureStore
- to get the FeatureType
s fromfeatureQuery
- to get the FeatureType to filter if anypublic int getSize()
FeatureType
to show.public Object getElementAt(int index)
getElementAt
in interface ListModel
public void update(Observable observable, Object notification)
Observer
Observable
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 Observer
s 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()
FeatureStore
public FeatureType getFeatureType(String featureTypeId)
FeatureType
with the given identifier.featureTypeId
- identifier of the FeatureType
FeatureType