Example usage for com.google.gwt.user.cellview.client AbstractCellTable clearColumnWidth

List of usage examples for com.google.gwt.user.cellview.client AbstractCellTable clearColumnWidth

Introduction

In this page you can find the example usage for com.google.gwt.user.cellview.client AbstractCellTable clearColumnWidth.

Prototype

public void clearColumnWidth(Integer column) 

Source Link

Document

Clear the width of the specified Column .

Usage

From source file:com.bearsoft.gwt.ui.widgets.grid.GridSection.java

@Override
protected void doSetColumnWidth(int index, String aValue) {
    if (index >= 0 && index < getColumnCount()) {
        super.doSetColumnWidth(index, aValue);
        if (columnsPartners != null) {
            for (AbstractCellTable<T> partner : columnsPartners) {
                if (index >= 0 && index < partner.getColumnCount()) {
                    Column<T, ?> col = partner.getColumn(index);
                    if (aValue == null) {
                        partner.clearColumnWidth(col);
                    } else {
                        partner.setColumnWidth(col, aValue);
                    }// w  w w .  j ava 2s  . c  o m
                }
            }
        }
        widthChanged();
    }
}