summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorHenri Sara <henri.sara@gmail.com>2017-06-26 12:15:50 +0300
committerLeif Åstrand <legioth@gmail.com>2017-06-26 12:15:50 +0300
commit65ac37ae63f65d17731dafdab85f0be53158ae78 (patch)
treec97a4722b407b42eebeb153f427c4810df028747 /server
parent146743f28925fa1cc8de3db285d81c22d23a1602 (diff)
downloadvaadin-framework-65ac37ae63f65d17731dafdab85f0be53158ae78.tar.gz
vaadin-framework-65ac37ae63f65d17731dafdab85f0be53158ae78.zip
Clarify javadoc of Grid.scrollTo (#9582)
Resolves #9265
Diffstat (limited to 'server')
-rw-r--r--server/src/main/java/com/vaadin/ui/Grid.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/server/src/main/java/com/vaadin/ui/Grid.java b/server/src/main/java/com/vaadin/ui/Grid.java
index ac7eb4f0e9..58f834cafd 100644
--- a/server/src/main/java/com/vaadin/ui/Grid.java
+++ b/server/src/main/java/com/vaadin/ui/Grid.java
@@ -3682,11 +3682,12 @@ public class Grid<T> extends AbstractListing<T> implements HasComponents,
/**
* Scrolls to a certain item, using {@link ScrollDestination#ANY}.
* <p>
- * If the item has visible details, its size will also be taken into
+ * If the item has an open details row, its size will also be taken into
* account.
*
* @param row
- * id of item to scroll to.
+ * zero based index of the item to scroll to in the current
+ * view.
* @throws IllegalArgumentException
* if the provided id is not recognized by the data source.
*/
@@ -3697,10 +3698,12 @@ public class Grid<T> extends AbstractListing<T> implements HasComponents,
/**
* Scrolls to a certain item, using user-specified scroll destination.
* <p>
- * If the row has visible details, its size will also be taken into account.
+ * If the item has an open details row, its size will also be taken into
+ * account.
*
* @param row
- * id of item to scroll to.
+ * zero based index of the item to scroll to in the current
+ * view.
* @param destination
* value specifying desired position of scrolled-to row, not
* {@code null}