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, headerList
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
ConstructorsConstructorDescriptionconstructs the BalanceImpactsTableModel with the given columnHeaders in the arraylist -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAllRows
(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 Object
getValueAt
(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 indexboolean
isCellEditable
(int row, int col) This determines whether cell is editable.void
resets 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, setValueAt
Methods 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:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classListTableModel
-
getValueAt
gets the value for the cell at the specified row and column- Specified by:
getValueAt
in interfaceTableModel
- Overrides:
getValueAt
in 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:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classListTableModel
- Parameters:
row
-col
-- Returns:
- boolean
-
resetTableModelData
public void resetTableModelData()resets the data of the table model
-