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();
}
Aggregations