Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tools to help in using the GWT CellTable
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

This project intends to provide tools to help with the GWT CellTable class, to make it as easy to use and boilerplate-free as the Editor and UiBinder code has done for many widgets.

Cell and Column creation

The best way to explain would be by way of example. provides a sample demonstrating cell and column creation, simplified here to just the column creation.

// Create a CellTable.
CellTable<Contact> table = new CellTable<Contact>();

// Create name column.
TextColumn<Contact> nameColumn = new TextColumn<Contact>() {
  public String getValue(Contact contact) {

// Create address column.
TextColumn<Contact> addressColumn = new TextColumn<Contact>() {
  public String getValue(Contact contact) {
    return contact.address;

// Add the columns.
table.addColumn(nameColumn, "Name");
table.addColumn(addressColumn, "Address");

A TextColumn object is a Column<T,String>, with its Cell instance set to a TextCell. The first column shown here could be also written as

// Create name column.
Column<Contact, String> nameColumn = new Column<Contact, String>(new TextCell()) {
  public String getValue(Contact contact) {

This allows the some simplification of some kinds of columns, but only the ones which Column subclasses are created for - it is not ideal to need to create a new Column subtype for each Cell.

Instead, as most of this seems to be rather unnecessary code (especially given what the Editor framework has brought), I suggest that the columns be declared as simply as possible.

interface ContactColumns extends Columns<Contact> {
  TextCell name();
  TextCell address();

and can be added into the ui as follows:

// Create a CellTable.
CellTable<Contact> table = new CellTable<Contact>();
// Add the columns
ContactColumns columns = GWT.create(ContactColumns.class);

Using it

This is still a fairly young library, and useful features are still being added, so there is no official release available yet. Sonatype's snapshot repository is being used to host builds, both for GWT versions before 2.2 and after.

    <name>Sonatype Nexus Snapshots</name>



Add a <classifier>pre-2.2</classifier> if using a version of GWT before 2.2. This is not designed to provide any server-side functionality, so <scope>provided</scope> may be desired as well.

Building from source

By default, this is set up to work with 2.2, though 2.1 is supported as well. When building, use the profile 'pre-2.2', and specify 'pre-2.2' as a classifier in the dependency as well.

Something went wrong with that request. Please try again.