]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixing documentation for javascript layout functions.
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 21 Dec 2007 08:47:19 +0000 (08:47 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 21 Dec 2007 08:47:19 +0000 (08:47 +0000)
svn changeset:3290/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ui/ICustomLayout.java

index b96c99dfadea94f603a1edef6c916aa50a3ee2a4..b16fa8b660782dcbc9bd85ff52682f3fab68d74a 100644 (file)
@@ -427,11 +427,17 @@ public class ICustomLayout extends ComplexPanel implements Paintable,
     /**
      * In custom layout one may want to run layout functions made with
      * JavaScript. This function tests if one exists (with name "iLayoutJS" in
-     * layouts first DOM node) and runs if it. Return value is used to determine
-     * is children needs to be notified of size changes.
+     * layouts first DOM node) and runs et. Return value is used to determine if
+     * children needs to be notified of size changes.
+     * 
+     * Note! When implementing a JS layout function you most likely want to call
+     * notifyChildrenOfSizeChange() function on your custom layouts main
+     * element. That method is used to control whether child components layout
+     * functions are to be run.
      * 
      * @param el
-     * @return true if layout function was run and it returned true.
+     * @return true if layout function exists and was run successfully, else
+     *         false.
      */
     private native boolean iLayoutJS(Element el)
     /*-{