return index;
}
public Bounds getHeaderBounds(int index) {
Bounds headerBounds = null;
TableViewHeader tableViewHeader = (TableViewHeader)getComponent();
TableView tableView = tableViewHeader.getTableView();
if (tableView != null) {
Sequence<Integer> columnWidths =
TerraTableViewSkin.getColumnWidths(tableView.getColumns(), getWidth());
if (index < 0
|| index >= columnWidths.getLength()) {
throw new IndexOutOfBoundsException();
}
int cellX = 0;
for (int i = 0; i < index; i++) {
cellX += (columnWidths.get(i) + 1);
}
headerBounds = new Bounds(cellX, 0, columnWidths.get(index), getHeight() - 1);
}
return headerBounds;
}