public void setLoadingData(ListDataProvider<T> dataProvider, Collection<? extends T> data) { if (data == null) { setEmptyTableWidget(getLoadingIndicator()); dataProvider.getList().clear(); } else { setEmptyTableWidget(emptyTableWidget); ClientUtils.replaceListDataProviderContents(dataProvider, data); ColumnSortEvent.fire(this, getColumnSortList()); } redraw(); }
private void applyColumnSortList() { applyingProgrammaticSort_ = true; ColumnSortEvent.fire(filesDataGrid_, filesDataGrid_.getColumnSortList()); applyingProgrammaticSort_ = false; }
@Override public void onColumnSort(ColumnSortEvent event) { sortAscending = event.isSortAscending(); updateDisplay(table); }