public class FilteredLogTableModel extends AbstractTableModel
Modifier and Type | Field and Description |
---|---|
protected List |
_allRecords |
protected String[] |
_colNames |
protected LogRecordFilter |
_filter |
protected List |
_filteredRecords |
protected int |
_maxNumberOfLogRecords |
listenerList
Constructor and Description |
---|
FilteredLogTableModel() |
Modifier and Type | Method and Description |
---|---|
boolean |
addLogRecord(LogRecord record) |
void |
clear()
Clears all records from the LogTableModel
|
protected List |
createFilteredRecordsList() |
void |
fastRefresh() |
protected Object |
getColumn(int col,
LogRecord lr) |
int |
getColumnCount() |
String |
getColumnName(int i) |
protected LogRecord |
getFilteredRecord(int row) |
protected List |
getFilteredRecords() |
LogRecordFilter |
getLogRecordFilter() |
int |
getRowCount() |
int |
getTotalRowCount() |
Object |
getValueAt(int row,
int col) |
protected boolean |
needsTrimming() |
void |
refresh()
Forces the LogTableModel to requery its filters to determine
which records to display.
|
void |
setLogRecordFilter(LogRecordFilter filter) |
void |
setMaxNumberOfLogRecords(int maxNumRecords) |
protected void |
trimOldestRecords() |
protected void |
trimRecords() |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
protected LogRecordFilter _filter
protected List _allRecords
protected List _filteredRecords
protected int _maxNumberOfLogRecords
protected String[] _colNames
public void setLogRecordFilter(LogRecordFilter filter)
public LogRecordFilter getLogRecordFilter()
public String getColumnName(int i)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public int getColumnCount()
public int getRowCount()
public int getTotalRowCount()
public Object getValueAt(int row, int col)
public void setMaxNumberOfLogRecords(int maxNumRecords)
public boolean addLogRecord(LogRecord record)
public void refresh()
public void fastRefresh()
public void clear()
protected List getFilteredRecords()
protected List createFilteredRecordsList()
protected LogRecord getFilteredRecord(int row)
protected void trimRecords()
protected boolean needsTrimming()
protected void trimOldestRecords()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.