org.acm.seguin.uml
Class PackageSummaryListModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by org.acm.seguin.uml.PackageSummaryListModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.ListModel

public class PackageSummaryListModel
extends javax.swing.AbstractListModel

Holds a list of packages for the list box

Author:
Chris Seguin
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
PackageSummaryListModel()
          Constructor for the PackageSummaryListModel object
 
Method Summary
 void add(PackageSummary summary)
          Adds a package summary
 java.lang.Object getElementAt(int index)
          Return the requested item
 int getSize()
          Return the number of items
 
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

PackageSummaryListModel

public PackageSummaryListModel()
Constructor for the PackageSummaryListModel object

Method Detail

getElementAt

public java.lang.Object getElementAt(int index)
Return the requested item

Parameters:
index - the index of the item required
Returns:
The object

getSize

public int getSize()
Return the number of items

Returns:
The size

add

public void add(PackageSummary summary)
Adds a package summary

Parameters:
summary - the new summary