Class ProgressView<T>

Type Parameters:
T - the type of the tasks being tracked
All Implemented Interfaces:
com.dua3.utility.concurrent.ProgressTracker<T>, Styleable, EventTarget

public class ProgressView<T> extends GridPane implements com.dua3.utility.concurrent.ProgressTracker<T>
ProgressView is a UI component that displays the progress of tasks in a grid layout. It extends GridPane and implements the ProgressTracker interface.
  • Constructor Details

    • ProgressView

      public ProgressView()
      Constructs a new ProgressView object. This constructor sets up the necessary column constraints for the grid layout of the progress view and initializes the underlying progress view mechanism.
  • Method Details

    • schedule

      public void schedule(T task)
      Specified by:
      schedule in interface com.dua3.utility.concurrent.ProgressTracker<T>
    • start

      public void start(T task)
      Specified by:
      start in interface com.dua3.utility.concurrent.ProgressTracker<T>
    • pause

      public void pause(T task)
      Specified by:
      pause in interface com.dua3.utility.concurrent.ProgressTracker<T>
    • abort

      public void abort(T task)
      Specified by:
      abort in interface com.dua3.utility.concurrent.ProgressTracker<T>
    • finish

      public void finish(T task, com.dua3.utility.concurrent.ProgressTracker.State s)
      Specified by:
      finish in interface com.dua3.utility.concurrent.ProgressTracker<T>
    • update

      public void update(T task, int total, int done)
      Specified by:
      update in interface com.dua3.utility.concurrent.ProgressTracker<T>
    • update

      public void update(T task, double percentDone)
      Specified by:
      update in interface com.dua3.utility.concurrent.ProgressTracker<T>