PagedTable extends SimpleTable<T> { public void enableDataGridMinWidth(boolean enabled) { this.dataGridMinWidthEnabled = enabled; } PagedTable();  PagedTable(final int pageSize);  PagedTable(final int pageSize,
                      final ProvidesKey<T> providesKey);  PagedTable(final int pageSize,
                      final ProvidesKey<T> providesKey,
                      final GridGlobalPreferences gridGlobalPreferences);  PagedTable(final int pageSize,
                      final ProvidesKey<T> providesKey,
                      final GridGlobalPreferences gridGlobalPreferences,
                      final boolean showPageSizesSelector);  PagedTable(final int pageSize,
                      final ProvidesKey<T> providesKey,
                      final GridGlobalPreferences gridGlobalPreferences,
                      final boolean showPageSizesSelector,
                      final boolean showFFButton,
                      final boolean showLButton); AbstractDataProvider<T> getDataProvider(); void setDataProvider(final AbstractDataProvider<T> dataProvider); int getPageSize(); int getPageStart(); final void loadPageSizePreferences(); boolean isDataGridMinWidthEnabled(); void enableDataGridMinWidth(boolean enabled); void setDefaultColumWidthSize(int defaultColumWidthSize); void setShowLastPagerButton(boolean showLastPagerButton); void setShowFastFordwardPagerButton(boolean showFastFordwardPagerButton); void setPageSizesSelectorDropup(boolean forceDropup,
                                           boolean dropupAuto); HasWidgets getTopToolbar(); static final int DEFAULT_PAGE_SIZE; static final int HEIGHT_OFFSET_PX; @UiField
    public UberfireSimplePager pager; @UiField
    public Select pageSizesSelector; @UiField
    public Column dataGridContainer; @UiField
    public Column topToolbar; }
@Test public void testEnableDataGridMinWidth() throws Exception { final int PAGE_SIZE = 10; Element mockElement = mock(Element.class); final int minWidth = 800; PagedTable pagedTable = new PagedTable(PAGE_SIZE, null, null, false, false, false); ColumnPicker columnPickerMock = mock(ColumnPicker.class); when(pagedTable.dataGridContainer.getElement()).thenReturn(mockElement); when(columnPickerMock.getDataGridMinWidth()).thenReturn(minWidth); pagedTable.setColumnPicker(columnPickerMock); pagedTable.enableDataGridMinWidth(true); pagedTable.setTableHeight(); verify(columnPickerMock, never()).setDefaultColumnWidthSize(anyInt()); verify(mockElement).setAttribute("style", "min-width:" + minWidth + Style.Unit.PX.getType()); }