开发者

GXT: How enable paginator?

开发者 https://www.devze.com 2023-04-07 16:48 出处:网络
I have working proxy: proxy = new RpcProxy<List<EmpDTO>>() { @Override protected void load(Object loadConfig,

I have working proxy:

    proxy = new RpcProxy<List<EmpDTO>>() {
        @Override
        protected void load(Object loadConfig,
                final AsyncCallback<List<EmpDTO>> callback) {
            EmpDTO empDTO = new EmpDTO();
            empService.findByExample(empDTO,
                    new AsyncCallback<List<EmpDTO>>() {
                        @Override
    开发者_如何学Go                    public void onFailure(Throwable ex) {
                            callback.onFailure(ex);
                        }

                        @Override
                        public void onSuccess(List<EmpDTO> result) {
                            callback.onSuccess(result);
                        }
                    });
        }

    };

    BeanModelReader reader = new BeanModelReader();

    loader = new BaseListLoader(proxy, reader);
    store = new ListStore(loader);

How to integrate pagination?


Here is an example that should answer your question,

http://www.sencha.com/examples/explorer.html#paging

Click the "source" tab at the bottom.

0

精彩评论

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