]> source.dussan.org Git - vaadin-framework.git/commitdiff
Rename scrollToItem to scrollTo (#13334)
authorLeif Åstrand <leif@vaadin.com>
Tue, 15 Jul 2014 09:53:02 +0000 (12:53 +0300)
committerLeif Åstrand <leif@vaadin.com>
Tue, 15 Jul 2014 09:53:02 +0000 (12:53 +0300)
Change-Id: Ib2e9415a40ec1664ea0b9881437f1c33eaf0bc09

server/src/com/vaadin/ui/components/grid/Grid.java
uitest/src/com/vaadin/tests/components/grid/GridScrolling.java

index f18ca6045eac9dc55bdd65d4ff445fab16288c2a..c91924f5a89b16f3966cf572d76ba67fe2db6d06 100644 (file)
@@ -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);
index e8b327639bee21c0b67ecc03d7131b6d53757e24..dd86d616b9bfa74d76f8b051255cb073351e31f6 100644 (file)
@@ -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);
                         }
                     });