net.sourceforge.fixagora.buyside.client.model.editor
Class BuySideQuotePageEditorDepthTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by net.sourceforge.fixagora.buyside.client.model.editor.BuySideQuotePageEditorDepthTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class BuySideQuotePageEditorDepthTableModel
extends javax.swing.table.AbstractTableModel

The Class BuySideQuotePageEditorDepthTableModel.

See Also:
Serialized Form

Constructor Summary
BuySideQuotePageEditorDepthTableModel(BuySideQuotePage buySideQuotePage, java.util.Comparator<BuySideQuotePageEntry> comparator, MainPanel mainPanel)
          Instantiates a new buy side quote page editor depth table model.
 
Method Summary
 BuySideQuotePageEntry getBuySideQuotePageEntry(int row)
          Gets the buy side quote page entry.
 int getColumnCount()
           
 java.lang.String getColumnName(int column)
           
 DollarFraction getDollarFraction(long security)
          Gets the dollar fraction.
 int getMouseOverRow()
          Gets the mouse over row.
 int getRowCount()
           
 java.lang.Object getValueAt(int rowIndex, int columnIndex)
           
 boolean isCellEditable(int rowIndex, int columnIndex)
           
 boolean isRepaintRequired()
          Checks if is repaint required.
 boolean isShowYield()
          Checks if is show yield.
 void setMinWidth(int minWidth)
          Sets the min width.
 void setMouseOverRow(int row)
          Sets the mouse over row.
 void setSecurity(long security)
          Sets the security.
 void setTable(javax.swing.JTable table)
          Sets the table.
 void setTableWidth()
          Sets the table width.
 void updateBuySideMDInputEntry(UpdateBuySideMDInputEntryResponse updateBuySideMDInputEntryResponse)
          Update buy side md input entry.
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuySideQuotePageEditorDepthTableModel

public BuySideQuotePageEditorDepthTableModel(BuySideQuotePage buySideQuotePage,
                                             java.util.Comparator<BuySideQuotePageEntry> comparator,
                                             MainPanel mainPanel)
Instantiates a new buy side quote page editor depth table model.

Parameters:
buySideQuotePage - the buy side quote page
comparator - the comparator
mainPanel - the main panel
Method Detail

getColumnCount

public int getColumnCount()

isShowYield

public boolean isShowYield()
Checks if is show yield.

Returns:
true, if is show yield

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

getRowCount

public int getRowCount()

getBuySideQuotePageEntry

public BuySideQuotePageEntry getBuySideQuotePageEntry(int row)
Gets the buy side quote page entry.

Parameters:
row - the row
Returns:
the buy side quote page entry

getValueAt

public java.lang.Object getValueAt(int rowIndex,
                                   int columnIndex)

setMinWidth

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

Parameters:
minWidth - the new min width

setTableWidth

public void setTableWidth()
Sets the table width.


setTable

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

Parameters:
table - the new table

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)
Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.AbstractTableModel

setSecurity

public void setSecurity(long security)
Sets the security.

Parameters:
security - the new security

updateBuySideMDInputEntry

public void updateBuySideMDInputEntry(UpdateBuySideMDInputEntryResponse updateBuySideMDInputEntryResponse)
Update buy side md input entry.

Parameters:
updateBuySideMDInputEntryResponse - the update buy side md input entry response

isRepaintRequired

public boolean isRepaintRequired()
Checks if is repaint required.

Returns:
true, if is repaint required

setMouseOverRow

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

Parameters:
row - the new mouse over row

getMouseOverRow

public int getMouseOverRow()
Gets the mouse over row.

Returns:
the mouse over row

getDollarFraction

public DollarFraction getDollarFraction(long security)
Gets the dollar fraction.

Parameters:
security - the security
Returns:
the dollar fraction