simtools.logging.ui
Class LoggingTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
simtools.logging.ui.AbstractLoggingTableModel
simtools.logging.ui.LoggingTableModel
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.table.TableModel
public class LoggingTableModel
- extends AbstractLoggingTableModel
- See Also:
- Serialized Form
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
entries
protected LoggingEntry[] entries
nbr
protected int nbr
start
protected int start
nbrMax
protected int nbrMax
LoggingTableModel
public LoggingTableModel(MenuResourceBundle menuResources)
LoggingTableModel
public LoggingTableModel(int size,
MenuResourceBundle menuResources)
getSize
public int getSize()
- Specified by:
getSize
in class AbstractLoggingTableModel
- Returns:
- the model max number of rows
setSize
public void setSize(int newsize)
- Description copied from class:
AbstractLoggingTableModel
- Set the model max number o
- Specified by:
setSize
in class AbstractLoggingTableModel
reset
public void reset()
add
public void add(LoggingEntry log)
resize
protected void resize(int newSize)
getRowCount
public int getRowCount()
getValueAt
public java.lang.Object getValueAt(int row,
int column)
getString
protected java.lang.String getString(LoggingEntry log,
int column)
getLevel
public int getLevel(int row)
- Description copied from class:
AbstractLoggingTableModel
- Get the integer level for a given row
This is typically used to color the rows accordingly
- Specified by:
getLevel
in class AbstractLoggingTableModel
- Parameters:
row
- the row number
- Returns:
clearLogs
public void clearLogs()
- Description copied from class:
AbstractLoggingTableModel
- Method clearLogs
Summary:
Use this method to clear the logs.
- Specified by:
clearLogs
in class AbstractLoggingTableModel