|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ComponentCloneListener
Used to notify an object stored in a component, when the component is cloned.
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.
Method Summary | |
---|---|
java.lang.Object |
willClone(Component comp)
Called when a component is going to be cloned. |
Method Detail |
---|
java.lang.Object willClone(Component comp)
comp
- the cloned component (not the orginal one)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |