Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/362.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java GWT CELLTABLE寻呼机如何确定用户单击了哪个按钮?_Java_Gwt_Pager_Gwt 2.2 Celltable - Fatal编程技术网

Java GWT CELLTABLE寻呼机如何确定用户单击了哪个按钮?

Java GWT CELLTABLE寻呼机如何确定用户单击了哪个按钮?,java,gwt,pager,gwt-2.2-celltable,Java,Gwt,Pager,Gwt 2.2 Celltable,我使用的是celltable,GWT2.3.0 如何确定用户单击了哪个按钮? 有没有办法找到单击的下一个、上一个、最后一个和第一个按钮 在此问题上的任何帮助或指导都将不胜感激我现在看到的最简单的方式是编写自己的简单寻呼机并覆盖“lastPage”、“lastPageStart”、“nextPage”和“previousPage”功能 在我的测试示例中,我在大约5分钟内构建了该示例,它如下所示: public class Ui_mySimplePager extends SimplePager {

我使用的是celltable,GWT2.3.0

如何确定用户单击了哪个按钮? 有没有办法找到单击的下一个、上一个、最后一个和第一个按钮


在此问题上的任何帮助或指导都将不胜感激

我现在看到的最简单的方式是编写自己的简单寻呼机并覆盖“lastPage”、“lastPageStart”、“nextPage”和“previousPage”功能

在我的测试示例中,我在大约5分钟内构建了该示例,它如下所示:

public class Ui_mySimplePager extends SimplePager {
public Ui_mySimplePager(TextLocation center, Resources pagerResources,
        boolean b, int i, boolean c) {
    super(center, pagerResources, b, i, c);
}

@Override
public void lastPage() {
    Window.alert("lastPage");
    super.lastPage();
}

@Override
public void lastPageStart() {
    Window.alert("lastPageStart");
    super.lastPageStart();
}

@Override
public void nextPage() {
    Window.alert("nextPage");
    super.nextPage();
}

@Override
public void previousPage() {
    Window.alert("previousPage");
    super.previousPage();
}
}