public class CubaFoldersPane.AppFolderUpdateBackgroundTask extends BackgroundTask<java.lang.Integer,java.util.List<AppFolder>>
BackgroundTask.ProgressListener<T,V>, BackgroundTask.ProgressListenerAdapter<T,V>| Constructor and Description |
|---|
AppFolderUpdateBackgroundTask(long timeoutSeconds) |
| Modifier and Type | Method and Description |
|---|---|
void |
done(java.util.List<AppFolder> reloadedFolders)
Called by the execution environment in UI thread when the task is completed.
|
java.util.List<AppFolder> |
run(TaskLifeCycle<java.lang.Integer> taskLifeCycle)
Main method that performs a task.
|
addProgressListener, canceled, getOwnerFrame, getOwnerScreen, getParams, getProgressListeners, getTimeoutMilliseconds, getTimeoutSeconds, handleException, handleTimeoutException, progress, removeProgressListenerpublic AppFolderUpdateBackgroundTask(long timeoutSeconds)
public java.util.List<AppFolder> run(TaskLifeCycle<java.lang.Integer> taskLifeCycle)
BackgroundTaskTaskLifeCycle.isInterrupted() and return if it is trueInterruptedException - return from the method or don't catch it at allrun in class BackgroundTask<java.lang.Integer,java.util.List<AppFolder>>taskLifeCycle - lifecycle object that allows the main method to interact with the execution environmentpublic void done(java.util.List<AppFolder> reloadedFolders)
BackgroundTaskdone in class BackgroundTask<java.lang.Integer,java.util.List<AppFolder>>reloadedFolders - result of execution returned by BackgroundTask.run(TaskLifeCycle) method