edu.indiana.iucbrf.feature.featurespec
Class FeatureSpecCollectionListModel

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

Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
FeatureSpecCollectionListModel(FeatureSpecCollection featureSpecCollection)
           
 
Method Summary
 void add(FeatureSpec featureSpec)
           
 boolean contains(FeatureSpec featureSpec)
           
 java.lang.Object getElementAt(int param)
           
 java.util.ArrayList getFeatureKeyOrder()
           
 int getSize()
           
 void remove(int index)
           
 void replace(FeatureSpec oldSpec, FeatureSpec replacementSpec)
           
 void replace(int oldSpecIndex, FeatureSpec replacementSpec)
           
 void replace(int toReplaceIndex, FeatureSpec oldSpec, FeatureSpec replacementSpec)
           
 
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

FeatureSpecCollectionListModel

public FeatureSpecCollectionListModel(FeatureSpecCollection featureSpecCollection)
Method Detail

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)