在GWT中,当使用SimplePager时,LastPage按钮是禁用的--但是为什么呢?
请参见“添加分页控件”http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellWidgets.html一节中的示例
如果您复制示例并运行它,您将看到LastPageButton被禁用了?
谢谢
发布于 2011-07-29 16:50:25
它不是LastPageButton,而是FastForward按钮,该按钮被禁用,因为用于初始化分页的构造函数将其设置为一个值,如果剩余项的数量大于1000,该按钮将被启用(本例中只包含200项,只需将其增加到2000即可查看)。有一个LastPageButton,但在示例中使用的构造函数中禁用了它。您可以通过使用以下构造函数初始化寻呼机来启用LastPageButton:
public SimplePager(TextLocation location, Resources resources, boolean showFastForwardButton,
final int fastForwardRows, boolean showLastPageButton)https://stackoverflow.com/questions/6857376
复制相似问题