|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--javax.swing.table.AbstractTableModel
|
+--de.qfs.apps.qflog.logview.LogTableModel
This is a TableModel for LogEntries.
| Field Summary | |
static int |
COL_CLASS
Index for the class column. |
static int |
COL_DETAIL
Index for the message column. |
static int |
COL_ENTRY
Pseudo index for the LogEntry column. |
static int |
COL_LEVEL
Index for the level column. |
static int |
COL_METHOD
Index for the method column. |
static int |
COL_THREAD
Index for the thread column. |
static int |
COL_TIME
Index for the timestamp column. |
static int |
NUM_COLUMNS
Number of columns |
protected de.qfs.apps.qflog.logview.LogTableModel.Updater |
updater
Background thread that updates the table's data. |
| Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
| Fields inherited from interface de.qfs.lib.log.LogUser |
FILTER_ALL,
FILTER_NONE,
FILTER_UNUSED,
FILTER_USED |
| Constructor Summary | |
LogTableModel()
Create a new LogTableModel. |
|
| Method Summary | |
void |
cleanup()
Remove all data and terminate the Updater thread. |
boolean |
filter(de.qfs.lib.log.LogEntry logEntry)
Add a LogEntry to the table's data. |
de.qfs.lib.log.LogEntry[] |
filter(de.qfs.lib.log.LogEntry[] entries)
Add some LogEntries to the table's data. |
void |
finalize()
Finalize the LogTableModel. |
java.lang.Class |
getColumnClass(int column)
Get a common base class for elements from one column. |
int |
getColumnCount()
Get the number of columns in the table. |
java.lang.String |
getColumnName(int column)
Get the name of a column. |
de.qfs.lib.log.LogEntry[] |
getData()
Get the whole table data. |
int |
getDeleted()
Get the number of deleted rows. |
de.qfs.lib.log.LogEntry |
getEntry(int row)
Get an entry from the table. |
int |
getMaxRows()
Get the maximum number of rows of the LogTableModel. |
int |
getRowCount()
Get the number of rows in the table. |
java.lang.Object |
getValueAt(int row,
int column)
Get a table cell value. |
void |
reduceToVisible(de.qfs.lib.gui.TableModelFilter filter)
Remove all invisible Rows from the table. |
void |
removeVisible(de.qfs.lib.gui.TableModelFilter filter)
Remove all visible Rows from the table. |
void |
setColumnNames(java.lang.String[] names)
Set the names for the table columns. |
void |
setData(de.qfs.lib.log.LogEntry[] data)
Reset the table's date to a whole new set of LogEntries. |
void |
setFilterMode(int mode)
Configure the LogUser's filter mode. |
void |
setLoggingEnabled(boolean enable)
Enable or disable logging output caused directly or indirectly by LogTableModel methods. |
void |
setMaxRows(int maxRows)
Set the maximum number of rows of the LogTableModel. |
| Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener,
findColumn,
fireTableCellUpdated,
fireTableChanged,
fireTableDataChanged,
fireTableRowsDeleted,
fireTableRowsInserted,
fireTableRowsUpdated,
fireTableStructureChanged,
isCellEditable,
removeTableModelListener,
setValueAt |
| Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final int COL_LEVEL
public static final int COL_TIME
public static final int COL_THREAD
public static final int COL_CLASS
public static final int COL_METHOD
public static final int COL_DETAIL
public static final int NUM_COLUMNS
public static final int COL_ENTRY
protected de.qfs.apps.qflog.logview.LogTableModel.Updater updater
| Constructor Detail |
public LogTableModel()
| Method Detail |
public void setColumnNames(java.lang.String[] names)
names - A 6 element String array containing the column titles
in the order level, time, thread, class, method,
message.public final void setLoggingEnabled(boolean enable)
de.qfs.lib.log.Log.excludeThread.
This is necessary, if the LogFilterTreeModel is used inside the
application whose logs it is supposed to filter. The default value is false.
enable - True to enable logging, false to disable it.public de.qfs.lib.log.LogEntry getEntry(int row)
row - The entry's row.public de.qfs.lib.log.LogEntry[] getData()
public void setData(de.qfs.lib.log.LogEntry[] data)
data - The new table data.public int getDeleted()
public final int getMaxRows()
public final void setMaxRows(int maxRows)
maxRows - The new maximum number of rows. 0 means unlimited.public void reduceToVisible(de.qfs.lib.gui.TableModelFilter filter)
filter - The filter that decides which rows to keep.public void removeVisible(de.qfs.lib.gui.TableModelFilter filter)
filter - The filter that decides which rows to keep.public void cleanup()
public java.lang.String getColumnName(int column)
column - The column to query.public int getColumnCount()
public java.lang.Class getColumnClass(int column)
column - The column to query.public int getRowCount()
public java.lang.Object getValueAt(int row,
int column)
COL_ENTRY. The whole LogEntry will be
rturned for this column.row - The row index.column - The column index.public boolean filter(de.qfs.lib.log.LogEntry logEntry)
logEntry - The entry to add.setFilterMode.public de.qfs.lib.log.LogEntry[] filter(de.qfs.lib.log.LogEntry[] entries)
entries - The entries to add.setFilterMode.public final void setFilterMode(int mode)
LogUser.FILTER_ALL.mode - The mode to set. LogUser.FILTER_USED and LogUser.FILTER_ALL will cause all entries to be
eaten, LogUser.FILTER_NONE
and LogUser.FILTER_UNUSEDwill let all entries pass.public void finalize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||