Now, let us concentrate on just one column:
Again, so far so good. Now let us remind ourselves that a table is a window onto the data and that
it is very common for a table to show only a subset of that data. What we have is a window into
that data.
If we think of just one column, we see that at any given time, the table shows a set of cells where
each cell corresponds to a column cell in the data. As the user slides the slider, some cells come
into view while others now fall outside the window.
The TableCell object represents a visible cell in a column. As a new entry in the table becomes
visible, the updateItem() method of the TableCell is called which contains the value to be
shown in that cell in the table. When called, the TableCell updates itself to reflect the new data
to be shown.
Editing a table cell
So far we have spoken exclusively about using a table to show the data to the end user without
considering the notion that the user may wish to edit the data. The TableView provides the
capability to edit the data as well as view it. To get started, one of the first things we have to do is
Page 275
Kommentare zu diesen Handbüchern