Package org.zkoss.zkmax.ui.event.impl
Class EventQueueProviderImpl
java.lang.Object
org.zkoss.zk.ui.event.impl.EventQueueProviderImpl
org.zkoss.zkmax.ui.event.impl.EventQueueProviderImpl
- All Implemented Interfaces:
EventQueueProvider
Enhance the default implementation to support
EventQueues.GROUP.- Since:
- 5.0.4
- Author:
- tomyeh
-
Field Summary
Fields inherited from class org.zkoss.zk.ui.event.impl.EventQueueProviderImpl
ATTR_EVENT_QUEUES -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.zkoss.zk.ui.event.impl.EventQueueProviderImpl
lookup, lookup, remove, remove
-
Constructor Details
-
EventQueueProviderImpl
public EventQueueProviderImpl()
-
-
Method Details
-
lookup
Description copied from interface:EventQueueProviderReturns the event queue with the specified name in the specified scope.Note:
- This method can be called only in an activated execution,
i.e.,
Executions.getCurrent()not null. - By default,
EventQueueProviderImplis used. To customize it, refer toEventQueues.
- Specified by:
lookupin interfaceEventQueueProvider- Overrides:
lookupin classEventQueueProviderImpl- Parameters:
name- the name of the event queue.scope- the scope of the event queue. It must supportEventQueues.DESKTOPandEventQueues.APPLICATION. Developers might extend it to support other types of event queues.autoCreate- whether to create the event queue if not found.- Returns:
- the event queue with the associated name, or null if not found and autoCreate is false
- This method can be called only in an activated execution,
i.e.,
-
remove
Description copied from interface:EventQueueProviderRemoves the event queue.- Specified by:
removein interfaceEventQueueProvider- Overrides:
removein classEventQueueProviderImpl- Parameters:
name- the name of the event queue.scope- the scope of the event queue. It must supportEventQueues.DESKTOPandEventQueues.APPLICATION. Developers might extend it to support other types of event queues.- Returns:
- true if it is removed successfully
-