私はGWT2.3を使用しています。SimplePager をオーバーライドして CustomPager を開発しました。
次のコードを使用して、「Page 1 of 4」のような文字列を表示するように createText() メソッドをオーバーライドします
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 入力されたページ番号)
createText() は文字列を返すので、ユーザー textBox を使用できません;) + css を提供できません
これどうやってするの ?この問題を解決する方法はありますか? 回避策がある場合、またはサンプル コード