Class ErrorUtil
java.lang.Object
com.inductiveautomation.ignition.client.util.gui.ErrorUtil
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
protected static class
static interface
Vision clients should implement this so that this class can be secondary desktop aware. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static JDesktopPane
protected static ErrorUtil.MultiDesktopQuery
protected static Component
-
Method Summary
Modifier and TypeMethodDescriptionprotected static void
_addError
(ErrorPanel panel, PopupWindowParent panelParent, DisplayableError error, Component currentDesktop) static void
centerComponent
(Component source, Component parent) static void
destroy()
Used to clear default button references to avoid keyboard manager memory leak.static boolean
static void
errorSetAlwaysOnTop
(boolean alwaysOnTop) protected static Object
getMessageObject
(String message) static Component
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 parentsstatic void
init
(PopupWindowParent errorParent, PopupWindowParent warningParent, ErrorUtil.ErrorReportingService service) static boolean
static void
reportError
(String message, String title, Throwable exception) static void
setBringToFront
(boolean toFront) static void
setDesktopParent
(JDesktopPane desktopParent) static void
static void
static Boolean
showConfirm
(Component parent, String question, String title) static Boolean
showConfirm
(Component parent, String question, String title, Object[] opts) static Boolean
static Boolean
showConfirm
(String question, String title) static Boolean
showConfirm
(String question, String title, boolean allowCancel) static Boolean
showConfirm
(String question, String title, Object[] opts) protected static int
showConfirmFullscreen
(Component parent, Object message, String title, Object[] opts, int dialogType) static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
protected static void
showInfoFullscreen
(Component parent, String msg, String title, int type) static String
Displays an input box with the given default value and message.static String
protected static String
showInputFullscreen
(Component parent, Object message, String def) static String
showPasswordPrompt
(Component parent, String message, String title, String echoChar) static String
showPasswordPrompt
(String message, String title) static String
showPasswordPrompt
(String message, String title, String echoChar) protected static int
showPasswordPromptFullscreen
(Component parent, Object message, String title) static void
showWarning
(Component currentDesktop, String msg, String title) static void
showWarning
(String msg) static void
showWarning
(String msg, String title) static void
showWarning
(String msg, String title, boolean log)
-
Field Details
-
parent
-
desktopParent
-
multiDesktopQuery
-
-
Method Details
-
setDesktopParent
-
setParent
-
setMultiDesktopQuery
-
getParent
-
setBringToFront
public static void setBringToFront(boolean toFront) -
isBringToFront
public static boolean isBringToFront() -
init
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
-
showInfo
-
showInfo
-
showInfo
-
showInfoFullscreen
-
showInput
Displays an input box with the given default value and message. Returns the input, or null if cancel was chosen. -
showInput
-
showInputFullscreen
-
showPasswordPrompt
-
showPasswordPrompt
-
showPasswordPrompt
-
showPasswordPromptFullscreen
-
showConfirm
-
showConfirm
-
showConfirmFullscreen
-
showConfirm
-
showConfirm
-
showConfirm
-
showConfirm
-
showError
-
showError
-
showError
-
showError
-
showError
-
showError
-
showError
-
showError
-
showError
-
showError
-
_addError
protected static void _addError(ErrorPanel panel, PopupWindowParent panelParent, DisplayableError error, Component currentDesktop) -
reportError
-
showWarning
-
showWarning
-
showWarning
-
showWarning
-
getMessageObject
-