Package xal.tools.apputils
Class ApplicationSupport
java.lang.Object
xal.tools.apputils.ApplicationSupport
Common application utilities
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
displayApplicationError
(String title, String prefix, Exception exception) Display an error dialog box with information about the exception.static int
displayConfirmDialog
(String title, String message) Display a confirmation dialog with a title and messagestatic void
displayError
(Exception exception) Display an error dialog box with information about the exception.static void
displayError
(String title, String message) Display an error dialog box.static void
displayError
(String title, String prefix, Exception exception) Display an error dialog box with information about the exception.static void
displayWarning
(Exception exception) Display a warning dialog box with information about the exception.static void
displayWarning
(String title, String message) Display a warning dialog box.static void
displayWarning
(String title, String prefix, Exception exception) Display a warning dialog box with information about the exception.static Window
Get the active window which is in focus for this application.
-
Method Details
-
getActiveWindow
Get the active window which is in focus for this application. It is typically a good window relative to which you can place application warning dialog boxes.- Returns:
- The active window
-
displayConfirmDialog
Display a confirmation dialog with a title and message- Parameters:
title
- The title of the dialogmessage
- The message to display- Returns:
- YES_OPTION or NO_OPTION
-
displayWarning
Display a warning dialog box with information about the exception.- Parameters:
exception
- The exception about which the warning dialog is displayed.
-
displayWarning
Display a warning dialog box.- Parameters:
title
- Title of the warning dialog box.message
- The warning message to appear in the warning dialog box.
-
displayWarning
Display a warning dialog box with information about the exception.- Parameters:
title
- Title of the warning dialog box.prefix
- Text that should appear in the dialog box before the exception message.exception
- The exception about which the warning dialog is displayed.
-
displayError
Display an error dialog box.- Parameters:
title
- Title of the warning dialog box.message
- The warning message to appear in the warning dialog box.
-
displayError
Display an error dialog box with information about the exception.- Parameters:
exception
- The exception about which the warning dialog is displayed.
-
displayError
Display an error dialog box with information about the exception. This method allows clarification about the consequences of the exception (e.g. "Save Failed:").- Parameters:
title
- Title of the warning dialog box.prefix
- Text that should appear in the dialog box before the exception message.exception
- The exception about which the warning dialog is displayed.
-
displayApplicationError
Display an error dialog box with information about the exception. This method allows clarification about the consequences of the exception (e.g. "Save Failed:").- Parameters:
title
- Title of the warning dialog box.prefix
- Text that should appear in the dialog box before the exception message.exception
- The exception about which the warning dialog is displayed.
-