function setFocus(oTable, iIndex, bFirstInteractiveElement) {
		const iTotalRowCount = oTable._getTotalRowCount();
		const iFirstRenderedRowIndex = oTable._getFirstRenderedRowIndex();
		oTable.getRows()[Math.min(iIndex, iTotalRowCount - 1) - iFirstRenderedRowIndex]._setFocus(bFirstInteractiveElement);
	}
Sets the focus on the row. If <code>bFirstInteractiveElement</code> is <code>true</code> and there are
interactive elements in the row, sets the focus on the first interactive element. Otherwise sets the
focus on the first data cell.

If the given index is not in the visible area, it scrolls it into view and then sets the focus.

@param {number} iIndex The index of the row that is to be focused
@param {boolean} [bFirstInteractiveElement=false] Indicates whether to set the focus on the first
interactive element

@private
@returns {Promise} A <code>Promise</code> that resolves after the focus has been set