aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTatu Lund <tatu@vaadin.com>2019-11-02 19:45:22 +0200
committerGitHub <noreply@github.com>2019-11-02 19:45:22 +0200
commit0e353d91729ad6cda77924d3af37ebf6d5fb89aa (patch)
tree2f5c1bafd41f85a6b388a15e4bc8a1da3c6b7926
parent1b55d3668bc067a266c6a1b128b978c43418b812 (diff)
downloadvaadin-framework-0e353d91729ad6cda77924d3af37ebf6d5fb89aa.tar.gz
vaadin-framework-0e353d91729ad6cda77924d3af37ebf6d5fb89aa.zip
Added note to setTemplateContents JavaDoc (#11752)
Addresses https://github.com/vaadin/framework/issues/1262
-rw-r--r--server/src/main/java/com/vaadin/ui/CustomLayout.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/main/java/com/vaadin/ui/CustomLayout.java b/server/src/main/java/com/vaadin/ui/CustomLayout.java
index 7764846065..4fd331c462 100644
--- a/server/src/main/java/com/vaadin/ui/CustomLayout.java
+++ b/server/src/main/java/com/vaadin/ui/CustomLayout.java
@@ -292,6 +292,9 @@ public class CustomLayout extends AbstractLayout implements LegacyComponent {
/**
* Set the contents of the template used to draw the custom layout.
*
+ * Note: setTemplateContents can be applied only before CustomLayout
+ * instance has been attached.
+ *
* @param templateContents
*/
public void setTemplateContents(String templateContents) {