From: Leif Åstrand Date: Tue, 15 Jul 2014 09:53:02 +0000 (+0300) Subject: Rename scrollToItem to scrollTo (#13334) X-Git-Tag: 7.4.0.beta1~9^2~189^2~54^2~66 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3582b43415c7ddd587451f565a5ae70fea8bb51d;p=vaadin-framework.git Rename scrollToItem to scrollTo (#13334) Change-Id: Ib2e9415a40ec1664ea0b9881437f1c33eaf0bc09 --- diff --git a/server/src/com/vaadin/ui/components/grid/Grid.java b/server/src/com/vaadin/ui/components/grid/Grid.java index f18ca6045e..c91924f5a8 100644 --- a/server/src/com/vaadin/ui/components/grid/Grid.java +++ b/server/src/com/vaadin/ui/components/grid/Grid.java @@ -713,8 +713,8 @@ public class Grid extends AbstractComponent implements SelectionChangeNotifier { * @throws IllegalArgumentException * if the provided id is not recognized by the data source. */ - public void scrollToItem(Object itemId) throws IllegalArgumentException { - scrollToItem(itemId, ScrollDestination.ANY); + public void scrollTo(Object itemId) throws IllegalArgumentException { + scrollTo(itemId, ScrollDestination.ANY); } /** @@ -727,7 +727,7 @@ public class Grid extends AbstractComponent implements SelectionChangeNotifier { * @throws IllegalArgumentException * if the provided id is not recognized by the data source. */ - public void scrollToItem(Object itemId, ScrollDestination destination) + public void scrollTo(Object itemId, ScrollDestination destination) throws IllegalArgumentException { int row = datasource.indexOfId(itemId); diff --git a/uitest/src/com/vaadin/tests/components/grid/GridScrolling.java b/uitest/src/com/vaadin/tests/components/grid/GridScrolling.java index e8b327639b..dd86d616b9 100644 --- a/uitest/src/com/vaadin/tests/components/grid/GridScrolling.java +++ b/uitest/src/com/vaadin/tests/components/grid/GridScrolling.java @@ -78,7 +78,7 @@ public class GridScrolling extends AbstractTestUI { new ClickListener() { @Override public void buttonClick(ClickEvent event) { - grid.scrollToItem(Integer.valueOf(row), + grid.scrollTo(Integer.valueOf(row), ScrollDestination.MIDDLE); } });