net.sourceforge.fixagora.sellside.client.model.editor
Class SellSideBookEditorMonitorTableModel

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

public class SellSideBookEditorMonitorTableModel
extends javax.swing.table.AbstractTableModel

The Class SellSideBookEditorMonitorTableModel.

See Also:
Serialized Form

Constructor Summary
SellSideBookEditorMonitorTableModel(SellSideBook sellSideBook, MainPanel mainPanel)
          Instantiates a new sell side book editor monitor table model.
 
Method Summary
 int getColumnCount()
           
 java.lang.String getColumnName(int column)
           
 AbstractSellSideEntry getEntryForRow()
          Gets the entry for row.
 int getLastOffset(java.lang.String text)
          Gets the last offset.
 int getLimitOffset(java.lang.String text)
          Gets the limit offset.
 int getMouseOverRow()
          Gets the mouse over row.
 int getRowCount()
           
static java.lang.String getTimeLabel(long time)
          Gets the time label.
 java.lang.Object getValueAt(int rowIndex, int columnIndex)
           
 boolean isCanceled(int row)
          Checks if is canceled.
 boolean isCellEditable(int rowIndex, int columnIndex)
           
 boolean isCompleteFilled(int row)
          Checks if is complete filled.
 boolean isRepaintRequired()
          Checks if is repaint required.
 boolean isShowYield()
          Checks if is show yield.
 boolean isUpdated(int row)
          Checks if is updated.
 void onNewOrderSingleResponse(NewOrderSingleResponse newOrderSingleResponse)
          On new order single response.
 void onOpenSellSideBookResponse(OpenSellSideBookResponse openSellSideBookResponse)
          On open sell side book response.
 void onSellSideQuoteRequestResponse(SellSideQuoteRequestResponse sellSideQuoteRequestResponse)
          On sell side quote request response.
 void resetUpdate()
          Reset update.
 void setMinWidth(int minWidth)
          Sets the min width.
 boolean setMouseOverRow(int row)
          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, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SellSideBookEditorMonitorTableModel

public SellSideBookEditorMonitorTableModel(SellSideBook sellSideBook,
                                           MainPanel mainPanel)
Instantiates a new sell side book editor monitor table model.

Parameters:
sellSideBook - the sell side book
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()

isShowYield

public boolean isShowYield()
Checks if is show yield.

Returns:
true, if is show yield

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

isRepaintRequired

public boolean isRepaintRequired()
Checks if is repaint required.

Returns:
true, if is repaint required

setMouseOverRow

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

Parameters:
row - the row
Returns:
true, if successful

getMouseOverRow

public int getMouseOverRow()
Gets the mouse over row.

Returns:
the mouse over row

onNewOrderSingleResponse

public void onNewOrderSingleResponse(NewOrderSingleResponse newOrderSingleResponse)
On new order single response.

Parameters:
newOrderSingleResponse - the new order single response

onOpenSellSideBookResponse

public void onOpenSellSideBookResponse(OpenSellSideBookResponse openSellSideBookResponse)
On open sell side book response.

Parameters:
openSellSideBookResponse - the open sell side book response

getLimitOffset

public int getLimitOffset(java.lang.String text)
Gets the limit offset.

Parameters:
text - the text
Returns:
the limit offset

getLastOffset

public int getLastOffset(java.lang.String text)
Gets the last offset.

Parameters:
text - the text
Returns:
the last offset

getEntryForRow

public AbstractSellSideEntry getEntryForRow()
Gets the entry for row.

Returns:
the entry for row

isUpdated

public boolean isUpdated(int row)
Checks if is updated.

Parameters:
row - the row
Returns:
true, if is updated

resetUpdate

public void resetUpdate()
Reset update.


isCanceled

public boolean isCanceled(int row)
Checks if is canceled.

Parameters:
row - the row
Returns:
true, if is canceled

isCompleteFilled

public boolean isCompleteFilled(int row)
Checks if is complete filled.

Parameters:
row - the row
Returns:
true, if is complete filled

onSellSideQuoteRequestResponse

public void onSellSideQuoteRequestResponse(SellSideQuoteRequestResponse sellSideQuoteRequestResponse)
On sell side quote request response.

Parameters:
sellSideQuoteRequestResponse - the sell side quote request response

getTimeLabel

public static java.lang.String getTimeLabel(long time)
Gets the time label.

Parameters:
time - the time
Returns:
the time label