The org.zkoss.zk.ui.util.EventInterceptor interface"
From Documentation
(Created page with ' {{ZKConfigurationReferencePageHeader}} <javadoc type="interface">org.zkoss.zk.ui.util.EventInterceptor</javadoc> is implemented by a listener class that will be used to interce…') |
m |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ZKConfigurationReferencePageHeader}} | {{ZKConfigurationReferencePageHeader}} | ||
− | <javadoc type="interface">org.zkoss.zk.ui.util.EventInterceptor</javadoc> | + | '''Listener:''' |
+ | org.zkoss.zk.ui.util.EventInterceptor | ||
+ | |||
+ | A listener could implement <javadoc type="interface">org.zkoss.zk.ui.util.EventInterceptor</javadoc> to intercept when an event is sent, posted and processed. | ||
Once registered, an instance is created and shared within the whole application. If you want to intercept events only for a particular desktop, use <javadoc method="addListener(java.lang.Object)">org.zkoss.zk.ui.Desktop</javadoc>. | Once registered, an instance is created and shared within the whole application. If you want to intercept events only for a particular desktop, use <javadoc method="addListener(java.lang.Object)">org.zkoss.zk.ui.Desktop</javadoc>. | ||
− | + | '''Instantiation:''' | |
+ | For better performance, a single instance of the given class is instantiated when registered. It is then shared in the whole application. Thus, the implementation must be thread safe. | ||
+ | |||
+ | {{ZKConfigurationReferencePageFooter}} |
Latest revision as of 07:54, 21 April 2011
Listener:
org.zkoss.zk.ui.util.EventInterceptor
A listener could implement EventInterceptor to intercept when an event is sent, posted and processed.
Once registered, an instance is created and shared within the whole application. If you want to intercept events only for a particular desktop, use Desktop.addListener(Object).
Instantiation: For better performance, a single instance of the given class is instantiated when registered. It is then shared in the whole application. Thus, the implementation must be thread safe.