]> source.dussan.org Git - vaadin-framework.git/commitdiff
Add Javadoc to the ScrollTo methods in TreeGrid (#11399) pr11403/r6
authorSun Zhe <31067185+ZheSun88@users.noreply.github.com>
Fri, 28 Dec 2018 14:17:14 +0000 (16:17 +0200)
committerGitHub <noreply@github.com>
Fri, 28 Dec 2018 14:17:14 +0000 (16:17 +0200)
* Add Javadoc to the ScrollTo methods in TreeGrid

server/src/main/java/com/vaadin/ui/TreeGrid.java

index 9c01daa047da658ef797b064b0c8715b1c4b368a..f405e8766b24d6a4324fb3244f7de9d0d9e67d4f 100644 (file)
@@ -43,6 +43,7 @@ import com.vaadin.event.CollapseEvent.CollapseListener;
 import com.vaadin.event.ExpandEvent;
 import com.vaadin.event.ExpandEvent.ExpandListener;
 import com.vaadin.shared.Registration;
+import com.vaadin.shared.ui.grid.ScrollDestination;
 import com.vaadin.shared.ui.treegrid.FocusParentRpc;
 import com.vaadin.shared.ui.treegrid.FocusRpc;
 import com.vaadin.shared.ui.treegrid.NodeCollapseRpc;
@@ -199,6 +200,26 @@ public class TreeGrid<T> extends Grid<T>
         });
     }
 
+    /**
+     * This method is inherited from Grid but should never be called directly
+     * with a TreeGrid
+     */
+    @Override
+    @Deprecated
+    public void scrollTo(int row) throws IllegalArgumentException {
+        super.scrollTo(row);
+    }
+
+    /**
+     * This method is inherited from Grid but should never be called directly
+     * with a TreeGrid
+     */
+    @Deprecated
+    @Override
+    public void scrollTo(int row, ScrollDestination destination) {
+        super.scrollTo(row, destination);
+    }
+
     /**
      * Adds an ExpandListener to this TreeGrid.
      *