SalesPoint Framework v3.0

log.swing
Class LogTableModel

java.lang.Object
  |
  +--javax.swing.table.AbstractTableModel
        |
        +--util.swing.AbstractTableModel
              |
              +--log.swing.LogTableModel

public class LogTableModel
extends AbstractTableModel

Swing model for tables that can display log file contents. This model is static and cannot be changed.

Since:
v2.0
Version:
2.0 14/07/1999
Author:
Steffen Zschaler
See Also:
LogInputStream, JLogTable, DefaultLogEntryTED, Serialized Form

Field Summary
protected  Vector m_vcEntries
          The LogEntries in the same order in which they appear in the table.
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
LogTableModel(LogInputStream lis, Comparator cmp, TableEntryDescriptor ted)
          Create a new LogTableModel.
 
Method Summary
 Object getRecord(int nRow)
          Return the LogEntry at row nRow.
 int getRowCount()
          Return the total amount of LogEntries in the model.
 
Methods inherited from class util.swing.AbstractTableModel
getColumnClass, getColumnCount, getColumnName, getEntryDescriptor, getValueAt, isCellEditable, orderByColumn, reOrderBy, setValueAt
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_vcEntries

protected Vector m_vcEntries
The LogEntries in the same order in which they appear in the table.
Constructor Detail

LogTableModel

public LogTableModel(LogInputStream lis,
                     Comparator cmp,
                     TableEntryDescriptor ted)
Create a new LogTableModel. Usually you do not create a new model directly, but rather instantiate a new JLogTable.
Parameters:
lis - the LogInputStream that contains the LogEntries to be displayed. May be filtered.
cmp - a Comparator that defines the order the LogEntries appear in. May be null in which case LogEntries will be sorted by the log date.
ted - a TableEntryDescriptor defining how LogEntries are to be displayed with respect to rows and columns in a table.
See Also:
DefaultLogEntryTED
Method Detail

getRecord

public Object getRecord(int nRow)
Return the LogEntry at row nRow.
Overrides:
getRecord in class AbstractTableModel

getRowCount

public int getRowCount()
Return the total amount of LogEntries in the model.
Overrides:
getRowCount in class AbstractTableModel

SalesPoint Framework v3.0