GWT Celltable仅显示15行

Dim*_*tar 7 java gwt

我遇到的问题是我们的单元格表只显示15行.我有以下内容:

//assume these are initialised correctly in the constructor
private final CellTable<DataModel> dataTable; 
private DataModel dataModel;

private void initialize(){
    dataTable.setRowData(0, data.getDataList());
    dataTable.setRowCount(data.getDataList().size());
}
Run Code Online (Sandbox Code Playgroud)

现在getDataList()返回一个List<Data>大小为18 的对象,但由于某种原因它只显示15.

有什么我想念的吗?是否有一些"Gotcha"用于限制它将显示的行数的celltables?

作为旁注,当我对列表进行排序时,我可以看到所有数据对象,但一次只能看到15个...

Jas*_*erk 15

CellTable默认情况下,每页显示15个项目.

调用setVisibleRange以更改CellTable显示的行.有关详细信息,请参阅Cell Table Developer's Guide.