Package org.zkoss.zk.ui.impl
Class EventInterceptors
- java.lang.Object
-
- org.zkoss.zk.ui.impl.EventInterceptors
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class EventInterceptors extends java.lang.Object implements java.lang.Cloneable, java.io.SerializableUtilities used to handleEventInterceptor.Thread safe.
- Since:
- 3.0.0
- Author:
- tomyeh
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EventInterceptors()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEventInterceptor(EventInterceptor ei)Adds an event interceptor.voidafterProcessEvent(Event event)EventbeforePostEvent(Event event)EventbeforeProcessEvent(Event event)EventbeforeSendEvent(Event event)java.lang.Objectclone()booleanremoveEventInterceptor(java.lang.Class klass)Removes an event interceptor with the specified class.booleanremoveEventInterceptor(EventInterceptor ei)Removes an event interceptor.
-
-
-
Method Detail
-
addEventInterceptor
public void addEventInterceptor(EventInterceptor ei)
Adds an event interceptor.
-
removeEventInterceptor
public boolean removeEventInterceptor(EventInterceptor ei)
Removes an event interceptor.Note: we use the equals method to test whether two interceptors are the same.
- Returns:
- whether the listener is removed successfully.
-
removeEventInterceptor
public boolean removeEventInterceptor(java.lang.Class klass)
Removes an event interceptor with the specified class.Note: we tests whether an interceptor is an instance of the specified class. At most one instance is removed.
- Returns:
- whether the listener is removed successfully.
-
afterProcessEvent
public void afterProcessEvent(Event event)
-
clone
public java.lang.Object clone()
- Overrides:
clonein classjava.lang.Object
-
-