我是SmartGwt的新人,但我正在学习。我有一个创建ListGrid的方法。如何垂直对齐列?
例如(我的代码显示了这个):
c1 | c2 | c3 | c4 | c5 |
v1 | v2 | v3 | v4 | v5 |
我希望:
c1 | v11 | v12 | v13 | ...
c2 | v21 | v22 | v23 | ...
c3 | v31 | v32 | v33 | ...
.
.
.
有办法做到这一点吗?谢谢你的帮助。
我的代码:
public ListGrid createTableTest() {
ListGrid tableTest = new ListGrid();
tableTest.setWidth("80%");
tableTest.setHeight("80%");
tableTest.setShowAllRecords(true);
ListGridField c1Column = new ListGridField("c1", "C1");
ListGridField c2Column = new ListGridField("c2", "C2");
ListGridField c3Column = new ListGridField("c3", "C3");
ListGridField c4Column = new ListGridField("c4", "C4");
tableTest.setFields(c1Column, c2Column, c3Column, c4Column);
return tableTest;
}