Package org.zkoss.zk.ui.impl
Class EventInterceptors
java.lang.Object
org.zkoss.zk.ui.impl.EventInterceptors
- All Implemented Interfaces:
Serializable,Cloneable
Utilities used to handle
EventInterceptor.
Thread safe.
- Since:
- 3.0.0
- Author:
- tomyeh
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an event interceptor.voidafterProcessEvent(Event event) beforePostEvent(Event event) beforeProcessEvent(Event event) beforeSendEvent(Event event) clone()booleanremoveEventInterceptor(Class klass) Removes an event interceptor with the specified class.booleanRemoves an event interceptor.
-
Constructor Details
-
EventInterceptors
public EventInterceptors()
-
-
Method Details
-
addEventInterceptor
Adds an event interceptor. -
removeEventInterceptor
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
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.
-
beforeSendEvent
-
beforePostEvent
-
beforeProcessEvent
-
afterProcessEvent
-
clone
-