How to change the style of a CellTable/ DataGrid

The cell table widgets in GWT use a client bundle to store all the required resources. This is great in reducing the number of round-trips for loading the required css and image resources, and allows us to place images and css fragments where they belong: close to the components.

But how do we change the styles? Simply subclass the client bundle, replace the images/ styles partially or completely, and they give it to the cell widget.

Here is a small example:

Now, you have to create the cell table:

One thought on “How to change the style of a CellTable/ DataGrid”

Leave a Reply

Your email address will not be published. Required fields are marked *