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 interfaceprotected static classstatic interfaceVision clients should implement this so that this class can be secondary desktop aware. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static JDesktopPaneprotected static ErrorUtil.MultiDesktopQueryprotected static Component -
Method Summary
Modifier and TypeMethodDescriptionprotected static void_addError(ErrorPanel panel, PopupWindowParent panelParent, DisplayableError error, Component currentDesktop) static voidcenterComponent(Component source, Component parent) static voiddestroy()Used to clear default button references to avoid keyboard manager memory leak.static booleanstatic voiderrorSetAlwaysOnTop(boolean alwaysOnTop) protected static ObjectgetMessageObject(String message) static Componentstatic voidinit(ErrorUtil.ErrorReportingService service) Initialize the frames for the error and warning popups This method uses default always on top Jframes for the popup parentsstatic voidinit(PopupWindowParent errorParent, PopupWindowParent warningParent, ErrorUtil.ErrorReportingService service) static booleanstatic voidreportError(String message, String title, Throwable exception) static voidsetBringToFront(boolean toFront) static voidsetDesktopParent(JDesktopPane desktopParent) static voidstatic voidstatic BooleanshowConfirm(Component parent, String question, String title) static BooleanshowConfirm(Component parent, String question, String title, Object[] opts) static Booleanstatic BooleanshowConfirm(String question, String title) static BooleanshowConfirm(String question, String title, boolean allowCancel) static BooleanshowConfirm(String question, String title, Object[] opts) protected static intshowConfirmFullscreen(Component parent, Object message, String title, Object[] opts, int dialogType) static voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidprotected static voidshowInfoFullscreen(Component parent, String msg, String title, int type) static StringDisplays an input box with the given default value and message.static Stringprotected static StringshowInputFullscreen(Component parent, Object message, String def) static StringshowPasswordPrompt(Component parent, String message, String title, String echoChar) static StringshowPasswordPrompt(String message, String title) static StringshowPasswordPrompt(String message, String title, String echoChar) protected static intshowPasswordPromptFullscreen(Component parent, Object message, String title) static voidshowWarning(Component currentDesktop, String msg, String title) static voidshowWarning(String msg) static voidshowWarning(String msg, String title) static voidshowWarning(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
-