Class JProgressManager

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class JProgressManager extends JPanel
UI component that allows the user to monitor progress for and abort multiple background tasks, modeled after NetBeans' task progress stack. Each task features a main message, sub message, progress bar and optional pause and abort buttons. One task is the "main" task, it's also being displayed in the component's main panel. Other tasks are accessible through a pop-up panel that shows when the main panel is clicked
Since:
25
See Also:
  • Constructor Details

    • JProgressManager

      public JProgressManager(JFrame frame)
  • Method Details

    • isShowingTasksPanel

      public boolean isShowingTasksPanel()
    • showTasksPanel

      public void showTasksPanel()
    • hideTasksPanel

      public void hideTasksPanel()
    • setMainTask

      public void setMainTask(JProgressManager.TaskStatus ts)
    • getMainTask

      public JProgressManager.TaskStatus getMainTask()
    • getReferenceComponent

      public JComponent getReferenceComponent()
    • setReferenceComponent

      public void setReferenceComponent(JComponent referenceComponent)
    • addTask

      public void addTask(JProgressManager.TaskStatus ts)
      Add pending task to back of list queue. Ignore if task is already present
      Parameters:
      ts -
    • removeTask

      public void removeTask(JProgressManager.TaskStatus oldTask)
      Remove task. If removed task is main, then set next task as main started task
      Parameters:
      oldTask -
    • startTask

      public void startTask(JProgressManager.TaskStatus ts)
      Flag task as started. Also display in main panel if no other tasks are running if
      Parameters:
      ts -
    • getMaximumSize

      public Dimension getMaximumSize()
      Overrides:
      getMaximumSize in class JComponent