if (styleTemplate == null) {
Element style = DOM.createElement("style");
DOM.setElementProperty(style, "id", getId() + "-cols-style");
DOM.appendChild(XDOM.getHead(), style);
styleTemplate = new StyleTemplate(style);
}
for (int i = 0, n = cm.getColumnCount(); i < n; i++) {
TreeTableColumn c = (TreeTableColumn) cm.getColumn(i);
int w = cm.getWidthInPixels(c.getIndex());