int cols = getInt(element, "cols");
t.resize(rows, cols);
List headerList = getChildrenByTag(element, "header");
if (headerList.size() > 0)
{
DomNode headersNode = (DomNode) headerList.get(0);
List headers = getChildrenByTag(headersNode, "col");
for (int i = 0; i < headers.size(); i++)
{
DomNode colNode = (DomNode) headers.get(i);
DomNode valueNode = getFirstChildElement(colNode);
Widget value = (Widget) getClient().handle(this, valueNode);
DOM.setStyleAttribute(value.getElement(), "width", "100%");
DOM.setStyleAttribute(value.getElement(), "height", "100%");
t.setHeaderWidget(i, value);
getClient().setEventInterceptor(value, t);
}
}
List rowList = getChildrenByTag(element, "row");
for (int row = 0; row < rowList.size(); row++)
{
DomNode rowNode = (DomNode) rowList.get(row);
List colList = getChildrenByTag(rowNode, "col");
for (int col = 0; col < colList.size(); col++)
{
DomNode colNode = (DomNode) colList.get(col);
DomNode valueNode = getFirstChildElement(colNode);
String pregenId = id + "_" + row + "_" + col;
Widget value = (Widget) getClient().handle(this, valueNode, pregenId);
DOM.setStyleAttribute(value.getElement(), "borderWidth", "0px");
DOM.setStyleAttribute(value.getElement(), "width", "100%");
DOM.setStyleAttribute(value.getElement(), "height", "100%");