Package picasso.util
Class ThreadedCommand<T>
java.lang.Object
picasso.util.ThreadedCommand<T>
- All Implemented Interfaces:
Command<T>
Execute a long running command in a separate thread and display the results
in a component while the command is running.
- Author:
- Robert C Duvall, Sara Sprenkle - fixed bug with initial isDone parameter
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionThreadedCommand(JComponent view, Command<T> command) Create a command that runs the given command and updates the given view over time. -
Method Summary
-
Field Details
-
DELAY
private static final int DELAY- See Also:
-
myCommand
-
myView
-
isDone
private boolean isDone
-
-
Constructor Details
-
ThreadedCommand
Create a command that runs the given command and updates the given view over time.
-
-
Method Details