public class LogTableModel extends DefaultTableModel implements LogRecordListener
| Modifier and Type | Class and Description |
|---|---|
class |
LogTableModel.LogLevelObject |
| Modifier and Type | Field and Description |
|---|---|
protected static SimpleDateFormat |
dateFormat
Time formater displaying milliseconds.
|
columnIdentifiers, dataVectorlistenerList| Constructor and Description |
|---|
LogTableModel()
Creates a new instance of LogTableModel
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDataSource(LogRecordsSource source)
Adds new data source.
|
Set<LogRecordsSource> |
getDataSources()
Return all datasources this model wants to listens to.
|
int |
getRowLimit()
Return maximal number of rows of this table.
|
boolean |
isCellEditable(int rowIndex,
int columnIndex)
No cells are editable.
|
boolean |
isFreezed() |
protected Vector |
logRecToVector(LogRecord r)
Translates log record to vector - this is required by default table model since
it is based on old Java collections.
|
void |
notifyNewLogRecord(LogRecord r)
Adds new single log record.
|
void |
removeAllDataSources() |
void |
removeDataSource(LogRecordsSource source) |
void |
setFreeze(boolean freezed)
Freezes or unfreezes the log window.
|
void |
setNewData(Collection<LogRecord> r)
Delete all data in table model and populate the model with new data.
|
void |
setRowLimit(int limit) |
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAtaddTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListenerprotected static SimpleDateFormat dateFormat
public void setFreeze(boolean freezed)
freezed - public boolean isFreezed()
public Set<LogRecordsSource> getDataSources()
public boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface TableModelisCellEditable in class DefaultTableModelpublic void addDataSource(LogRecordsSource source)
public void removeDataSource(LogRecordsSource source)
public void removeAllDataSources()
protected Vector logRecToVector(LogRecord r)
public void notifyNewLogRecord(LogRecord r)
notifyNewLogRecord in interface LogRecordListenerr - new record.public void setRowLimit(int limit)
public int getRowLimit()
public void setNewData(Collection<LogRecord> r)
setNewData in interface LogRecordListenerr - Collection of new records.Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.