Class SlowOperation

java.lang.Object
java.lang.Thread
se.datadosen.jalbum.SlowOperation
All Implemented Interfaces:
Runnable

public abstract class SlowOperation extends Thread
  • Field Details

  • Constructor Details

    • SlowOperation

      public SlowOperation()
  • Method Details

    • launch

      public boolean launch(Window parent, String message, String title) throws Throwable
      Launch slow process and pop up dialog window during the process
      Returns:
      boolean true if process finished normally (was not aborted)
      Throws:
      Throwable
    • launch

      public boolean launch(Window parent, JLabel messageLabel, Icon altIcon, String title) throws Throwable
      Throws:
      Throwable
    • getMessageLabel

      public JLabel getMessageLabel()
    • getThrowable

      public Throwable getThrowable()
    • setResult

      public void setResult(Object result)
    • getResult

      public Object getResult()
    • isDone

      public boolean isDone()
    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • operation

      public abstract void operation() throws Throwable
      Throws:
      Throwable
    • abort

      public abstract void abort()
      A call to abort should make the run method to exit