Class SOAPMonitorApplet.SOAPMonitorTableModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended bySOAPMonitorApplet.SOAPMonitorTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel
Enclosing class:
SOAPMonitorApplet

class SOAPMonitorApplet.SOAPMonitorTableModel
extends javax.swing.table.AbstractTableModel

This table model is used to manage the table displayed at the top of the page to show all the SOAP messages we have received and to control which message details are to be displayed on the bottom of the page.


Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
SOAPMonitorApplet.SOAPMonitorTableModel()
          Constructor
 
Method Summary
 void addData(SOAPMonitorApplet.SOAPMonitorData soap)
          Add data to the table as a new row
 void applyFilter()
          Refilter the list of messages
 void clearAll()
          Remove all messages from the table (but leave "most recent")
 boolean filterMatch(SOAPMonitorApplet.SOAPMonitorData soap)
          Check if soap data matches filter
 SOAPMonitorApplet.SOAPMonitorData findData(java.lang.Long id)
          Find the data for a given id
 int findRow(SOAPMonitorApplet.SOAPMonitorData soap)
          Find the row in the table for a given message id
 int getColumnCount()
          Get column count (part of table model interface)
 java.lang.String getColumnName(int col)
          Get column name (part of table model interface)
 SOAPMonitorApplet.SOAPMonitorData getData(int row)
          Get the data for a row
 int getRowCount()
          Get row count (part of table model interface)
 java.lang.Object getValueAt(int row, int col)
          Get value at (part of table model interface)
 void removeRow(int row)
          Remove a message from the table
 void setFilter(SOAPMonitorApplet.SOAPMonitorFilter filter)
          Set a new filter
 void updateData(SOAPMonitorApplet.SOAPMonitorData soap)
          Update a message
 
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
 

Constructor Detail

SOAPMonitorApplet.SOAPMonitorTableModel

public SOAPMonitorApplet.SOAPMonitorTableModel()
Constructor

Method Detail

getColumnCount

public int getColumnCount()
Get column count (part of table model interface)


getRowCount

public int getRowCount()
Get row count (part of table model interface)


getColumnName

public java.lang.String getColumnName(int col)
Get column name (part of table model interface)


getValueAt

public java.lang.Object getValueAt(int row,
                                   int col)
Get value at (part of table model interface)


filterMatch

public boolean filterMatch(SOAPMonitorApplet.SOAPMonitorData soap)
Check if soap data matches filter


addData

public void addData(SOAPMonitorApplet.SOAPMonitorData soap)
Add data to the table as a new row


findData

public SOAPMonitorApplet.SOAPMonitorData findData(java.lang.Long id)
Find the data for a given id


findRow

public int findRow(SOAPMonitorApplet.SOAPMonitorData soap)
Find the row in the table for a given message id


clearAll

public void clearAll()
Remove all messages from the table (but leave "most recent")


removeRow

public void removeRow(int row)
Remove a message from the table


setFilter

public void setFilter(SOAPMonitorApplet.SOAPMonitorFilter filter)
Set a new filter


applyFilter

public void applyFilter()
Refilter the list of messages


getData

public SOAPMonitorApplet.SOAPMonitorData getData(int row)
Get the data for a row


updateData

public void updateData(SOAPMonitorApplet.SOAPMonitorData soap)
Update a message