Class MergeProgressPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class MergeProgressPanel extends JPanel
The MergeProgressPanel displays the name of each merge phase along with an icon indicating whether the phase is Pending, In Progress or Completed.
See Also:
  • Field Details

    • DEFINED_ICON

      public static Icon DEFINED_ICON
    • IN_PROGRESS_ICON

      public static Icon IN_PROGRESS_ICON
    • COMPLETED_ICON

      public static Icon COMPLETED_ICON
  • Constructor Details

    • MergeProgressPanel

      public MergeProgressPanel()
      Constructor for a merge progress panel.
  • Method Details

    • addInfo

      public JPanel addInfo(String[] phase)
      Adds a new phase name and its associated icon to the panel. The last string in the array will be the name displayed for this phase.
      Parameters:
      phase - array of strings indicating this phase. The first string indicates the primary phase. EAch subsequent string indicates another sub-phase of the phase indicated by the previous string. The last string indicates this phase.
      Returns:
      the panel that was added which displays this phase's name and status
    • setInProgress

      public void setInProgress(String[] phase)
      Indicates a particular phase or sub-phase whose status icon is to be changed to indicate that it is in progress.
      Parameters:
      phase - array which indicates this phase or sub-phase.
    • setCompleted

      public void setCompleted(String[] phase)
      Indicates a particular phase or sub-phase whose status icon is to be changed to indicate that it is completed.
      Parameters:
      phase - array which indicates this phase or sub-phase.
    • main

      public static void main(String[] args)