Class Task

java.lang.Object
ca.spatial.util.Task

public class Task extends Object
A class to hold task information for the LoadProgress widget.
  • Constructor Details

    • Task

      public Task(LoadProgress lp, String description, float weight, JLabel label, JLabel tickOff)
      The full constructor
      Parameters:
      description - A previously defined task.
      weight - The relative weight of this task compared to the other tasks.
      tickOff - A label that will eventually contain the checked off icon.
  • Method Details

    • updateProgress

      public void updateProgress(float percent)
      Update the progress of a task.
      Parameters:
      percent - The amount complete as a value between 0 and 1.
    • activate

      public void activate()
    • taskComplete

      public void taskComplete()
      Specify that the task is entirely complete and put a check mark beside the task name.