Class PGroupMembersTableModel

All Implemented Interfaces:
Serializable, TableModel

public class PGroupMembersTableModel extends PAbstractMonitorTableModel
PGroupMembersTableModel is a model representing a balance monitor Members details like name First Name ,Last Name, Company and Account Number in each balance monitor the associated Balance monitor.
See Also:
  • Constructor Details

    • PGroupMembersTableModel

      public PGroupMembersTableModel()
      Constructs an PGroupMembersTableModel model
  • Method Details

    • getValueForColumn

      protected Object getValueForColumn(Object element, int columnIndex)
      Returns the cell value from the passed row data structure at columnIndex.
      Specified by:
      getValueForColumn in class PAbstractMonitorTableModel
      Parameters:
      element - Object the row object
      columnIndex - int the column whose value is to be queried
      Returns:
      the value Object at the specified cell
    • getColumnName

      public String getColumnName(int col)
      Returns the name of the column at col. This is used to initialize the table's column header name.
      Specified by:
      getColumnName in interface TableModel
      Overrides:
      getColumnName in class AbstractTableModel
      Parameters:
      col - the index of the column
      Returns:
      the name of the column
    • getColumnCount

      public int getColumnCount()
      Returns the number of columns in the model. A size uses this method to determine how many columns it Should create and display by default.
      Returns:
      int the number of columns in the model
    • setData

      public void setData(ArrayList l)
      Sets data to the model. As well resetting the row height of a table for the updated data.
      Parameters:
      l - ArrayList the members group
    • formatTable

      protected void formatTable(PFCTable table)
      Customizing the table according to derived class needs.
      Overrides:
      formatTable in class PAbstractMonitorTableModel
      Parameters:
      table - JTable Subclasses should override this, but also call super.formatTable(table)
    • formatHandCursor

      protected void formatHandCursor(PFCTable table)
      Shows Hand cursor when the mouse moved on to account number column.
      Overrides:
      formatHandCursor in class PAbstractMonitorTableModel
      Parameters:
      table - PFCTable
    • getAccountPoid

      public Poid getAccountPoid()
      Returns the poid of the account number that was selected. getSelectedRow uses this method to determine the selected row in the table.
      Returns:
      Poid the account poid of the member selected