/** * Scroll to the specified row by the given index. * @param index the index of row * @since 8.5.2 */ public void scrollToIndex(int index) { ListModel<Object> model = getModel(); int rowCount = model != null ? model.getSize() : getRows().getChildren().size(); if (index < 0 || index > rowCount - 1) { throw new IndexOutOfBoundsException("Illegal index: " + index); } response(new AuInvoke(this, "scrollToIndex", index, (double) index / rowCount)); } }