SimpleTableModel
A simple implementation of TableModel.
Module | require("yue.gui") |
Type | Class |
Inherits | TableModel |
There is no need to call Notify
methods when using SimpleTableModel
.
Note that all data are stored as primary types, it is not possible to store
a native object (for example Image
s) in table model.
Class methods
create(columns)
Create a SimpleTableModel
with fixed columns
number.
Parameters
integer
columns
Return
SimpleTableModel
Methods
addrow(row)
Add a row.
The length of row
should not be smaller than columns number.
Parameters
table
row
removerowat(index)
Remove the row at index
.
Parameters
integer
index