TableModel

Base class for models of Table.

Modulerequire("gui")
TypeClass

For simple use cases, the SimpleTableModel can be used.

For implementing a custom TableModel, please see AbstractTableModel.

Methods

getRowCount()

Return how many rows are in the model.

Return

Integer

getValue(column, row)

Return the data at column and row.

Note that the returned value will be stored as primary types, native objects (for example Images) can not be passed to renderer.

Parameters

Return

Any

setValue(column, row, value)

Change the value at column and row.

Note that the value will be stored as primary types, native objects (for example Images) can not be saved.

Parameters

notifyRowInsertion(row)

Called by implementers to notify the table that a row is inserted.

Parameters

notifyRowDeletion(row)

Called by implementers to notify the table that a row is removed.

Parameters

notifyValueChange(column, row)

Called by implementers to notify the table that the value at column and row has been changed.

Parameters