edu.indiana.iucbrf.feature.featurespec
Class FeatureSpecCollectionListModel
java.lang.Object
javax.swing.AbstractListModel
edu.indiana.iucbrf.feature.featurespec.FeatureSpecCollectionListModel
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.ListModel
public class FeatureSpecCollectionListModel
- extends javax.swing.AbstractListModel
A ListModel customized for FeatureSpecCollections. The elements of the list
are ObjectJComponentPairs, containing a FeatureSpec, and the corresponding
JPanel displaying that FeatureSpec's details.
- See Also:
- Serialized Form
Fields inherited from class javax.swing.AbstractListModel |
listenerList |
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 |
FeatureSpecCollectionListModel
public FeatureSpecCollectionListModel(FeatureSpecCollection featureSpecCollection)
getElementAt
public java.lang.Object getElementAt(int param)
getFeatureKeyOrder
public java.util.ArrayList getFeatureKeyOrder()
contains
public boolean contains(FeatureSpec featureSpec)
getSize
public int getSize()
replace
public void replace(FeatureSpec oldSpec,
FeatureSpec replacementSpec)
replace
public void replace(int oldSpecIndex,
FeatureSpec replacementSpec)
replace
public void replace(int toReplaceIndex,
FeatureSpec oldSpec,
FeatureSpec replacementSpec)
add
public void add(FeatureSpec featureSpec)
remove
public void remove(int index)