|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
com.mindtree.techworks.insight.model.LogEventTableModel
public class LogEventTableModel
The LogEventTableModel class is a derivative of the Swing AbstractTableModel.
It defines the table model used by the log viewer to display LoggingEvent summary information.
javax.swing.AbstractTableModel,
LoggingEvent,
Serialized Form| Field Summary | |
|---|---|
static int |
CATEGORY_INDEX
|
static int |
CLASS_INDEX
|
static java.util.HashMap |
COL_NAMES
|
static int |
EXCEPTION_NAME_INDEX
|
static int |
FILE_INDEX
|
static int |
FIRST_INDEX
|
static int |
LAST_INDEX
|
static int |
LINE_INDEX
|
static int |
MESSAGE_INDEX
|
static int |
METHOD_INDEX
|
static int |
PRIORITY_INDEX
|
static int |
RELATIVETIME_INDEX
|
static int |
THREAD_INDEX
|
static int |
TIME_INDEX
|
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
LogEventTableModel(int[] columnList)
Constructor for this class |
|
| Method Summary | |
|---|---|
void |
addLogEvent(LogEvent event)
Adds the specified LoggingEvent to the list of events rendered by the JTable backed by this AbstractTableModel |
void |
changeDisplayColumns(int[] columnList)
Dynamically changes the columns displayed by this model to the ones specified |
void |
clearModel()
Clears the data contained by this TableModel. |
int |
getColumnCount()
Superclass method implementation |
int[] |
getColumnList()
|
java.lang.String |
getColumnName(int col)
Superclass method implementation |
LogEvent |
getLoggingEvent(int index)
Gets the LogEvent from the model, identifed by the specified index |
int |
getRowCount()
Superclass method implementation |
int |
getSortOrder(int columnIndex)
Returns the sort order for the column specified by the columnIndex |
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
Superclass method implementation |
void |
setColumnList(int[] columnList)
|
void |
sortColumn(int columnIndex)
Sorts the data held by this TableModel. |
void |
updateDataModel(java.util.List logEventList)
Updates this TableModel with the data specified. |
void |
updateDataModelAndDisplay(java.util.List logEventList)
Updates this TableModel and the display with the data specified. |
| 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 |
| Field Detail |
|---|
public static final java.util.HashMap COL_NAMES
public static final int FIRST_INDEX
public static final int TIME_INDEX
public static final int THREAD_INDEX
public static final int PRIORITY_INDEX
public static final int CATEGORY_INDEX
public static final int MESSAGE_INDEX
public static final int EXCEPTION_NAME_INDEX
public static final int METHOD_INDEX
public static final int LINE_INDEX
public static final int FILE_INDEX
public static final int CLASS_INDEX
public static final int RELATIVETIME_INDEX
public static final int LAST_INDEX
| Constructor Detail |
|---|
public LogEventTableModel(int[] columnList)
int - array containing valid column identifiers defined in this class| Method Detail |
|---|
public void changeDisplayColumns(int[] columnList)
columnList - int array containing valid column identifiers defined in this classpublic int getRowCount()
TableModel.getRowCount()public int getColumnCount()
TableModel.getColumnCount()public java.lang.String getColumnName(int col)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelTableModel.getColumnName(int)public void addLogEvent(LogEvent event)
event - the LogEvent to be added to the modelpublic LogEvent getLoggingEvent(int index)
index - index of the LogEvent in the internal List
public java.lang.Object getValueAt(int rowIndex,
int columnIndex)
TableModel.getValueAt(int, int)public void sortColumn(int columnIndex)
columnIndex - the index of column data that needs to be sortedpublic int getSortOrder(int columnIndex)
columnIndex - the index of the column whose sort order is needed
public void clearModel()
public void updateDataModel(java.util.List logEventList)
logEventList - the List of LogEvent instances to update this model withpublic void updateDataModelAndDisplay(java.util.List logEventList)
logEventList - the List of LogEvent instances to displaypublic int[] getColumnList()
public void setColumnList(int[] columnList)
columnList - The columnList to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||