int numChildren = el.getElementCount(); View[] rows = new View[numChildren]; for (int i = 0; i < numChildren; ++i) { Element rowEl = el.getElement(i); TableRow rowView = createTableRow(rowEl); rows[i] = rowView; } replace(0, 0, rows);
  public TableView(Element el)  {    super(el, Y_AXIS);    int numChildren = el.getElementCount();    View[] rows = new View[numChildren];    for (int i = 0; i < numChildren; ++i)      {        Element rowEl = el.getElement(i);        TableRow rowView = createTableRow(rowEl);        rows[i] = rowView;      }    replace(0, 0, rows);  }