public class

FilteredLogTableModel

extends AbstractTableModel
java.lang.Object
   ↳ javax.swing.table.AbstractTableModel
     ↳ org.apache.log4j.lf5.viewer.FilteredLogTableModel

Class Overview

A TableModel for LogRecords which includes filtering support.

Summary

Fields
protected List _allRecords
protected String[] _colNames
protected LogRecordFilter _filter
protected List _filteredRecords
protected int _maxNumberOfLogRecords
[Expand]
Inherited Fields
From class javax.swing.table.AbstractTableModel
Public Constructors
FilteredLogTableModel()
Public Methods
synchronized boolean addLogRecord(LogRecord record)
synchronized void clear()
Clears all records from the LogTableModel
synchronized void fastRefresh()
int getColumnCount()
String getColumnName(int i)
LogRecordFilter getLogRecordFilter()
int getRowCount()
int getTotalRowCount()
Object getValueAt(int row, int col)
synchronized void refresh()
Forces the LogTableModel to requery its filters to determine which records to display.
void setLogRecordFilter(LogRecordFilter filter)
void setMaxNumberOfLogRecords(int maxNumRecords)
Protected Methods
List createFilteredRecordsList()
Object getColumn(int col, LogRecord lr)
LogRecord getFilteredRecord(int row)
List getFilteredRecords()
boolean needsTrimming()
void trimOldestRecords()
void trimRecords()
[Expand]
Inherited Methods
From class javax.swing.table.AbstractTableModel
From class java.lang.Object
From interface javax.swing.table.TableModel

Fields

protected List _allRecords

protected String[] _colNames

protected LogRecordFilter _filter

protected List _filteredRecords

protected int _maxNumberOfLogRecords

Public Constructors

public FilteredLogTableModel ()

Public Methods

public synchronized boolean addLogRecord (LogRecord record)

public synchronized void clear ()

Clears all records from the LogTableModel

public synchronized void fastRefresh ()

public int getColumnCount ()

public String getColumnName (int i)

public LogRecordFilter getLogRecordFilter ()

public int getRowCount ()

public int getTotalRowCount ()

public Object getValueAt (int row, int col)

public synchronized void refresh ()

Forces the LogTableModel to requery its filters to determine which records to display.

public void setLogRecordFilter (LogRecordFilter filter)

public void setMaxNumberOfLogRecords (int maxNumRecords)

Protected Methods

protected List createFilteredRecordsList ()

protected Object getColumn (int col, LogRecord lr)

protected LogRecord getFilteredRecord (int row)

protected List getFilteredRecords ()

protected boolean needsTrimming ()

protected void trimOldestRecords ()

protected void trimRecords ()