Пример #1
0
  private void createPagingToolbar() {
    RpcProxy<PagingLoadResult<DataContainer>> proxy =
        new RpcProxy<PagingLoadResult<DataContainer>>() {
          @Override
          public void load(
              Object loadConfig, AsyncCallback<PagingLoadResult<DataContainer>> callback) {
            dataManagementService.getPagingData((PagingLoadConfig) loadConfig, callback);
          }
        };

    pagingToolBar = new MyPagingToolBar(50, this);
    Registry.register(PAGING_TOOLBAR, pagingToolBar);

    PagingLoader<PagingLoadResult<DataProviderUI>> loader =
        new BasePagingLoader<PagingLoadResult<DataProviderUI>>(proxy);
    loader.setRemoteSort(true);
    pagingToolBar.bind(loader);
    mainGridPanel.setBottomComponent(pagingToolBar);
  }
Пример #2
0
 public void refreshGrid() {
   pagingToolBar.refresh();
 }