@Test public void testTableDraw() { DisplayerSettings allRows = DisplayerSettingsFactory.newTableSettings() .dataset(EXPENSES) .tableOrderDefault(COLUMN_DEPARTMENT, SortOrder.DESCENDING) .tableOrderEnabled(true) .tablePageSize(10) .tableWidth(1000) .buildSettings(); GoogleTableDisplayer table = createTableDisplayer(allRows); GoogleTableDisplayer.View tableView = table.getView(); table.ready(); verify(tableView).setWidth(1000); verify(tableView).setSortEnabled(true); verify(tableView).setPageSize(10); verify(tableView).setTotalRows(50); verify(tableView).setTotalPages(5); verify(tableView).setPagerEnabled(true); verify(tableView).drawTable(); }
@Override public View getView() { return view; }
GoogleTableDisplayer extends GoogleDisplayer<GoogleTableDisplayer.View> { @Override public View getView() { return view; } }
GoogleTableDisplayer extends GoogleDisplayer<GoogleTableDisplayer.View> { @Override public View getView() { return view; } @Inject  GoogleTableDisplayer(View view, FilterLabelSet filterLabelSet); }
GoogleTableDisplayer extends GoogleDisplayer<GoogleTableDisplayer.View> { @Override public View getView() { return view; } @Inject  GoogleTableDisplayer(View view, FilterLabelSet filterLabelSet); @Override View getView(); @Override DisplayerConstraints createDisplayerConstraints(); void sortBy(String column); void gotoPage(int pageNumber); int getLeftMostPageNumber(); int getRightMostPageNumber(); int getCurrentPage(); @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); }
GoogleTableDisplayer extends GoogleDisplayer<GoogleTableDisplayer.View> { @Override public View getView() { return view; } @Inject  GoogleTableDisplayer(View view, FilterLabelSet filterLabelSet); @Override View getView(); @Override DisplayerConstraints createDisplayerConstraints(); void sortBy(String column); void gotoPage(int pageNumber); int getLeftMostPageNumber(); int getRightMostPageNumber(); int getCurrentPage(); @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);  }