Class CaltellaTableModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byCaltellaTableModel
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.

Peers Screenshot including a table

Events Screenshot including a table

See Also:
Caltella.org, Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
CaltellaTableModel(ArrayList Names)
           
 
Method Summary
 void addColumn(String name)
           
 int addRow()
           
 int addRow(ArrayList row)
           
 void deleteRow(int row)
           
 int getColumnCount()
           
 String getColumnName(int col)
           
 int getRowCount()
           
 Object getValueAt(int row, int col)
           
 boolean isCellEditable(int row, int col)
           
 void setValueAt(Object value, int row, int col)
           
 
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
 

Constructor Detail

CaltellaTableModel

public CaltellaTableModel(ArrayList Names)
Parameters:
Names - Defines the columNames of this Table
Method Detail

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)