Table Component and CustomLayout

Hello everybody.

Is it possible to use a table component and then to customize one column with a customLayout?
I need one column with a very special layout and I need the ordering feature of the table component too.
Is that somehow possible or can a table column contain only simple values?

If you have any example i would be deeply grateful.

You should have a look at
Table Generated Columns (Section 5.16.5.)
which you can use to add vaadin Components as Table Columns (can cause Performance drops when used with large amounts of rows).

Hi Chris,

I think you should use addGeneratedColumn(Object, ColumnGenerator) method of the Table class. Something like this:

table.addGeneratedColumn(“columnId”, new ColumnGenerator() {
public Object generateCell(Table source, Object itemId, Object columnId) {
CutomLayout yourLayout = buildCostomLayout();
return yourLayout;
} });

Hope it’ll help you.

Hello Marius and Alex.
Thank you very much. I’ll try it out today and let you know about my results later.

Just to let you know, works perfectly. Thank you.