use of com.extjs.gxt.ui.client.widget.toolbar.PagingToolBar in project activityinfo by bedatadriven.
the class DbUserEditor method createPagingToolBar.
private void createPagingToolBar() {
PagingToolBar pagingToolBar = new PagingToolBar(100);
pagingToolBar.bind(loader);
setBottomComponent(pagingToolBar);
}
use of com.extjs.gxt.ui.client.widget.toolbar.PagingToolBar in project activityinfo by bedatadriven.
the class AbstractGridView method init.
public void init(final P presenter, Store store) {
this.presenter = presenter;
createToolBar();
grid = createGridAndAddToContainer(store);
initGridListeners(grid);
if (store instanceof ListStore) {
Loader loader = ((ListStore) store).getLoader();
if (loader instanceof PagingLoader) {
pagingBar = new PagingToolBar(presenter.getPageSize());
setBottomComponent(pagingBar);
pagingBar.bind((PagingLoader<?>) loader);
}
}
/**
* In some cases, there is async call before the user inerface can be
* loaded. So we have to make sure our new components are rendered
*/
if (this.isRendered()) {
this.layout();
}
}
Aggregations