org.owasp.webscarab.ui.swing
Class ConversationTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by org.owasp.webscarab.util.swing.ExtensibleTableModel
          extended by org.owasp.webscarab.ui.swing.ConversationTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class ConversationTableModel
extends ExtensibleTableModel

Author:
knoppix
See Also:
Serialized Form

Field Summary
protected  java.util.logging.Logger _logger
           
protected  ConversationModel _model
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
ConversationTableModel(ConversationModel model)
          Creates a new instance of ConversationTableModel
 
Method Summary
protected  void addedConversation(ConversationEvent evt)
           
protected  void changedConversations()
           
 java.lang.Class getColumnClass(int column)
          Returns the most specific superclass for all the cell values in the column.
 int getColumnCount()
           
 java.lang.String getColumnName(int column)
          Returns the name of the column at column.
 java.lang.Object getKeyAt(int row)
           
 int getRowCount()
           
 java.lang.Object getValueAt(int row, int column)
           
 int indexOfKey(java.lang.Object key)
           
protected  void removedConversation(ConversationEvent evt)
           
 
Methods inherited from class org.owasp.webscarab.util.swing.ExtensibleTableModel
addColumn, getValueAt, removeColumn
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, 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

_model

protected ConversationModel _model

_logger

protected java.util.logging.Logger _logger
Constructor Detail

ConversationTableModel

public ConversationTableModel(ConversationModel model)
Creates a new instance of ConversationTableModel

Method Detail

getKeyAt

public java.lang.Object getKeyAt(int row)
Specified by:
getKeyAt in class ExtensibleTableModel

indexOfKey

public int indexOfKey(java.lang.Object key)
Specified by:
indexOfKey in class ExtensibleTableModel

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface javax.swing.table.TableModel
Specified by:
getRowCount in class ExtensibleTableModel

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface javax.swing.table.TableModel
Overrides:
getColumnCount in class ExtensibleTableModel

getValueAt

public java.lang.Object getValueAt(int row,
                                   int column)
Specified by:
getValueAt in interface javax.swing.table.TableModel
Overrides:
getValueAt in class ExtensibleTableModel

getColumnName

public java.lang.String getColumnName(int column)
Returns the name of the column at column. This is used to initialize the table's column header name. Note: this name does not need to be unique; two columns in a table can have the same name.

Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class ExtensibleTableModel
Parameters:
column - the index of the column
Returns:
the name of the column

getColumnClass

public java.lang.Class getColumnClass(int column)
Returns the most specific superclass for all the cell values in the column. This is used by the JTable to set up a default renderer and editor for the column.

Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class ExtensibleTableModel
Parameters:
column - the index of the column
Returns:
the common ancestor class of the object values in the model.

addedConversation

protected void addedConversation(ConversationEvent evt)

removedConversation

protected void removedConversation(ConversationEvent evt)

changedConversations

protected void changedConversations()