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 Type
    Method
    Description
    Run the background task which is in it's own thread
    void
    taskFinished(T result)
    Called when the background task completes.
  • Method Details

    • runBackgroundTask

      T runBackgroundTask(PamWorker<T> pamWorker)
      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

      void taskFinished(T result)
      Called when the background task completes.
      Parameters:
      result - result returned by runBackgroundTask or null if an exception occurred.