Save This Page
Home » apache-log4j-1.2.15 » org.apache » log4j » chainsaw » [javadoc | source]
org.apache.log4j.chainsaw
class: MyTableModel [javadoc | source]
java.lang.Object
   javax.swing.table.AbstractTableModel
      org.apache.log4j.chainsaw.MyTableModel

All Implemented Interfaces:
    Serializable, TableModel

Represents a list of EventDetails objects that are sorted on logging time. Methods are provided to filter the events that are visible.
Constructor:
 MyTableModel() 
Method from org.apache.log4j.chainsaw.MyTableModel Summary:
addEvent,   clear,   getColumnClass,   getColumnCount,   getColumnName,   getEventDetails,   getRowCount,   getValueAt,   isPaused,   setCategoryFilter,   setMessageFilter,   setNDCFilter,   setPriorityFilter,   setThreadFilter,   toggle
Methods from javax.swing.table.AbstractTableModel:
addTableModelListener,   findColumn,   fireTableCellUpdated,   fireTableChanged,   fireTableDataChanged,   fireTableRowsDeleted,   fireTableRowsInserted,   fireTableRowsUpdated,   fireTableStructureChanged,   getColumnClass,   getColumnName,   getListeners,   getTableModelListeners,   isCellEditable,   removeTableModelListener,   setValueAt
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.log4j.chainsaw.MyTableModel Detail:
 public  void addEvent(EventDetails aEvent) 
    Add an event to the list.
 public  void clear() 
    Clear the list of all events.
 public Class getColumnClass(int aCol) 
 public int getColumnCount() 
 public String getColumnName(int aCol) 
 public EventDetails getEventDetails(int aRow) 
    Get the throwable information at a specified row in the filtered events.
 public int getRowCount() 
 public Object getValueAt(int aRow,
    int aCol) 
 public boolean isPaused() 
 public  void setCategoryFilter(String aStr) 
    Set the filter for the category field.
 public  void setMessageFilter(String aStr) 
    Set the filter for the message field.
 public  void setNDCFilter(String aStr) 
    Set the filter for the NDC field.
 public  void setPriorityFilter(Priority aPriority) 
    Sets the priority to filter events on. Only events of equal or higher property are now displayed.
 public  void setThreadFilter(String aStr) 
    Set the filter for the thread field.
 public  void toggle() 
    Toggle whether collecting events