Class CaltellaTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
CaltellaTableModel
- All Implemented Interfaces:
- Serializable, TableModel
- public class CaltellaTableModel
- extends AbstractTableModel
The CaltellaTableModel will be used by those classes including a
JTable in the JPanel. Like Peers
and Events
.
- See Also:
- Caltella.org>,
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 |
CaltellaTableModel
public CaltellaTableModel(ArrayList Names)
- Parameters:
Names
- Defines the columNames of this Table
getColumnName
public String getColumnName(int col)
getColumnCount
public int getColumnCount()
getRowCount
public int getRowCount()
getValueAt
public Object getValueAt(int row,
int col)
- Returns:
null
for a "blank" cell or the value in the cell
isCellEditable
public boolean isCellEditable(int row,
int col)
setValueAt
public void setValueAt(Object value,
int row,
int col)
addColumn
public void addColumn(String name)
addRow
public int addRow()
addRow
public int addRow(ArrayList row)
deleteRow
public void deleteRow(int row)