diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2014-11-25 15:14:34 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2014-12-01 09:15:02 +0000 |
commit | 553866297f3224e5e1bc852e41ac1fed2d51abce (patch) | |
tree | 47e39b002f75085b6f0e1bd16961aa7b4e7f6991 | |
parent | 4e1b181a699efcd083b14270145bd2e540a2f772 (diff) | |
download | vaadin-framework-553866297f3224e5e1bc852e41ac1fed2d51abce.tar.gz vaadin-framework-553866297f3224e5e1bc852e41ac1fed2d51abce.zip |
Clarify Header/Footer addRow(index) JavaDoc (#13334)
Change-Id: Ided3d7a4a61754d8445e9f4cd80cb1e7b05a400e
-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 |