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, getParams, getProgressListeners, getTimeoutMilliseconds, getTimeoutSeconds, handleException, handleTimeoutException, progress, removeProgressListener
public AppFolderUpdateBackgroundTask(long timeoutSeconds)
public java.util.List<AppFolder> run(TaskLifeCycle<java.lang.Integer> taskLifeCycle) throws java.lang.Exception
BackgroundTask
TaskLifeCycle.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 environmentjava.lang.Exception
- exception in working threadpublic void done(java.util.List<AppFolder> reloadedFolders)
BackgroundTask
done
in class BackgroundTask<java.lang.Integer,java.util.List<AppFolder>>
reloadedFolders
- result of execution returned by BackgroundTask.run(TaskLifeCycle)
method