public class BalanceImpactsTableModel extends ListTableModel
dataList, headerListlistenerList| 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, setValueAtaddTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerpublic BalanceImpactsTableModel(ArrayList cols)
cols - public Object getValueForColumn(Object o, int colIndex)
o - ObjectcolIndex - intpublic Class getColumnClass(int columnNo)
getColumnClass in interface TableModelgetColumnClass in class ListTableModelpublic final Object getValueAt(int rowIndex, int columnIndex)
getValueAt in interface TableModelgetValueAt in class ListTableModelrowIndex - 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 TableModelisCellEditable in class ListTableModelrow - col - public void resetTableModelData()
Copyright © 2003, 2023, Oracle and/or its affiliates.