]> source.dussan.org Git - vaadin-framework.git/commitdiff
Javadoc - mentioned that components must notify their Root when they are
authorArtur Signell <artur@vaadin.com>
Fri, 16 Mar 2012 18:14:51 +0000 (20:14 +0200)
committerArtur Signell <artur@vaadin.com>
Wed, 21 Mar 2012 13:27:33 +0000 (15:27 +0200)
attached/detached

src/com/vaadin/ui/Component.java

index ae6fcd937816a7fba07fac7002a7ace88fd34931..c0c43fcec3d9bd7cd37d67a5ad5615e29cb73640 100644 (file)
@@ -329,7 +329,6 @@ public interface Component extends ClientConnector, Paintable, VariableOwner,
      * is attached to the application, {@link #detach()} is called for the
      * component.
      * </p>
-     * 
      * <p>
      * This method is rarely called directly. The
      * {@link ComponentContainer#addComponent(Component)} method is normally
@@ -620,6 +619,11 @@ public interface Component extends ClientConnector, Paintable, VariableOwner,
      * application, the {@code attach()} is called immediately from
      * {@link #setParent(Component)}.
      * </p>
+     * <p>
+     * This method must call {@link Root#componentAttached(Component)} to let
+     * the Root know that a new Component has been attached.
+     * </p>
+     * 
      * 
      * <pre>
      * public class AttachExample extends CustomComponent {
@@ -655,6 +659,11 @@ public interface Component extends ClientConnector, Paintable, VariableOwner,
      * </p>
      * 
      * <p>
+     * This method must call {@link Root#componentDetached(Component)} to let
+     * the Root know that a new Component has been attached.
+     * </p>
+     * *
+     * <p>
      * The caller of this method is {@link #setParent(Component)} if the parent
      * is in the application. When the parent is detached from the application
      * it is its response to call {@link #detach()} for all the children and to