Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 private void applyColumnSortList() {
   applyingProgrammaticSort_ = true;
   ColumnSortEvent.fire(filesDataGrid_, filesDataGrid_.getColumnSortList());
   applyingProgrammaticSort_ = false;
 }
Esempio n. 3
0
 @Override
 public void onColumnSort(ColumnSortEvent event) {
   sortAscending = event.isSortAscending();
   updateDisplay(table);
 }