|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
org.salespointframework.desktop.models.AbstractTableModel
org.salespointframework.desktop.models.LogTableModel
public class LogTableModel
Swing model for tables that can display log file contents. This model is static and cannot be changed.
LogInputStream
,
JLogTable
,
DefaultLogEntryTED
,
Serialized FormField Summary | |
---|---|
protected java.util.List<LogEntry> |
m_lEntries
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(LogFileContent lfc,
java.util.Comparator<LogEntry> cmp,
TableEntryDescriptor ted)
Create a new LogTableModel. |
Method Summary | |
---|---|
java.lang.Object |
getRecord(int nRow)
Return the LogEntry at row nRow . |
int |
getRowCount()
Return the total amount of LogEntries in the model. |
void |
setData(java.lang.Object n_lModel)
Set the table's data. |
Methods inherited from class org.salespointframework.desktop.models.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, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.List<LogEntry> m_lEntries
Constructor Detail |
---|
public LogTableModel(LogFileContent lfc, java.util.Comparator<LogEntry> cmp, TableEntryDescriptor ted)
JLogTable
.
lfc
- the LogFileContent that contains the LogEntries to be displayed.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.DefaultLogEntryTED
Method Detail |
---|
public void setData(java.lang.Object n_lModel)
setData
in class AbstractTableModel
n_lModel
- the new datapublic java.lang.Object getRecord(int nRow)
nRow
.
getRecord
in class AbstractTableModel
nRow
- the row index for which to return the record. Row indices run from 0 to
getRowCount() - 1
.
null
, instead of throwing an exception,
if the given index is without its bounds.public int getRowCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |