From 37750089927996833669b61284d28411592868bd Mon Sep 17 00:00:00 2001 From: Sun Zhe <31067185+ZheSun88@users.noreply.github.com> Date: Fri, 28 Dec 2018 16:17:14 +0200 Subject: Add Javadoc to the ScrollTo methods in TreeGrid (#11399) * Add Javadoc to the ScrollTo methods in TreeGrid --- server/src/main/java/com/vaadin/ui/TreeGrid.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'server') diff --git a/server/src/main/java/com/vaadin/ui/TreeGrid.java b/server/src/main/java/com/vaadin/ui/TreeGrid.java index 9c01daa047..f405e8766b 100644 --- a/server/src/main/java/com/vaadin/ui/TreeGrid.java +++ b/server/src/main/java/com/vaadin/ui/TreeGrid.java @@ -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 extends Grid }); } + /** + * 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. * -- cgit v1.2.3