org.archiviststoolkit.mydomain
Class DomainEventTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by ca.odell.glazedlists.swing.EventTableModel
          extended by org.archiviststoolkit.mydomain.DomainEventTableModel
All Implemented Interfaces:
ca.odell.glazedlists.event.ListEventListener, java.io.Serializable, java.util.EventListener, javax.swing.table.TableModel

public class DomainEventTableModel
extends ca.odell.glazedlists.swing.EventTableModel

See Also:
Serialized Form

Field Summary
protected  java.util.ArrayList<DomainObject> domainCollection
          The list of domainobjects to display.
 
Fields inherited from class ca.odell.glazedlists.swing.EventTableModel
source, swingThreadSource
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
DomainEventTableModel(ca.odell.glazedlists.EventList eventList, ca.odell.glazedlists.gui.TableFormat tableFormat)
           
 
Method Summary
 java.util.ArrayList<DomainObject> getDomainCollection()
           
 int getIndex(DomainObject object)
          Get the row index of a specific domain object.
 void setDomainObject(int index, DomainObject object)
           
 void updateCollection(java.util.Collection newCollection)
           
 
Methods inherited from class ca.odell.glazedlists.swing.EventTableModel
createSwingThreadProxyList, dispose, getColumnClass, getColumnCount, getColumnName, getElementAt, getMutableTableModelEvent, getRowCount, getTableFormat, getValueAt, handleListChange, isCellEditable, listChanged, setTableFormat, setValueAt
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

domainCollection

protected java.util.ArrayList<DomainObject> domainCollection
The list of domainobjects to display.

Constructor Detail

DomainEventTableModel

public DomainEventTableModel(ca.odell.glazedlists.EventList eventList,
                             ca.odell.glazedlists.gui.TableFormat tableFormat)
Method Detail

updateCollection

public void updateCollection(java.util.Collection newCollection)

getIndex

public int getIndex(DomainObject object)
Get the row index of a specific domain object.

Parameters:
object - the object in question
Returns:
the index within the row list

getDomainCollection

public java.util.ArrayList<DomainObject> getDomainCollection()

setDomainObject

public void setDomainObject(int index,
                            DomainObject object)