If the scope of a event queue is desktop or group, this method must be called within an activated exection (i.e., {@link org.zkoss.zk.ui.Executions#getCurrent} not null),or in an asynchronous listener (see {@link EventQueue}).
On the other hand, if the scope is session or application, it is OK to be called without the current execution. @exception IllegalStateException if this method is callednot within an activated execution (such as a working thread), and this is a ( {@link EventQueues#DESKTOP}) or {@link EventQueues#GROUP}event queue.
|
|
|
|
|
|