UberfireSimpleTable extends Composite implements HasData<T> { public void setColumnWidth(final Column<T, ?> column, final double width, final Style.Unit unit) { dataGrid.setColumnWidth(column, width, unit); getColumnPicker().adjustColumnWidths(); } UberfireSimpleTable();  UberfireSimpleTable(final ProvidesKey<T> providesKey); void addDataGridStyles(final String header,
                                  final String content); void setEmptyTableCaption(final String emptyTableCaption); void redraw(); void refresh(); @Override HandlerRegistration addCellPreviewHandler(final CellPreviewEvent.Handler<T> handler); @Override HandlerRegistration addRangeChangeHandler(final RangeChangeEvent.Handler handler); @Override HandlerRegistration addRowCountChangeHandler(final RowCountChangeEvent.Handler handler); int getColumnIndex(final Column<T, ?> column); HandlerRegistration addColumnSortHandler(final ColumnSortEvent.Handler handler); @Override int getRowCount(); @Override void setRowCount(final int count); @Override Range getVisibleRange(); @Override void setVisibleRange(final Range range); @Override boolean isRowCountExact(); @Override void setRowCount(final int count,
                            final boolean isExact); @Override void setVisibleRange(final int start,
                                final int length); @Override SelectionModel<? super T> getSelectionModel(); @Override void setSelectionModel(final SelectionModel<? super T> selectionModel); @Override T getVisibleItem(final int indexOnPage); @Override int getVisibleItemCount(); @Override Iterable<T> getVisibleItems(); @Override void setRowData(final int start,
                           final List<? extends T> values); void setRowData(final List<? extends T> values); void setSelectionModel(final SelectionModel<? super T> selectionModel,
                                  final CellPreviewEvent.Handler<T> selectionEventManager); @Override void setVisibleRangeAndClearData(final Range range,
                                            final boolean forceRangeChangeEvent); @Override void setHeight(final String height); @Override void setPixelSize(final int width,
                             final int height); @Override void setSize(final String width,
                        final String height); @Override void setWidth(final String width); void setColumnWidth(final Column<T, ?> column,
                               final double width,
                               final Style.Unit unit); void setToolBarVisible(final boolean visible); ColumnSortList getColumnSortList(); HasWidgets getToolbar(); HasWidgets getRightToolbar(); HasWidgets getRightActionsToolbar(); HasWidgets getLeftToolbar(); HasWidgets getCenterToolbar(); void setRowStyles(final RowStyles<T> styles); void addTableTitle(String tableTitle); void setAlwaysShowScrollBars(boolean alwaysShowScrollBars); void addColumn(final Column<T, ?> column,
                          final String caption); void addColumn(final Column<T, ?> column,
                          final String caption,
                          final boolean visible); void addColumns(final List<ColumnMeta<T>> columnMetas); void setColumnPickerButtonVisible(final boolean show); @UiField(provided = true)
    public Button columnPickerButton; @UiField(provided = true)
    public DataGrid<T> dataGrid; @UiField
    public ComplexPanel toolbarContainer; @UiField
    public ComplexPanel rightToolbar; @UiField
    public FlowPanel rightActionsToolbar; @UiField
    public FlowPanel leftToolbar; @UiField
    public FlowPanel centerToolbar; }
@Test public void testSetColumnWidth() { Column<String, String> testColumn = new Column<String, String>(new TextCell()) { @Override public String getValue(String object) { return "col1"; } }; uberfireSimpleTable.setColumnPicker(columnPickerMock); uberfireSimpleTable.setColumnWidth(testColumn, 35, Style.Unit.PX); verify(columnPickerMock).adjustColumnWidths(); }