开发者

GWT CELLTABLE pager How to determine which button is clicked by user?

开发者 https://www.devze.com 2023-04-04 21:12 出处:网络
I am using celltable , GWT2.3.0 How to determine which button is clicked by user ? Is there any way to fi开发者_Python百科nd out NEXT,PREV,LAST & FIRST button clicked ?

I am using celltable , GWT2.3.0

How to determine which button is clicked by user ? Is there any way to fi开发者_Python百科nd out NEXT,PREV,LAST & FIRST button clicked ?

Any help or guidance in this matter would be appreciated


Well the easist way I see right now, is write your own Simple pager and overwrite the "lastPage", "lastPageStart", "nextPage" and "previousPage" functions.

In my test example, which I build in ~5min it lookes like this:

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();
}
}
0

精彩评论

暂无评论...
验证码 换一张
取 消