|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpicasso.util.ThreadedCommand<T>
public class ThreadedCommand<T>
Execute a long running command in a separate thread and display the results in a component while the command is running.
Constructor Summary | |
---|---|
ThreadedCommand(javax.swing.JComponent view,
Command<T> command)
Create a command that runs the given command and updates the given view over time. |
Method Summary | |
---|---|
void |
execute(T target)
Run the command on the target or cancel it if is already running. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThreadedCommand(javax.swing.JComponent view, Command<T> command)
Method Detail |
---|
public void execute(T target)
execute
in interface Command<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |