【发布时间】:2015-04-30 10:40:03
【问题描述】:
我需要显示一个 java 类的 3 个属性 在表格单元格中彼此下方。
这 3 个属性被添加到绑定到表的容器中 - 但是,这会导致每个属性占用不同的单元格 同一行。
e.g.
Container container = new IndexedContainer();
container.addContainerProperty("property1", String.class, "dftvalue1");
container.addContainerProperty("property2", String.class, "dftvalue2");
container.addContainerProperty("property3", String.class, "dftvalue3");
container.getContainerProperty(itemId, "property1").setValue("value1");
...
Table table = new Table("My Table");
table.setContainerDataSource(container);
我需要显示如下。
| property1 |
col1 | property2 |
| property3 |
请您告知/建议如何做到这一点? 谢谢史蒂夫。
【问题讨论】: