Class ErrorPopupPresenter


  • @ApplicationScoped
    public class ErrorPopupPresenter
    extends Object
    Shows simple text-only error messages in a modal popup dialog that sits above the workbench. This is designed to be used only for reporting error conditions; to make a full-featured popup UI, see WorkbenchPopup.
    • Method Detail

      • showMessage

        public void showMessage​(String msg,
                                org.uberfire.mvp.Command afterShow,
                                org.uberfire.mvp.Command afterClose)
        Shows the given message in a modal popup that appears above all other workbench contents.
        Parameters:
        msg - The message to display as plain text. HTML tags are not interpreted, and newlines are rendered as newlines.
        afterShow - The command to invoke once the dialog has been displayed. Must not be null.
        afterClose - The command to invoke once the dialog has been closed. Must not be null.
      • showMessage

        public void showMessage​(String msg)
        Shows the given message in a modal popup that appears above all other workbench contents.
        Parameters:
        msg - The message to display as plain text. HTML tags are not interpreted, and newlines are rendered as newlines.