Class BalanceImpactsTableModel

java.lang.Object
javax.swing.table.AbstractTableModel
com.portal.pfc.ui.table.ListTableModel
com.portal.app.cc.tailormadeplan.BalanceImpactsTableModel
All Implemented Interfaces:
Serializable, TableModel

public class BalanceImpactsTableModel extends ListTableModel
See Also:
  • Constructor Details

    • BalanceImpactsTableModel

      public BalanceImpactsTableModel(ArrayList cols)
      constructs the BalanceImpactsTableModel with the given columnHeaders in the arraylist
      Parameters:
      cols -
  • Method Details

    • getValueForColumn

      public Object getValueForColumn(Object o, int colIndex)
      gets the value for the column at the specified index
      Parameters:
      o - Object
      colIndex - int
      Returns:
      Object
    • getColumnClass

      public Class getColumnClass(int columnNo)
      gets the class for the specified columnNo
      Specified by:
      getColumnClass in interface TableModel
      Overrides:
      getColumnClass in class ListTableModel
    • getValueAt

      public final Object getValueAt(int rowIndex, int columnIndex)
      gets the value for the cell at the specified row and column
      Specified by:
      getValueAt in interface TableModel
      Overrides:
      getValueAt in class ListTableModel
      Parameters:
      rowIndex - the row whose value is to be looked up
      columnIndex - the column whose value is to be looked up
      Returns:
      the value of the object at the given cell, or null if the data model is empty.
    • addAllRows

      public void addAllRows(ArrayList data)
      Adds the rows to the table model, this is used while populating table's data.
      Parameters:
      data -
    • isCellEditable

      public boolean isCellEditable(int row, int col)
      This determines whether cell is editable.
      Specified by:
      isCellEditable in interface TableModel
      Overrides:
      isCellEditable in class ListTableModel
      Parameters:
      row -
      col -
      Returns:
      boolean
    • resetTableModelData

      public void resetTableModelData()
      resets the data of the table model