Class UnsavedChangesDialog

    • Constructor Detail

      • UnsavedChangesDialog

        public UnsavedChangesDialog​(Component parentDialog,
                                    ControlPanelInfo info)
        Constructor of the dialog.
        Parameters:
        parentDialog - the parent dialog.
        info - the control panel info.
    • Method Detail

      • setMessage

        public void setMessage​(org.forgerock.i18n.LocalizableMessage title,
                               org.forgerock.i18n.LocalizableMessage details)
        Sets the message to be displayed in this dialog.
        Parameters:
        title - the title of the message.
        details - the details of the message.
      • getResult

        public UnsavedChangesDialog.Result getResult()
        Returns the option the user gave when closing this dialog.
        Returns:
        the option the user gave when closing this dialog.