Search in sources :

Example 1 with TableCellBuilder

use of com.google.gwt.dom.builder.shared.TableCellBuilder in project activityinfo by bedatadriven.

the class GridHeaderBuilder method renderHeaderRow.

private void renderHeaderRow(int headerRowIndex, String className) {
    TableRowBuilder tr = startRow();
    int curColumn;
    int columnCount = getTable().getColumnCount();
    for (curColumn = 0; curColumn < columnCount; curColumn++) {
        Header<?> header = getHeader(curColumn);
        Column<SourceRow, ?> column = getTable().getColumn(curColumn);
        // Render the header.
        TableCellBuilder th = tr.startTH().className(className);
        enableColumnHandlers(th, column);
        // Build the header.
        Cell.Context context = new Cell.Context(headerRowIndex, curColumn, null);
        renderHeader(th, context, header);
        th.endTH();
    }
    tr.end();
}
Also used : TableRowBuilder(com.google.gwt.dom.builder.shared.TableRowBuilder) SourceRow(org.activityinfo.ui.client.component.importDialog.model.source.SourceRow) TableCellBuilder(com.google.gwt.dom.builder.shared.TableCellBuilder) Cell(com.google.gwt.cell.client.Cell)

Aggregations

Cell (com.google.gwt.cell.client.Cell)1 TableCellBuilder (com.google.gwt.dom.builder.shared.TableCellBuilder)1 TableRowBuilder (com.google.gwt.dom.builder.shared.TableRowBuilder)1 SourceRow (org.activityinfo.ui.client.component.importDialog.model.source.SourceRow)1