use of org.kie.workbench.common.stunner.client.widgets.notification.Notification in project kie-wb-common by kiegroup.
the class NotificationsView method initGrid.
private void initGrid() {
// Init the logs grid.
logsGrid = new CellTable<Notification>(presenter.KEY_PROVIDER);
logsGrid.setWidth("100%", true);
// Do not refresh the headers and footers every time the data is updated.
logsGrid.setAutoHeaderRefreshDisabled(true);
logsGrid.setAutoFooterRefreshDisabled(true);
// Create a Pager to control the table.
SimplePager.Resources pagerResources = GWT.create(SimplePager.Resources.class);
logsGridPager = new SimplePager(SimplePager.TextLocation.CENTER, pagerResources, false, 0, true);
logsGridPager.setDisplay(logsGrid);
presenter.addDataDisplay(logsGrid);
}
Aggregations