5
在使用SimplePager時,GWT中的LastPage按鈕被禁用 - 但爲什麼?GWT SimplePager - LastPageButton已禁用?
見例如節:「添加分頁控件」 http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellWidgets.html
如果您複製樣本並運行它,你會看到LastPageButton被禁用?
感謝
在使用SimplePager時,GWT中的LastPage按鈕被禁用 - 但爲什麼?GWT SimplePager - LastPageButton已禁用?
見例如節:「添加分頁控件」 http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellWidgets.html
如果您複製樣本並運行它,你會看到LastPageButton被禁用?
感謝
這不是LastPageButton,但快進按鈕,該按鈕禁用,因爲用於初始化尋呼機的構造將其設置爲,如果項目的剩餘數量大於1000將啓用值(並且該示例僅包含200個項目,只需將其增加到2000就可以看到它)。 有一個LastPageButton,但在示例中使用的構造函數禁用它。您可以使用下面的構造使LastPageButton初始化尋呼機:
public SimplePager(TextLocation location, Resources resources, boolean showFastForwardButton,
final int fastForwardRows, boolean showLastPageButton)
任何想法如何做到這一點通過UiBinder的?或者我應該只使用提供的選項? –
是使用提供的選項。這是最簡單的使用,因爲小部件本身沒有特定的UiBinder構造函數註釋,這使得可以使用在ui.xml中設置參數。 –