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.Serializable
Utilities 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 void
addEventInterceptor(EventInterceptor ei)
Adds an event interceptor.void
afterProcessEvent(Event event)
Event
beforePostEvent(Event event)
Event
beforeProcessEvent(Event event)
Event
beforeSendEvent(Event event)
java.lang.Object
clone()
boolean
removeEventInterceptor(java.lang.Class klass)
Removes an event interceptor with the specified class.boolean
removeEventInterceptor(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:
clone
in classjava.lang.Object
-
-