Example usage for com.google.gwt.user.client.ui HTMLTable getColumnFormatter

List of usage examples for com.google.gwt.user.client.ui HTMLTable getColumnFormatter

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui HTMLTable getColumnFormatter.

Prototype

public ColumnFormatter getColumnFormatter() 

Source Link

Document

Gets the column formatter.

Usage

From source file:com.google.zxing.web.generator.client.Generator.java

License:Apache License

private static void setGridStyle(HTMLTable grid) {
    grid.getColumnFormatter().addStyleName(0, "firstColumn");
    grid.getColumnFormatter().addStyleName(1, "secondColumn");
    HTMLTable.CellFormatter cellFormatter = grid.getCellFormatter();
    for (int i = 0; i < grid.getRowCount(); ++i) {
        cellFormatter.addStyleName(i, 0, "firstColumn");
        cellFormatter.addStyleName(i, 1, "secondColumn");
    }/*w  w  w .ja v a  2 s .  com*/
}