List of usage examples for com.google.gwt.dom.client TableColElement getChild
@Override
public Node getChild(int index)
From source file:com.bearsoft.gwt.ui.widgets.grid.GridSection.java
@Override public void removeColumn(int index) { if (columnsRemover != null) { columnsRemover.removeColumn(index); } else {/*from w w w.j av a 2 s. c o m*/ Column<T, ?> col = getColumn(index); hiddenColumns.remove(col); super.removeColumn(index); NodeList<Element> colGroups = getElement().getElementsByTagName("colgroup"); if (colGroups != null && colGroups.getLength() == 1) { TableColElement colGroup = colGroups.getItem(0).cast(); if (getColumnCount() < colGroup.getChildCount()) { // It seems, that GWT's bug is still here. if (index >= 0 && index < colGroup.getChildCount()) { colGroup.removeChild(colGroup.getChild(index)); } } } } }