【发布时间】:2011-12-12 07:06:15
【问题描述】:
我使用的是 GWT2.3。 我们通过覆盖 SimplePager 开发了 CustomPager。
我们重写 createText() 方法,使用以下代码显示字符串,例如“Page 1 of 4”
public String createText() {
if(searchRecordCount%pageSizeForText == 0){
totalPages = searchRecordCount/pageSizeForText;
}else{
totalPages = (searchRecordCount/pageSizeForText) + 1;
}
NumberFormat formatter = NumberFormat.getFormat("#,###");
return "Page "+formatter.format(this.getPage()+1) + " of " + formatter.format(totalPages);
}
现在我想为 CurrentPage 使用 TextBox,以便用户可以在 textBox 中输入页码。 (功能GoTo输入pageNumber)
createText() 返回字符串,所以我不能使用 textBox ;) + 不能提供 css
我该怎么做?有没有办法解决这个问题?解决方法(如果有)或示例代码
【问题讨论】:
标签: java gwt pager gwt-2.2-celltable