|
Log4JMonitor v1.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.table.AbstractTableModel | +--org.alltimeflashdreamer.log4jmonitor.MyTableModel
Title: MyTableModel
Description: Represents a list of LoggingEvent
objects that are sorted
on logging time. Methods are provided to filter the events that are visible.
This code has been copied from the authors below.
Field Summary | |
(package private) static String[] |
COL_NAMES
names of the columns in the table |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
(package private) |
MyTableModel()
Creates a new MyTableModel instance. |
Method Summary | |
void |
addEvent(LoggingEvent event)
Add a LoggingEvent to the list. |
void |
clear()
Clear the list of all events. |
Class |
getColumnClass(int iColumnIndex)
Returns the class of the specified column. |
int |
getColumnCount()
Returns the (current) amount of columns, each containing one attribute of the LoggingEvents. |
String |
getColumnName(int iColumnIndex)
Returns the name of the specified column. Note: No exception handling is implemented for invalid column indexes. |
LoggingEvent |
getLoggingEvent(int iRowIndex)
Get the throwable information at a specified row in the filtered events. Note: No exception handling is implemented for invalid row indexes. |
int |
getRowCount()
Returns the (current) amount of rows, each containing on LoggingEvent. |
Object |
getValueAt(int iRowIndex,
int iColumnIndex)
Returns the object within the table having the given coordinates. Note: No exception handling is implemented for invalid row indexes; invalid column indexes are treated as the index of the error message column. |
boolean |
isPaused()
|
void |
setLevelFilter(Level level)
Sets the level to filter events on. |
void |
setLoggerFilter(String str)
Set the filter for the logger field. |
void |
setMessageFilter(String str)
Set the filter for the message field. |
void |
setThreadFilter(String str)
Set the filter for the thread field. |
void |
toggle()
Toggle collecting state (switch from "collecting" to "pausing" and vice versa). |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, isCellEditable, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
|
Field Detail |
static final String[] COL_NAMES
Constructor Detail |
MyTableModel()
MyTableModel
instance.Method Detail |
public int getRowCount()
getRowCount
in class AbstractTableModel
TableModel
public int getColumnCount()
getColumnCount
in class AbstractTableModel
TableModel
public String getColumnName(int iColumnIndex)
getColumnName
in class AbstractTableModel
iColumnIndex
- the index of the column, starting with 0TableModel
public Class getColumnClass(int iColumnIndex)
getColumnClass
in class AbstractTableModel
iColumnIndex
- the index of the column, starting with 0TableModel
public Object getValueAt(int iRowIndex, int iColumnIndex)
getValueAt
in class AbstractTableModel
iRowIndex
- the index of the row, starting with 0iColumnIndex
- the index of the column, starting with 0TableModel
public void setLevelFilter(Level level)
level
- the level to filter onLevel
public void setThreadFilter(String str)
str
- the string to matchpublic void setMessageFilter(String str)
str
- the string to matchpublic void setLoggerFilter(String str)
str
- the string to matchpublic void addEvent(LoggingEvent event)
event
- a LoggingEvent
valuepublic void clear()
public void toggle()
public boolean isPaused()
public LoggingEvent getLoggingEvent(int iRowIndex)
iRowIndex
- Description of the Parameter
|
Copyright (c) 1999/2000 by apache.org, 2001/02 by Sven Mosimann, Adrian Seiler and Florian Steinsiepe | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |