public class BackgroundProcessWithGui
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Class and Description |
---|---|
static interface |
BackgroundProcessWithGui.GUITask
The Interface GUITask.
|
static interface |
BackgroundProcessWithGui.RunInThisThread
The Interface RunInThisThread.
|
Constructor and Description |
---|
BackgroundProcessWithGui(BackgroundProcessWithGui.GUITask prepareGUI,
BackgroundProcessWithGui.RunInThisThread runHere,
BackgroundProcessWithGui.GUITask runAtEnd)
Wraps execution on this Runnable instance.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Run.
|
void |
start(java.lang.String name)
Starts a new thread for the execution of this process in background.
|
public BackgroundProcessWithGui(BackgroundProcessWithGui.GUITask prepareGUI, BackgroundProcessWithGui.RunInThisThread runHere, BackgroundProcessWithGui.GUITask runAtEnd)
prepareGUI
- can be null, if not null, the code will be executed in the AWT threadrunHere
- this code is executed in this thread. GUI can be updatedrunAtEnd
- can be null, if not null, the code will be executed in the AWT threadpublic void run()
run
in interface java.lang.Runnable
public void start(java.lang.String name)
name
- the new thread nameCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa