Package PamUtils.worker
Interface PamWorkWrapper<T>
- Type Parameters:
T
-
- All Known Implementing Classes:
DatablockDetectionsPanel
,FileListWorker
,SudAudioFile.SudMapWorker
,WavListWorker
public interface PamWorkWrapper<T>
Wrapper with two callback functions to use with a PamWorker
- Author:
- Doug
-
Method Summary
Modifier and TypeMethodDescriptionrunBackgroundTask
(PamWorker<T> pamWorker) Run the background task which is in it's own threadvoid
taskFinished
(T result) Called when the background task completes.
-
Method Details
-
runBackgroundTask
Run the background task which is in it's own thread- Parameters:
pamWorker
- reference to the main worker manager. Make repeated calls to pamWorker.update to update progress in the dialog- Returns:
- the value which will be passed to taskFinished
-
taskFinished
Called when the background task completes.- Parameters:
result
- result returned by runBackgroundTask or null if an exception occurred.
-