Scheduler.scheduleDeferred() because the static nature of this
             API prevents effective mocking for JRE-only tests.@Deprecated
public class DeferredCommand
extends java.lang.Object
addCommand(Command) or
 addCommand(IncrementalCommand) methods. This is useful when you need
 to execute code outside of the context of the current stack.| Constructor and Description | 
|---|
| DeferredCommand()Deprecated.  | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | add(Command cmd)Deprecated. 
 As of release 1.4, replaced by  addCommand(Command) | 
| static void | addCommand(Command cmd)Deprecated.  Enqueues a  Commandto be fired after all current events have been
 handled. | 
| static void | addCommand(IncrementalCommand cmd)Deprecated.  Enqueues an  IncrementalCommandto be fired after all current events
 have been handled. | 
| static void | addPause()Deprecated. 
 with no replacement because the presence of this method causes
             arbitrary scheduling decisions | 
@Deprecated public static void add(Command cmd)
addCommand(Command)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.public static void addCommand(Command cmd)
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 firedjava.lang.NullPointerException - if cmd is nullpublic static void addCommand(IncrementalCommand cmd)
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 firedjava.lang.NullPointerException - if cmd is null@Deprecated public static void addPause()
DeferredCommands. Any
 DeferredCommands or pauses that are added after this pause will
 wait for an additional cycle through the system event loop before
 executing.