diff options
-rw-r--r-- | client/src/com/vaadin/client/ui/grid/GridStaticSection.java | 3 | ||||
-rw-r--r-- | server/src/com/vaadin/ui/Grid.java | 8 |
2 files changed, 8 insertions, 3 deletions
diff --git a/client/src/com/vaadin/client/ui/grid/GridStaticSection.java b/client/src/com/vaadin/client/ui/grid/GridStaticSection.java index 3ffd37fcff..79aef4601f 100644 --- a/client/src/com/vaadin/client/ui/grid/GridStaticSection.java +++ b/client/src/com/vaadin/client/ui/grid/GridStaticSection.java @@ -402,7 +402,8 @@ abstract class GridStaticSection<ROWTYPE extends GridStaticSection.StaticRow<?>> } /** - * Inserts a new row at the given position. + * Inserts a new row at the given position. Shifts the row currently at that + * position and any subsequent rows down (adds one to their indices). * * @param index * the position at which to insert the row diff --git a/server/src/com/vaadin/ui/Grid.java b/server/src/com/vaadin/ui/Grid.java index 7a67be2c97..1b2ed6cd5f 100644 --- a/server/src/com/vaadin/ui/Grid.java +++ b/server/src/com/vaadin/ui/Grid.java @@ -3043,7 +3043,9 @@ public class Grid extends AbstractComponent implements SelectionChangeNotifier, } /** - * Inserts a new row at the given position to the header section. + * Inserts a new row at the given position to the header section. Shifts the + * row currently at that position and any subsequent rows down (adds one to + * their indices). * * @param index * the position at which to insert the row @@ -3199,7 +3201,9 @@ public class Grid extends AbstractComponent implements SelectionChangeNotifier, } /** - * Inserts a new row at the given position to the footer section. + * Inserts a new row at the given position to the footer section. Shifts the + * row currently at that position and any subsequent rows down (adds one to + * their indices). * * @param index * the position at which to insert the row |