public interface CloneableEventListener<T extends Event> extends EventListener<T>, ComponentCloneListener
Component.addEventListener(int, java.lang.String, org.zkoss.zk.ui.event.EventListener<? extends org.zkoss.zk.ui.event.Event>)
.
It is the same as EventListener
except it also extends
ComponentCloneListener
. It is useful for instantiating a cloneable instance of
an anonymous class (so it could work in a cloned environment). For example,
comp.addEventListener("onSomething",
new CloneableEventListener() {
public void onEvent(Event event) {
//...
}
});
onEvent
willClone
Copyright © 2005-2023 Potix Corporation. All Rights Reserved.