How to create a complex title in vaadin 7?

I used setColumnHeader (Object, String) to set a simple row as the column heading. I want to create a complex title. I would like to know if there is a way to build a similar table, as shown in the figure below in Vaadin 7. http://i.stack.imgur.com/u5dIw.gif

+4
source share
2 answers

Now you can use Grid:

enter image description here

// Group headers by joining the cells
HeaderRow groupingHeader = grid.prependHeaderRow();
HeaderCell namesCell = groupingHeader.join(
    groupingHeader.getCell("firstname"),
    groupingHeader.getCell("lastname"));
HeaderCell yearsCell = groupingHeader.join(
    groupingHeader.getCell("born"),
    groupingHeader.getCell("died"),
    groupingHeader.getCell("lived"));

This example is taken from the Vaadin Book . Just to show that the new Vaadin 7.5 (and above) can build a table with a complex heading (merged columns). Another good resource is in the Vaadin Wiki .

, .

+3
+3

All Articles