如何在 Vaadin 7 中创建复杂表(不需要复杂表头) [英] How to create a Complex Table in Vaadin 7 (Complex header is not required)
问题描述
我正在尝试在 Vaadin 7 中创建一个类似于下图的表格.
I am trying to create a table similar to the below figure in Vaadin 7.
图:http://i.stack.imgur.com/dvkO1.png
我在考虑这 3 种可能性.我仍然不清楚我应该继续实施什么.
I was thinking of these 3 possibilities. Still I don't have a clarity on what I should go ahead with implementation.
1) 使用列生成器.我提到了 https://vaadin.com/book/vaadin7/-/page/components.table.html
1) Using Column Generator. I referred https://vaadin.com/book/vaadin7/-/page/components.table.html
2) 在表项中有一个表.但我也发现创建它有困难.我对外观和感觉不满意.
2) Having a table inside a table item. But I am finding difficulty in creating that also. I am unhappy about the look and feel.
3) 搜索是否可以合并单元格以形成一个块.
3) Searching for if there is anyway we can merge the cells to form a block.
感谢您在这方面的任何帮助.
Any help in this regard, is appreciated.
推荐答案
当我对 Table 组件的工作方式有问题时,最好完全不使用它.您可以改用 GridLayout 以您需要的格式显示数据,恕我直言.
When I have problems with the way the Table component works, it is probably best to no use it at all. You can use a GridLayout instead to show data in the format you need, IMHO.
这篇关于如何在 Vaadin 7 中创建复杂表(不需要复杂表头)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!