* 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
* 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 {
* </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