10.1. Understanding cells

The cell is the basic building block of a cell widget. Each cell is typed so that it knows exactly what kind of data it’s going to be expected to render. You can think of cells as being the rubber stamps that act on the DOM.

 

Definition

Cells are HTML rubber stamps that act directly on the DOM. GWT provides 16 types, and they need to sit within a cell widget to be functional.

 

Besides rendering HTML for a cell widget, a cell can declare that it plans to handle particular browser events, giving it a chance to perform complex behavior like displaying a date picker or changing to an editable state or asking a delegate to perform some task. This allows cell data to have complex user interaction like a full-blown ...

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.