Package com.google.gwt.user.client
Interface IncrementalCommand
-
- All Superinterfaces:
Scheduler.RepeatingCommand
@Deprecated public interface IncrementalCommand extends Scheduler.RepeatingCommand
Deprecated.Replaced byScheduler.RepeatingCommandandScheduler.scheduleIncremental()AnIncrementalCommandis a command that is broken into one or more substeps, each substep brings the whole command nearer to completion. The command is complete whenexecute()returnsfalse.public class IncrementalCommandExample implements EntryPoint { public void onModuleLoad() { final Label label = new Label(); DeferredCommand.addCommand(new IncrementalCommand() { private int index = 0; protected static final int COUNT = 10; public boolean execute() { label.setText("IncrementalCommand - index " + Integer.toString(index)); return ++index < COUNT; } }); } }
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleanexecute()Deprecated.Causes theIncrementalCommandto execute its encapsulated behavior.
-
-
-
Method Detail
-
execute
boolean execute()
Deprecated.Causes theIncrementalCommandto execute its encapsulated behavior.- Specified by:
executein interfaceScheduler.RepeatingCommand- Returns:
trueif the command has more work to do,falseotherwise
-
-