Class ProgressPane

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ProgressPane extends JPanel
The progress bar display that is added to the ProgressPanel to show the details (progress bar and related text messages/updates) for an process (such as OpenAPI import).
Since:
1.8.0
See Also:
  • Constructor Details

    • ProgressPane

      public ProgressPane()
      Constructs a progress pane with default title (no resource indication) which includes a determinate progress bar.
    • ProgressPane

      public ProgressPane(String resource)
      Constructs a progress pane with an extended title including the identified resource (ex: a URL or file system path) which includes a determinate progress bar.
      Parameters:
      resource - a string representing the location or source of the resource being processed (ex: a URL or file system path).
    • ProgressPane

      public ProgressPane(String resource, boolean indeterminate)
      Constructs a progress pane with an extended title including the identified resource (ex: a URL or file system path) and indeterminate status indicated.
      Parameters:
      resource - a string representing the location or source of the resource being processed (ex: a URL or file system path).
      indeterminate - a boolean indicating whether or not the associated progress bar should be indeterminate (true) or not (false);
  • Method Details

    • setCurrentTask

      public void setCurrentTask(String text)
      Sets a message for the item currently being processed as part of the full collection of items (such as a URL).
      Parameters:
      text - the text to be displayed indicating the item currently being processed.
    • setTotalTasks

      public void setTotalTasks(int total)
      Sets the total number of items to be processed.
      Parameters:
      total - the total number of items to be processed.
    • setProcessedTasks

      public void setProcessedTasks(int tasksDone)
      Sets the number of items which have been processed.
      Parameters:
      tasksDone - the number of items which have been processed.
    • isCompleted

      public boolean isCompleted()
      Tells whether the process is complete.
      Returns:
      a boolean indicating whether or not the process is complete.
    • completed

      public void completed()
      Sets the process as having been completed.