public interface ComponentCloneListener
When a component is cloned, it checks every
attribute (Component.setAttribute(java.lang.String, java.lang.Object, int)
)
and listener (Component.addEventListener(int, java.lang.String, org.zkoss.zk.ui.event.EventListener<? extends org.zkoss.zk.ui.event.Event>)
)
to see whether this interface is implemented.
If implemented, willClone(org.zkoss.zk.ui.Component)
will be called. Then, the object
can either return itself, if it can be shared by two components,
or clone itself, if an independent instance must be used for
each component.
java.lang.Object willClone(Component comp)
comp
- the cloned component (not the original one)Copyright © 2005-2011 Potix Corporation. All Rights Reserved.