O'Reilly logo

Vaadin 7 UI Design By Example Beginner's Guide by Alejandro Duarte

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Editable tables

Vaadin has a really cool feature that allows us to implement editable tables lightning fast. Let's say we have a table like this:

Table table = new Table();
table.setPageLength(0);

table.addContainerProperty("String", String.class, "");
table.addContainerProperty("Boolean", Boolean.class, false);
table.addContainerProperty("Date", Date.class, null);

table.addItem();
table.addItem();
table.addItem();

That is a simple table with three columns, each one storing properties of String, Boolean, and Date types. We have added three rows to it. This table will be rendered as follows:

Editable tables

Nothing's new so far. I said that it is lightning fast to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required