public class UiDispatcherGwt extends AbstractUiDispatcher
UiDispatcher
for GWT.Constructor and Description |
---|
UiDispatcherGwt()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
invokeAsynchron(Runnable task)
This method
invokes the given task asynchronous in the dispatcher
thread of the UI. |
void |
invokeTimer(Callable<Boolean> task,
int delayMilliseconds)
This method
invokes the given task periodically. |
void |
invokeTimer(Runnable task,
int delayMilliseconds)
This method
invokes the given task asynchronous after the given
dalay. |
boolean |
sleep()
This method puts the UI thread to sleep until a event to
dispatch is
received or it is awakened. |
dispatch, invokeSynchron, invokeSynchron, isDispatchThread, toString
createLogger, doInitialize, getLogger
doInitialized, getInitializationState, initialize
public boolean sleep()
dispatch
is
received or it is awakened.true
if an event to dispatch
was received, false
otherwise.public void invokeAsynchron(Runnable task)
invokes
the given task
asynchronous in the dispatcher
thread of the UI. The term "asynchronous" means that this method may return before the task
is invoked. If there is NO dispatcher thread in the underlying UI implementation, the task
may simply be invoked directly in the implementation of this method.task
- is the job to invoke
.public void invokeTimer(Callable<Boolean> task, int delayMilliseconds)
invokes
the given task
periodically. The first
invocation
is performed after the given delay. Every time the task
returns true
, another invocation
is performed after the same
delay until false
is returned.task
- is the job to invoke
.delayMilliseconds
- is the periodically delay in milliseconds when the task
shall be
executed.Copyright © 2001–2016 mmm-Team. All rights reserved.