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

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

public class BuySideQuotePageEditorCompositeTableModel
extends javax.swing.table.AbstractTableModel

The Class BuySideQuotePageEditorCompositeTableModel.

See Also:
Serialized Form

Constructor Summary
BuySideQuotePageEditorCompositeTableModel(BuySideQuotePage buySideQuotePage, MainPanel mainPanel)
          Instantiates a new buy side quote page editor composite table model.
 
Method Summary
 int getColumnCount()
           
 java.lang.String getColumnName(int column)
           
 DollarFraction getDollarFraction(long security)
          Gets the dollar fraction.
 int getFirstColumnWidth()
          Gets the first column width.
 int getMouseOverRow()
          Gets the mouse over row.
 int getRowCount()
           
 FSecurity getSecurityForRow(int row)
          Gets the security for row.
 UpdateBuySideMDInputEntryResponse getUpdateBuySideMDInputEntryResponse()
          Gets the update buy side md input entry response.
 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 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

BuySideQuotePageEditorCompositeTableModel

public BuySideQuotePageEditorCompositeTableModel(BuySideQuotePage buySideQuotePage,
                                                 MainPanel mainPanel)
Instantiates a new buy side quote page editor composite table model.

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

getColumnCount

public int getColumnCount()

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()

getValueAt

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

isShowYield

public boolean isShowYield()
Checks if is show yield.

Returns:
true, if is show yield

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

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

getSecurityForRow

public FSecurity getSecurityForRow(int row)
Gets the security for row.

Parameters:
row - the row
Returns:
the security for row

getUpdateBuySideMDInputEntryResponse

public UpdateBuySideMDInputEntryResponse getUpdateBuySideMDInputEntryResponse()
Gets the update buy side md input entry response.

Returns:
the update buy side md input entry response

getFirstColumnWidth

public int getFirstColumnWidth()
Gets the first column width.

Returns:
the first column width

getDollarFraction

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

Parameters:
security - the security
Returns:
the dollar fraction