Class DummyWorker<T>

  • All Implemented Interfaces:
    java.lang.Runnable, java.util.concurrent.Future<T>, java.util.concurrent.RunnableFuture<T>

    public class DummyWorker<T>
    extends javax.swing.SwingWorker<T,​java.lang.Void>
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javax.swing.SwingWorker

        javax.swing.SwingWorker.StateValue
    • Constructor Summary

      Constructors 
      Constructor Description
      DummyWorker​(java.util.concurrent.CompletableFuture<T> future, java.util.function.Consumer<T> onSuccess, java.lang.Runnable onCancellation)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected T doInBackground()  
      protected void done()  
      • Methods inherited from class javax.swing.SwingWorker

        addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgress
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DummyWorker

        public DummyWorker​(java.util.concurrent.CompletableFuture<T> future,
                           java.util.function.Consumer<T> onSuccess,
                           java.lang.Runnable onCancellation)
    • Method Detail

      • doInBackground

        protected T doInBackground()
                            throws java.lang.Exception
        Specified by:
        doInBackground in class javax.swing.SwingWorker<T,​java.lang.Void>
        Throws:
        java.lang.Exception
      • done

        protected void done()
        Overrides:
        done in class javax.swing.SwingWorker<T,​java.lang.Void>