Holger's
Java API

com.antelmann.timeregister
Class TimeRangeSummaryTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by com.antelmann.timeregister.TimeRangeSummaryTableModel
All Implemented Interfaces:
Serializable, TableModel

public class TimeRangeSummaryTableModel
extends AbstractTableModel

provides a table model that displays the current standing of all enabled employees based on net times (w/o break time)

Author:
Holger Antelmann
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
TimeRangeSummaryTableModel(PunchAdminDB db, Date from, Date until)
           
 
Method Summary
 Class getColumnClass(int column)
           
 int getColumnCount()
           
 String getColumnName(int column)
           
 int getRowCount()
           
 Object getValueAt(int row, int column)
           
 void refresh(PunchAdminDB db, Date from, Date until)
           
 void sortByColumn(int column)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeRangeSummaryTableModel

public TimeRangeSummaryTableModel(PunchAdminDB db,
                                  Date from,
                                  Date until)
                           throws DatabaseException
Throws:
DatabaseException
Method Detail

sortByColumn

public void sortByColumn(int column)

refresh

public void refresh(PunchAdminDB db,
                    Date from,
                    Date until)
             throws DatabaseException
Throws:
DatabaseException

getRowCount

public int getRowCount()

getColumnCount

public int getColumnCount()

getColumnName

public String getColumnName(int column)
Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel

getColumnClass

public Class getColumnClass(int column)
Specified by:
getColumnClass in interface TableModel
Overrides:
getColumnClass in class AbstractTableModel

getValueAt

public Object getValueAt(int row,
                         int column)


(c) 2001-2006 Holger Antelmann - all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads