aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/src/com/vaadin/ui/components/grid/Grid.java6
-rw-r--r--uitest/src/com/vaadin/tests/components/grid/GridScrolling.java2
2 files changed, 4 insertions, 4 deletions
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);
}
});