Documentation of 'org.uncommons.swing.SwingBackgroundTask' Java class
SwingBackgroundTask
org.uncommons.swing

Class SwingBackgroundTask<V>

  • Type Parameters:
    V - Type of result generated by the task.


    public abstract class SwingBackgroundTask<V>
    extends java.lang.Object
    A task that is executed on a background thread and then updates a Swing GUI. A task may only be executed once.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void execute()
      Asynchronous call that begins execution of the task and returns immediately.
      void waitForCompletion()
      Waits for the execution of this task to complete.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • execute

        public void execute()
        Asynchronous call that begins execution of the task and returns immediately.
      • waitForCompletion

        public void waitForCompletion()
                               throws java.lang.InterruptedException
        Waits for the execution of this task to complete. If the execute() method has not yet been invoked, this method will block indefinitely.
        Throws:
        java.lang.InterruptedException - If the thread executing the task is interrupted.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.