Class IrisSwingWorkerWithProgress<T>

java.lang.Object
com.illumon.iris.gui.util.IrisSwingWorker
com.illumon.iris.gui.util.IrisSwingWorkerWithProgress<T>

public abstract class IrisSwingWorkerWithProgress<T> extends IrisSwingWorker
  • Constructor Details

    • IrisSwingWorkerWithProgress

      public IrisSwingWorkerWithProgress(com.fishlib.io.logger.Logger log, Window windowAncestor, String dialogTitle, String labelText, Dialog.ModalityType modalityType)
  • Method Details

    • makeValue

      public abstract T makeValue() throws Exception
      Throws:
      Exception
    • construct

      public Object construct()
      Description copied from class: IrisSwingWorker
      Compute the value to be returned by the get method.
      Specified by:
      construct in class IrisSwingWorker
    • finished

      public void finished()
      Description copied from class: IrisSwingWorker
      Called on the event dispatching thread (not on the worker thread) after the construct method has returned.
      Overrides:
      finished in class IrisSwingWorker
    • displayError

      protected void displayError(Throwable result)
    • displayError

      protected void displayError(String message)
    • complete

      public abstract void complete(T value)
    • errorCompletion

      protected void errorCompletion()
    • getErrorString

      protected String getErrorString()
    • start

      public void start()
      Description copied from class: IrisSwingWorker
      Start the worker thread.
      Overrides:
      start in class IrisSwingWorker
    • setProgress

      public void setProgress(int value, int minimum, int maximum)
    • addButton

      public void addButton(String name, ActionListener listener)
      Adds a button to the bottom of the panel with the given name and action listener.
      Parameters:
      name - the name of the button
      listener - the action listner for the button click