|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
simtools.logging.ui.AbstractLoggingTableModel
public abstract class AbstractLoggingTableModel
| Field Summary | |
|---|---|
protected static int |
LEVEL_SCALE_FACTOR
(int) LEVEL_SCALE_FACTOR: the scale factor to be used, not to represent all the levels. |
protected static java.lang.String[] |
levelNames
(String[]) levelNames: The correspondance between log level and string representation. |
protected MenuResourceBundle |
menuResources
menu resources |
protected java.text.DateFormat |
timeFormatter
|
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
AbstractLoggingTableModel(MenuResourceBundle resources)
|
|
| Method Summary | |
|---|---|
abstract void |
clearLogs()
Method clearLogs Summary: Use this method to clear the logs. |
int |
getColumnCount()
|
java.lang.String |
getColumnName(int col)
|
abstract int |
getLevel(int row)
Get the integer level for a given row This is typically used to color the rows accordingly |
abstract int |
getSize()
|
protected void |
loadLevelNames()
Configure level names |
abstract void |
setSize(int newsize)
Set the model max number o |
| 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 |
| Methods inherited from interface javax.swing.table.TableModel |
|---|
getRowCount, getValueAt |
| Field Detail |
|---|
protected static java.lang.String[] levelNames
protected static final int LEVEL_SCALE_FACTOR
protected final MenuResourceBundle menuResources
protected java.text.DateFormat timeFormatter
| Constructor Detail |
|---|
public AbstractLoggingTableModel(MenuResourceBundle resources)
| Method Detail |
|---|
public abstract void clearLogs()
public abstract int getLevel(int row)
row - the row number
public abstract void setSize(int newsize)
newsize - public abstract int getSize()
protected void loadLevelNames()
public java.lang.String getColumnName(int col)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelpublic int getColumnCount()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||