这是一种在第一列而不是第一行显示GWT CellTable标头的方法吗?这是因为我有太多列,数据太长,我相信它们可以用这种格式更好地显示:
|Header 01|And we will have the data for header 01 here|
|Header 02|And we will have the data for header 02 here|
|Header 03|And we will have the data for header 03 here|
|Header 04|And we will have the data for header 04 here|
|Header 05|And we will have the data for header 05 here|
|Header 06|And we will have the data for header 06 here|
|Header 07|And we will have the data for header 07 here|
|Header 08|And we will have the data for header 08 here|
|Header 09|And we will have the data for header 09 here|
|Header 10|And we will have the data for header 10 here|
|Header 11|And we will have the data for header 11 here|
|Header 12|And we will have the data for header 12 here|
|Header 13|And we will have the data for header 13 here|
|Header 14|And we will have the data for header 14 here|
|Header 15|And we will have the data for header 15 here|
我不想使用FlexTable,因为我需要CellTable提供的可编辑单元格。任何帮助都将深表感谢。
答案 0 :(得分:0)
您可以创建自定义CellTableBuilder来执行此操作。 在Showcase中,您可以找到示例http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwCustomDataGrid
/**
* Renders the data rows that display each contact in the table.
*/
private class CustomTableBuilder extends AbstractCellTableBuilder<ContactInfo> {
public CustomTableBuilder() {
super(dataGrid);
}
@SuppressWarnings("deprecation")
@Override
public void buildRowImpl(ContactInfo rowValue, int absRowIndex) {
//Must be implemented
}
}