summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlli Tietäväinen <ollit@vaadin.com>2017-12-27 11:58:23 +0200
committerTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2017-12-27 11:58:23 +0200
commit30fdd68d44a3f68080c361a9d7ac9c45f464f7b7 (patch)
tree26665ddf3b8a619fcbbba7587d80456ed7175e66
parente0858a5f4036bee5f677baf01707a63a72331fa0 (diff)
downloadvaadin-framework-30fdd68d44a3f68080c361a9d7ac9c45f464f7b7.tar.gz
vaadin-framework-30fdd68d44a3f68080c361a9d7ac9c45f464f7b7.zip
Update Grid.addColumn JavaDoc to tell about nested properties (#10431)
-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>