com.google.gwt.widgetideas.table.client
Interface HasAutoFitColumn

All Superinterfaces:
HasFixedColumnWidth, HasTableCells
All Known Implementing Classes:
EditablePagingGrid, FixedWidthGrid, PagingGrid, SortableFixedWidthGrid

public interface HasAutoFitColumn
extends HasFixedColumnWidth

An interface for tables that support automatic resizing of columns to fit the contents of the column based on the content of the column.


Method Summary
 int autoFitColumnWidth(int column)
          Stretches or shrinks the column to automatically fit its data content.
 int getAutoFitColumnWidth(int column)
          Calculate the width required for a content to fit its contents.
 
Methods inherited from interface com.google.gwt.widgetideas.table.client.HasFixedColumnWidth
getColumnCount, getColumnWidth, getDefaultColumnWidth, setColumnWidth
 
Methods inherited from interface com.google.gwt.widgetideas.table.client.HasTableCells
getCellCount, getCellPadding, getCellSpacing, getEventTargetCell, setCellPadding, setCellSpacing
 

Method Detail

autoFitColumnWidth

int autoFitColumnWidth(int column)
Stretches or shrinks the column to automatically fit its data content.

Parameters:
column - the column to fit
Returns:
the new column width
Throws:
java.lang.IndexOutOfBoundsException

getAutoFitColumnWidth

int getAutoFitColumnWidth(int column)
Calculate the width required for a content to fit its contents.

Parameters:
column - the column that will be fitted
Returns:
the default column width