V
- Value type stored in the tablepublic static interface TableModel.Listener<V>
TableModel
class which can be attached to a TableModel
to be notified
of changes to the table model.Modifier and Type | Method | Description |
---|---|---|
void |
onCellChanged(TableModel<V> model,
int row,
int column,
V oldValue,
V newValue) |
Called when an existing cell had its content updated
|
void |
onColumnAdded(TableModel<V> model,
int index) |
Called when a new column has been added to the model
|
void |
onColumnRemoved(TableModel<V> model,
int index,
String oldHeader,
List<V> oldColumn) |
Called when a column has been removed from the model
|
void |
onRowAdded(TableModel<V> model,
int index) |
Called when a new row has been added to the model
|
void |
onRowRemoved(TableModel<V> model,
int index,
List<V> oldRow) |
Called when a row has been removed from the model
|
void onRowAdded(TableModel<V> model, int index)
model
- Model the row was added toindex
- Index of the new rowvoid onRowRemoved(TableModel<V> model, int index, List<V> oldRow)
model
- Model the row was removed fromindex
- Index of the removed rowoldRow
- Content of the row that was removedvoid onColumnAdded(TableModel<V> model, int index)
model
- Model the column was added toindex
- Index of the new columnvoid onColumnRemoved(TableModel<V> model, int index, String oldHeader, List<V> oldColumn)
model
- Model the column was removed fromindex
- Index of the removed columnoldHeader
- Header the removed column hadoldColumn
- Values in the removed columnvoid onCellChanged(TableModel<V> model, int row, int column, V oldValue, V newValue)
model
- Model that was modifiedrow
- Row index of the modified cellcolumn
- Column index of the modified celloldValue
- Previous value of the cellnewValue
- New value of the cellCopyright © 2020. All rights reserved.