TableModel
Base class for models of Table.
| Module | require("yue.gui") | 
| Type | Class | 
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
integergetvalue(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
- integercolumn
- integerrow
Return
anysetvalue(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
- integercolumn
- integerrow
- anyvalue
notifyrowinsertion(row)
Called by implementers to notify the table that a row is inserted.
Parameters
- integerrow
notifyrowdeletion(row)
Called by implementers to notify the table that a row is removed.
Parameters
- integerrow
notifyvaluechange(column, row)
Called by implementers to notify the table that the value at column and
row has been changed.
Parameters
- integercolumn
- integerrow