public class BalanceImpactsTableModel extends ListTableModel
dataList, headerList
listenerList
Constructor and Description |
---|
BalanceImpactsTableModel(ArrayList cols)
constructs the BalanceImpactsTableModel with the given columnHeaders in the arraylist
|
Modifier and Type | Method and Description |
---|---|
void |
addAllRows(ArrayList data)
Adds the rows to the table model, this is used while populating table's data.
|
Class |
getColumnClass(int columnNo)
gets the class for the specified columnNo
|
Object |
getValueAt(int rowIndex,
int columnIndex)
gets the value for the cell at the specified row and column
|
Object |
getValueForColumn(Object o,
int colIndex)
gets the value for the column at the specified index
|
boolean |
isCellEditable(int row,
int col)
This determines whether cell is editable.
|
void |
resetTableModelData()
resets the data of the table model
|
addColumn, addRow, addRow, addRowBatch, getColumnCount, getColumnName, getDataAt, getDataList, getRowCount, removeAllRows, removeRow, setDataList, setHeaderList, setValueAt
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public BalanceImpactsTableModel(ArrayList cols)
cols
- public Object getValueForColumn(Object o, int colIndex)
o
- ObjectcolIndex
- intpublic Class getColumnClass(int columnNo)
getColumnClass
in interface TableModel
getColumnClass
in class ListTableModel
public final Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface TableModel
getValueAt
in class ListTableModel
rowIndex
- the row whose value is to be looked upcolumnIndex
- the column whose value is to be looked uppublic void addAllRows(ArrayList data)
data
- public boolean isCellEditable(int row, int col)
isCellEditable
in interface TableModel
isCellEditable
in class ListTableModel
row
- col
- public void resetTableModelData()
Copyright © 2003, 2023, Oracle and/or its affiliates.