예제 #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();
 }
예제 #2
0
 private void applyColumnSortList() {
   applyingProgrammaticSort_ = true;
   ColumnSortEvent.fire(filesDataGrid_, filesDataGrid_.getColumnSortList());
   applyingProgrammaticSort_ = false;
 }