net.sourceforge.fixpusher.model.log
Class LogTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by net.sourceforge.fixpusher.model.log.LogTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel, FIXMessageFilterListener, FIXPropertyListener

public class LogTableModel
extends javax.swing.table.AbstractTableModel
implements FIXMessageFilterListener, FIXPropertyListener

The Class LogTableModel.

See Also:
Serialized Form

Constructor Summary
LogTableModel(FIXProperties fixProperties)
          Instantiates a new log table model.
 
Method Summary
 void addMessage(quickfix.Message message)
          Adds the message.
 void adoptValues()
          Adopt values.
 void clear()
          Clear.
 void fixMessageFilterChanged()
          Fix message filter changed.
 void fixPropertyChanged(java.util.List<quickfix.Message> messages)
          Fix property changed.
 int getColumnCount()
           
 java.lang.String getColumnName(int column)
           
 FIXMainMessagePanel getFIXMainMessagePanel()
          Gets the fIX main message panel.
 quickfix.Message getMessage(int row)
          Gets the message.
 int getMouseOverRow()
          Gets the mouse over row.
 int getRowCount()
           
 java.lang.Object getValueAt(int rowIndex, int columnIndex)
           
 void resetFilter()
          Reset filter.
 void setFIXMainMessagePanel(FIXMainMessagePanel component)
          Sets the fIX main message panel.
 void setMinWidth(int minWidth)
          Sets the min width.
 void setMouseOverRow(int y)
          Sets the mouse over row.
 void setTable(javax.swing.JTable table)
          Sets the table.
 void setTableWidth()
          Sets the table width.
 
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogTableModel

public LogTableModel(FIXProperties fixProperties)
Instantiates a new log table model.

Parameters:
fixProperties - the fix properties
Method Detail

addMessage

public void addMessage(quickfix.Message message)
Adds the message.

Parameters:
message - the message

adoptValues

public void adoptValues()
Adopt values.


clear

public void clear()
Clear.


fixMessageFilterChanged

public void fixMessageFilterChanged()
Description copied from interface: FIXMessageFilterListener
Fix message filter changed.

Specified by:
fixMessageFilterChanged in interface FIXMessageFilterListener

fixPropertyChanged

public void fixPropertyChanged(java.util.List<quickfix.Message> messages)
Description copied from interface: FIXPropertyListener
Fix property changed.

Specified by:
fixPropertyChanged in interface FIXPropertyListener
Parameters:
messages - the messages

getColumnCount

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

getColumnName

public java.lang.String getColumnName(int column)
Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel

getFIXMainMessagePanel

public FIXMainMessagePanel getFIXMainMessagePanel()
Gets the fIX main message panel.

Returns:
the fIX main message panel

getMessage

public quickfix.Message getMessage(int row)
Gets the message.

Parameters:
row - the row
Returns:
the message

getMouseOverRow

public int getMouseOverRow()
Gets the mouse over row.

Returns:
the mouse over row

getRowCount

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

getValueAt

public java.lang.Object getValueAt(int rowIndex,
                                   int columnIndex)
Specified by:
getValueAt in interface javax.swing.table.TableModel

resetFilter

public void resetFilter()
Reset filter.


setFIXMainMessagePanel

public void setFIXMainMessagePanel(FIXMainMessagePanel component)
Sets the fIX main message panel.

Parameters:
component - the new fIX main message panel

setMinWidth

public void setMinWidth(int minWidth)
Sets the min width.

Parameters:
minWidth - the new min width

setMouseOverRow

public void setMouseOverRow(int y)
Sets the mouse over row.

Parameters:
y - the new mouse over row

setTable

public void setTable(javax.swing.JTable table)
Sets the table.

Parameters:
table - the new table

setTableWidth

public void setTableWidth()
Sets the table width.