au.com.zip.cs
Class EntityTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
au.com.zip.cs.EntityTableModel
- All Implemented Interfaces:
- Serializable, TableModel
public class EntityTableModel
- extends AbstractTableModel
A TableModel for an Entity.
- Author:
- Cameron Simpson <cs@zip.com.au> 22jul2003
- See Also:
- Serialized Form
| Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityTableModel
public EntityTableModel(Entity e)
- Construct an EntityTableModel for the the supplied
Entity.
- Parameters:
e - the Entity to present
getEntity
public final Entity getEntity()
- Return the
Entity presented by this model.
- Returns:
- the Entity
getRowCount
public int getRowCount()
getColumnCount
public int getColumnCount()
isCellEditable
public boolean isCellEditable(int row,
int column)
- Specified by:
isCellEditable in interface TableModel- Overrides:
isCellEditable in class AbstractTableModel
getColumnName
public String getColumnName(int column)
- Specified by:
getColumnName in interface TableModel- Overrides:
getColumnName in class AbstractTableModel
getValueAt
public Object getValueAt(int row,
int column)
setValueAt
public void setValueAt(Object value,
int row,
int column)
- Specified by:
setValueAt in interface TableModel- Overrides:
setValueAt in class AbstractTableModel