diff options
author | elmot <elmot@vaadin.com> | 2016-04-06 10:45:12 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2016-04-11 10:22:53 +0000 |
commit | 306f2935bf269538b730a8fc33433a2d3945cad5 (patch) | |
tree | d3d0ce917123438176ffb0b40928cb598d0185c9 /server | |
parent | e4703b14fdfb312b8b6d71e78d1a7f13b5e2a933 (diff) | |
download | vaadin-framework-306f2935bf269538b730a8fc33433a2d3945cad5.tar.gz vaadin-framework-306f2935bf269538b730a8fc33433a2d3945cad5.zip |
Documentation for container switch limitations (#18323)
Change-Id: If6fa13c84c8afb5caaf2d46ac283f704baf88695
Diffstat (limited to 'server')
-rw-r--r-- | server/src/com/vaadin/ui/Grid.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/server/src/com/vaadin/ui/Grid.java b/server/src/com/vaadin/ui/Grid.java index 4074672675..036fe8b756 100644 --- a/server/src/com/vaadin/ui/Grid.java +++ b/server/src/com/vaadin/ui/Grid.java @@ -4855,8 +4855,13 @@ public class Grid extends AbstractFocusable implements SelectionNotifier, } /** - * Sets the grid data source. - * + * Sets the grid data source.<p> + * + * <strong>Note</strong> Grid columns are based on properties and try to detect a correct converter for + * the data type. The columns are not reinitialized automatically if the container is changed, and if the same + * properties are present after container change, the columns are reused. + * Properties with same names, but different data types will lead to unpredictable behaviour. + * * @param container * The container data source. Cannot be null. * @throws IllegalArgumentException |