From 0e353d91729ad6cda77924d3af37ebf6d5fb89aa Mon Sep 17 00:00:00 2001 From: Tatu Lund Date: Sat, 2 Nov 2019 19:45:22 +0200 Subject: Added note to setTemplateContents JavaDoc (#11752) Addresses https://github.com/vaadin/framework/issues/1262 --- server/src/main/java/com/vaadin/ui/CustomLayout.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server/src') 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) { -- cgit v1.2.3