concept DataGrid in category gwt

appears as: DataGrid
GWT in Action

This is an excerpt from Manning's book GWT in Action.

Cells can’t survive on their own and need to be used within a cell widget, which provides the necessary context and other management aspects. GWT 2.5 contains six cell widgets: CellWidget, CellList, CellTree, CellBrowser, CellTable, and DataGrid.

In our DataGrid example, clicking the Edit Tags button of a photo expands a set of rows, one for each tag and an extra row for adding a new tag, as shown in figure 10.21. To achieve this you have to construct a custom CellTable builder, as shown in the next listing, which thankfully isn’t as difficult as it sounds.

Figure 10.21. DataGrid showing expanded rows built through a custom CellTable builder