TableDisplayer extends AbstractGwtDisplayer<TableDisplayer.View> { public void sortBy(String column, SortOrder order) { if (displayerSettings.isTableSortEnabled()) { lastOrderedColumn = column; lastSortOrder = order; super.redraw(); } } @Inject  TableDisplayer(View view, FilterLabelSet filterLabelSet); @Override View getView(); FilterLabelSet getFilterLabelSet(); int getTotalRows(); String getLastOrderedColumn(); SortOrder getLastSortOrder(); String getSelectedCellColumn(); Integer getSelectedCellRow(); int getExportRowNumMax(); void setExportRowNumMax(int exportRowNumMax); void addOnCellSelectedCommand(Command onCellSelectedCommand); @Override DisplayerConstraints createDisplayerConstraints(); void sortBy(String column, SortOrder order); void selectCell(String columnId, int rowIndex); @Override void filterReset(String columnId); @Override void filterReset(); void lookupCurrentPage(final Callback<Integer> callback); void export(ExportFormat format); @Override void onFilterEnabled(Displayer displayer, DataSetGroup groupOp); @Override void onFilterEnabled(Displayer displayer, DataSetFilter filter); @Override void onFilterReset(Displayer displayer, List<DataSetGroup> groupOps); @Override void onFilterReset(Displayer displayer, DataSetFilter filter);  }
@Test public void test_DASHBUILDE_20_Fix() { DisplayerSettings groupedTable = DisplayerSettingsFactory.newTableSettings() .dataset(EXPENSES) .group(COLUMN_CITY) .column(COLUMN_CITY, "City") .column(COUNT, "#Expenses").format("Number of expenses", "#,##0") .column(COLUMN_AMOUNT, MIN).format("Min", "$ #,###") .column(COLUMN_AMOUNT, MIN).format("Min", "$ #,###") .column(COLUMN_AMOUNT, MIN).format("Min", "$ #,###") .column(COLUMN_AMOUNT, MIN).format("Min", "$ #,###") .tablePageSize(10) .tableOrderEnabled(true) .tableOrderDefault(COLUMN_CITY, DESCENDING) .filterOn(false, true, true) .buildSettings(); TableDisplayer table = createTableDisplayer(groupedTable); table.addListener(displayerListener); table.draw(); table.sortBy("#Expenses", ASCENDING); verify(displayerListener, never()).onError(eq(table), any(ClientRuntimeError.class)); }