java.lang.Object
com.inductiveautomation.ignition.client.util.gui.ErrorUtil

public class ErrorUtil extends Object
Used to display errors, warning, etc. to the user in the client.

Handles dispatching events to the EDT, so errors can be reported from other threads.

  • Field Details

  • Method Details

    • setDesktopParent

      public static void setDesktopParent(JDesktopPane desktopParent)
    • setParent

      public static void setParent(Component p)
    • setMultiDesktopQuery

      public static void setMultiDesktopQuery(ErrorUtil.MultiDesktopQuery queryObj)
    • getParent

      public static Component getParent()
    • setBringToFront

      public static void setBringToFront(boolean toFront)
    • isBringToFront

      public static boolean isBringToFront()
    • init

      public static void init(ErrorUtil.ErrorReportingService service)
      Initialize the frames for the error and warning popups This method uses default always on top Jframes for the popup parents
    • init

      public static void init(PopupWindowParent errorParent, PopupWindowParent warningParent, ErrorUtil.ErrorReportingService service)
    • errorAlwaysOnTop

      public static boolean errorAlwaysOnTop()
    • errorSetAlwaysOnTop

      public static void errorSetAlwaysOnTop(boolean alwaysOnTop)
    • destroy

      public static void destroy()
      Used to clear default button references to avoid keyboard manager memory leak.
    • centerComponent

      public static void centerComponent(Component source, Component parent)
    • showInfo

      public static void showInfo(Component parent, String msg, String title)
    • showInfo

      public static void showInfo(String msg, String title)
    • showInfo

      public static void showInfo(Component parent, String msg, String title, int type)
    • showInfoFullscreen

      protected static void showInfoFullscreen(Component parent, String msg, String title, int type)
    • showInput

      @Nullable public static String showInput(Component parent, String message, String def)
      Displays an input box with the given default value and message. Returns the input, or null if cancel was chosen.
    • showInput

      @Nullable public static String showInput(String message, String def)
    • showInputFullscreen

      @Nullable protected static String showInputFullscreen(Component parent, Object message, String def)
    • showPasswordPrompt

      @Nullable public static String showPasswordPrompt(Component parent, String message, String title, String echoChar)
    • showPasswordPrompt

      @Nullable public static String showPasswordPrompt(String message, String title)
    • showPasswordPrompt

      @Nullable public static String showPasswordPrompt(String message, String title, String echoChar)
    • showPasswordPromptFullscreen

      protected static int showPasswordPromptFullscreen(Component parent, Object message, String title)
    • showConfirm

      @Nullable public static Boolean showConfirm(Component parent, String question, String title)
    • showConfirm

      @Nullable public static Boolean showConfirm(Component parent, String question, String title, Object[] opts)
    • showConfirmFullscreen

      protected static int showConfirmFullscreen(Component parent, Object message, String title, Object[] opts, int dialogType)
    • showConfirm

      @Nullable public static Boolean showConfirm(Component parent, String question, String title, Object[] opts, Boolean allowCancel)
    • showConfirm

      @Nullable public static Boolean showConfirm(String question, String title)
    • showConfirm

      @Nullable public static Boolean showConfirm(String question, String title, Object[] opts)
    • showConfirm

      @Nullable public static Boolean showConfirm(String question, String title, boolean allowCancel)
    • showError

      public static void showError(String message)
    • showError

      public static void showError(String message, String title)
    • showError

      public static void showError(Component currentDesktop, String msg, String title)
    • showError

      public static void showError(String message, String title, boolean log)
    • showError

      public static void showError(Throwable exception)
    • showError

      public static void showError(Throwable exception, boolean log)
    • showError

      public static void showError(String message, Throwable exception)
    • showError

      public static void showError(String message, Throwable exception, boolean log)
    • showError

      public static void showError(String message, String title, Throwable exception)
    • showError

      public static void showError(String message, String title, Throwable exception, boolean log)
    • _addError

      protected static void _addError(ErrorPanel panel, PopupWindowParent panelParent, DisplayableError error, Component currentDesktop)
    • reportError

      public static void reportError(String message, String title, Throwable exception)
    • showWarning

      public static void showWarning(String msg)
    • showWarning

      public static void showWarning(String msg, String title)
    • showWarning

      public static void showWarning(String msg, String title, boolean log)
    • showWarning

      public static void showWarning(Component currentDesktop, String msg, String title)
    • getMessageObject

      protected static Object getMessageObject(String message)