Example usage for com.google.gwt.widgetideas.table.client.overrides Grid resize

List of usage examples for com.google.gwt.widgetideas.table.client.overrides Grid resize

Introduction

In this page you can find the example usage for com.google.gwt.widgetideas.table.client.overrides Grid resize.

Prototype

public void resize(int rows, int columns) 

Source Link

Document

Resizes the grid.

Usage

From source file:com.google.gwt.demos.bulkloadingtable.client.BulkLoadingTableDemo.java

License:Apache License

private void usingGridAPI(Grid table) {
    table.resize(numRows, numColumns);
    for (int i = 0; i < numRows; i++) {
        for (int j = 0; j < numColumns; j++) {
            table.setHTML(i, j, "cell " + i + ", " + j);
        }/*from w  ww. j av  a  2s  . c  o m*/
    }
}