Example usage for com.google.gwt.gen2.table.client FixedWidthFlexTable getColumnCount

List of usage examples for com.google.gwt.gen2.table.client FixedWidthFlexTable getColumnCount

Introduction

In this page you can find the example usage for com.google.gwt.gen2.table.client FixedWidthFlexTable getColumnCount.

Prototype

public int getColumnCount() 

Source Link

Usage

From source file:com.qualogy.qafe.gwt.client.component.QPagingScrollTable.java

License:Apache License

private void clearColumnHeaders() {
    final FixedWidthFlexTable headerTable = getHeaderTable();
    if (headerTable == null) {
        return;/*  w  ww . java  2 s  .  c o m*/
    }
    if (headerTable.getColumnCount() > 0) {
        headerTable.removeRow(0);
        headerTable.clearAll();
    }
}

From source file:edu.caltech.ipac.firefly.ui.table.BasicPagingTable.java

protected void clearTable(FixedWidthFlexTable table, int numCols) {
    if (numCols < table.getColumnCount()) {
        for (int c = numCols - 1; c < table.getColumnCount(); c++) {
            for (int r = 0; r < table.getRowCount(); r++) {
                table.setText(r, c, "");
            }/*from ww  w .j a  v a 2  s.  c om*/
        }
    }
}