/** Clone the top component and register the clone. * Simply calls createClonedObject () and registers the component to * Ref. * * @return the new cloneable top component */ public final CloneableTopComponent cloneTopComponent() { CloneableTopComponent top = createClonedObject (); // register the component if it has not been registered before top.setReference (getReference ()); return top; }
/** Clone the top component and register the clone. * Simply calls createClonedObject () and registers the component to * Ref. * * @return the new cloneable top component */ public final CloneableTopComponent cloneTopComponent() { CloneableTopComponent top = createClonedObject (); // register the component if it has not been registered before top.setReference (getReference ()); return top; }