Class ProgressDialog

    • Constructor Detail

      • ProgressDialog

        public ProgressDialog​(JFrame parentFrame,
                              Component relativeTo,
                              org.forgerock.i18n.LocalizableMessage title,
                              ControlPanelInfo info)
        Constructor of the dialog.
        Parameters:
        parentFrame - the parent frame.
        relativeTo - the component to use as reference to set the position of this dialog.
        title - the title of the dialog.
        info - the control panel information.
    • Method Detail

      • addPrintStreamListeners

        public void addPrintStreamListeners​(ApplicationPrintStream outPrintStream,
                                            ApplicationPrintStream errorPrintStream)
        Adds two print stream listeners.
        Parameters:
        outPrintStream - the output stream listener.
        errorPrintStream - the error stream listener.
      • getProgressBar

        public JProgressBar getProgressBar()
        Returns the progress bar of the dialog.
        Returns:
        the progress bar of the dialog.
      • appendProgressHtml

        public void appendProgressHtml​(String text)
        Appends some text in HTML format to the 'Details' section of the dialog.
        Parameters:
        text - the text in HTML format to be appended.
      • resetProgressLogs

        public void resetProgressLogs()
        Resets the contents of the 'Details' section of the dialog.
      • setSummary

        public void setSummary​(org.forgerock.i18n.LocalizableMessage text)
        Sets the text to be displayed in the summary area of the progress dialog.
        Parameters:
        text - the text to be displayed.
      • setEnabledClose

        public void setEnabledClose​(boolean enable)
        Description copied from class: GenericDialog
        Sets the enable state of the Close button.
        Overrides:
        setEnabledClose in class GenericDialog
        Parameters:
        enable - whether the Close button must be enabled or not.
      • setTaskIsOver

        public void setTaskIsOver​(boolean taskIsOver)
        Note: this will make the dialog to be closed asynchronously. So that sequential calls to setTaskIsOver(true) and setTaskIsOver(false) on the event thread are guaranteed not to close the dialog.
        Parameters:
        taskIsOver - whether the task is finished or not.