org.archiviststoolkit.mydomain
Class DomainEventTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
ca.odell.glazedlists.swing.EventTableModel
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
Fields inherited from class ca.odell.glazedlists.swing.EventTableModel |
swingThreadSource |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary |
DomainEventTableModel(ca.odell.glazedlists.EventList eventList,
ca.odell.glazedlists.gui.TableFormat tableFormat)
|
Methods inherited from class ca.odell.glazedlists.swing.EventTableModel |
dispose, getColumnClass, getColumnCount, getColumnName, getElementAt, getRowCount, getTableFormat, getValueAt, 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 |
domainCollection
protected java.util.ArrayList<DomainObject> domainCollection
- The list of domainobjects to display.
DomainEventTableModel
public DomainEventTableModel(ca.odell.glazedlists.EventList eventList,
ca.odell.glazedlists.gui.TableFormat tableFormat)
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)