|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectjavax.swing.table.AbstractTableModel
javax.swing.table.DefaultTableModel
cz.cuni.amis.nb.pogamut.base.logging.LogTableModel
public class LogTableModel
Table model designed to cooperate with LogRecordsSource object through LogRecordListener interface.
| Nested Class Summary | |
|---|---|
class |
LogTableModel.LogLevelObject
|
| Field Summary | |
|---|---|
protected static SimpleDateFormat |
dateFormat
Time formater displaying milliseconds. |
| Fields inherited from class javax.swing.table.DefaultTableModel |
|---|
columnIdentifiers, dataVector |
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
LogTableModel()
Creates a new instance of LogTableModel |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class javax.swing.table.DefaultTableModel |
|---|
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, setValueAt |
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static SimpleDateFormat dateFormat
| Constructor Detail |
|---|
public LogTableModel()
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||