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. |
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