summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/src/main/java/com/vaadin/ui/Grid.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/server/src/main/java/com/vaadin/ui/Grid.java b/server/src/main/java/com/vaadin/ui/Grid.java
index 3e75e637d4..64a09d8d96 100644
--- a/server/src/main/java/com/vaadin/ui/Grid.java
+++ b/server/src/main/java/com/vaadin/ui/Grid.java
@@ -2566,7 +2566,10 @@ public class Grid<T> extends AbstractListing<T> implements HasComponents,
* <p>
* This method can only be used for a <code>Grid</code> created using
* {@link Grid#Grid(Class)} or {@link #withPropertySet(PropertySet)}.
- *
+ * <p>
+ * You can add columns for nested properties with dot notation, eg.
+ * <code>"property.nestedProperty"</code>
+ *
* @param propertyName
* the property name of the new column, not <code>null</code>
* @return the newly added column, not <code>null</code>
@@ -2583,6 +2586,10 @@ public class Grid<T> extends AbstractListing<T> implements HasComponents,
* <p>
* This method can only be used for a <code>Grid</code> created using
* {@link Grid#Grid(Class)} or {@link #withPropertySet(PropertySet)}.
+ * <p>
+ * You can add columns for nested properties with dot notation, eg.
+ * <code>"property.nestedProperty"</code>
+
*
* @param propertyName
* the property name of the new column, not <code>null</code>