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

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

public class AssignedBuySideSecurityTableModel
extends javax.swing.table.AbstractTableModel

The Class AssignedBuySideSecurityTableModel.

See Also:
Serialized Form

Constructor Summary
AssignedBuySideSecurityTableModel(BuySideBookEditor buySideBookEditor)
          Instantiates a new assigned buy side security table model.
 
Method Summary
 void addAssignedBuySideBookSecurity(AssignedBuySideBookSecurity assignedBuySideBookSecurity)
          Adds the assigned buy side book security.
 AssignedBuySideBookSecurity get(int index)
          Gets the.
 AbstractBusinessObjectEditor getAbstractBusinessObjectEditor()
          Gets the abstract business object editor.
 int getColumnCount()
           
 java.lang.String getColumnName(int column)
           
 int getRowCount()
           
 java.lang.Object getValueAt(int rowIndex, int columnIndex)
           
 boolean isCellEditable(int rowIndex, int columnIndex)
           
 boolean isDirty()
          Checks if is dirty.
 void modified()
          Modified.
 void remove(AssignedBuySideBookSecurity assignedBuySideBookSecurity)
          Removes the.
 void save()
          Save.
 void setMinWidth(int minWidth)
          Sets the min width.
 void setTable(javax.swing.JTable table)
          Sets the table.
 void setTableWidth()
          Sets the table width.
 void updateAssignedInitiatorSecurities(java.util.List<AssignedBuySideBookSecurity> list)
          Update assigned initiator securities.
 
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

AssignedBuySideSecurityTableModel

public AssignedBuySideSecurityTableModel(BuySideBookEditor buySideBookEditor)
Instantiates a new assigned buy side security table model.

Parameters:
buySideBookEditor - the buy side book editor
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)

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

getAbstractBusinessObjectEditor

public AbstractBusinessObjectEditor getAbstractBusinessObjectEditor()
Gets the abstract business object editor.

Returns:
the abstract business object editor

isDirty

public boolean isDirty()
Checks if is dirty.

Returns:
true, if is dirty

save

public void save()
Save.


updateAssignedInitiatorSecurities

public void updateAssignedInitiatorSecurities(java.util.List<AssignedBuySideBookSecurity> list)
Update assigned initiator securities.

Parameters:
list - the list

addAssignedBuySideBookSecurity

public void addAssignedBuySideBookSecurity(AssignedBuySideBookSecurity assignedBuySideBookSecurity)
Adds the assigned buy side book security.

Parameters:
assignedBuySideBookSecurity - the assigned buy side book security

remove

public void remove(AssignedBuySideBookSecurity assignedBuySideBookSecurity)
Removes the.

Parameters:
assignedBuySideBookSecurity - the assigned buy side book security

get

public AssignedBuySideBookSecurity get(int index)
Gets the.

Parameters:
index - the index
Returns:
the assigned buy side book security

modified

public void modified()
Modified.