10.7. Constructing a CellTable
The CellTable is exactly what you probably think it is—a table made up of cells. Each column has the same type of cell, and you can place headers and footers on the table (spanning several columns if required). Tables can have pagers applied to them, and, interestingly, you can apply ascending/descending sorts on columns and create custom renderers that allow you to have expandable rows/data spanning across columns.
In this section we’ll concentrate on creating a table using the default renderer and how to apply sorting with both list and asynchronous backed data. We’ll hold off on the custom rendering until the next section on DataGrid. Figure 10.19 shows the example CellTable created for this section.
Figure ...
Get GWT in Action, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.