Package com.portal.app.cc.tailormadeplan
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
- See Also:
-
Field Summary
Fields inherited from class com.portal.pfc.ui.table.ListTableModel
dataList, headerListFields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
ConstructorsConstructorDescriptionconstructs the BalanceImpactsTableModel with the given columnHeaders in the arraylist -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllRows(ArrayList data) Adds the rows to the table model, this is used while populating table's data.getColumnClass(int columnNo) gets the class for the specified columnNofinal ObjectgetValueAt(int rowIndex, int columnIndex) gets the value for the cell at the specified row and columngetValueForColumn(Object o, int colIndex) gets the value for the column at the specified indexbooleanisCellEditable(int row, int col) This determines whether cell is editable.voidresets the data of the table modelMethods inherited from class com.portal.pfc.ui.table.ListTableModel
addColumn, addRow, addRow, addRowBatch, getColumnCount, getColumnName, getDataAt, getDataList, getRowCount, removeAllRows, removeRow, setDataList, setHeaderList, setValueAtMethods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Constructor Details
-
BalanceImpactsTableModel
constructs the BalanceImpactsTableModel with the given columnHeaders in the arraylist- Parameters:
cols-
-
-
Method Details
-
getValueForColumn
gets the value for the column at the specified index- Parameters:
o- ObjectcolIndex- int- Returns:
- Object
-
getColumnClass
gets the class for the specified columnNo- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classListTableModel
-
getValueAt
gets the value for the cell at the specified row and column- Specified by:
getValueAtin interfaceTableModel- Overrides:
getValueAtin classListTableModel- Parameters:
rowIndex- the row whose value is to be looked upcolumnIndex- 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
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:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classListTableModel- Parameters:
row-col-- Returns:
- boolean
-
resetTableModelData
public void resetTableModelData()resets the data of the table model
-