subrow = keyboardSelectedSubrow;
lastKeyboardSelectedSubrow = keyboardSelectedSubrow;
}
// Deselect the row.
TableRowElement tr = getSubRowElement(index + getPageStart(), subrow);
if (tr == null) {
// The row does not exist.
return;
}
String cellStyle = style.keyboardSelectedCell();
boolean updatedSelection = !selected || isFocused || stealFocus;
setRowStyleName(tr, style.keyboardSelectedRow(), style.keyboardSelectedRowCell(), selected);
NodeList<TableCellElement> cells = tr.getCells();
int keyboardColumn = Math.min(getKeyboardSelectedColumn(), cells.getLength() - 1);
for (int i = 0; i < cells.getLength(); i++) {
TableCellElement td = cells.getItem(i);
boolean isKeyboardSelected = (i == keyboardColumn);