java.lang.Object | |
↳ | com.google.gwt.user.client.DeferredCommand |
This class is deprecated.
Replaced by
Scheduler.scheduleDeferred()
because the static nature of this
API prevents effective mocking for JRE-only tests.
This class allows you to execute code after all currently pending event
handlers have completed, using the addCommand(Command)
or
addCommand(IncrementalCommand)
methods. This is useful when you need
to execute code outside of the context of the current stack.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
As of release 1.4, replaced by
addCommand(Command)
| |||||||||||
Enqueues a
Command to be fired after all current events have been
handled. | |||||||||||
Enqueues an
IncrementalCommand to be fired after all current events
have been handled. | |||||||||||
This method is deprecated.
with no replacement because the presence of this method causes
arbitrary scheduling decisions
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
This method is deprecated.
As of release 1.4, replaced by addCommand(Command)
Enqueues a Command
to be fired after all current events have been
handled.
cmd | the command to be fired. If cmd is null, a "pause" will be inserted into the queue. Any events added after the pause will wait for an additional cycle through the system event loop before executing. Pauses are cumulative. |
---|
Enqueues a Command
to be fired after all current events have been
handled.
Note that the Command
should not perform any blocking operations.
cmd | the command to be fired |
---|
NullPointerException | if cmd is null
|
---|
Enqueues an IncrementalCommand
to be fired after all current events
have been handled.
Note that the IncrementalCommand
should not perform any blocking
operations.
cmd | the command to be fired |
---|
NullPointerException | if cmd is null
|
---|
This method is deprecated.
with no replacement because the presence of this method causes
arbitrary scheduling decisions
Adds a "pause" to the queue of DeferredCommand
s. Any
DeferredCommand
s or pauses that are added after this pause will
wait for an additional cycle through the system event loop before
executing.