gcspy.vis
Class TimersTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by gcspy.vis.TimersTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

 class TimersTableModel
extends javax.swing.table.AbstractTableModel

Model for the table of timers

Author:
Tony Printezis

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
TimersTableModel()
          Create a new model for the timers table
 
Method Summary
 java.lang.Class<?> getColumnClass(int c)
          Get the class of objects in a column
 int getColumnCount()
           
 int getRowCount()
           
 java.lang.Object getValueAt(int row, int col)
           
 boolean isCellEditable(int row, int col)
          No cells are editable
 void setData(int elapsedTime, int compensationTime)
          Set the data for the timers table
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnName, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimersTableModel

TimersTableModel()
Create a new model for the timers table

Method Detail

getColumnCount

public int getColumnCount()

getRowCount

public int getRowCount()

getValueAt

public java.lang.Object getValueAt(int row,
                                   int col)

getColumnClass

public java.lang.Class<?> getColumnClass(int c)
Get the class of objects in a column

Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class javax.swing.table.AbstractTableModel
Parameters:
c - the column index
Returns:
the column's class

isCellEditable

public boolean isCellEditable(int row,
                              int col)
No cells are editable

Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.AbstractTableModel
Returns:
false

setData

public void setData(int elapsedTime,
                    int compensationTime)
Set the data for the timers table

Parameters:
elapsedTime - The elapsed time
compensationTime - The compensation time