Interface ComponentCloneListener

    • Method Detail

      • willClone

        java.lang.Object willClone​(Component comp)
        Called when a component is going to be cloned. If the object is OK to be shared by the cloned and original components, it can return itself. If an independent instance must be created for the cloned component, it can clone itself and return the cloned object.
        comp - the cloned component (not the original one)
        the object to be used in the cloned component. If this object is returned, the same object is shared by the cloned and original components. If other object is returned, it is used by the cloned component. If null is returned, it is not used by the cloned component at all.