Package com.assemblyrobot.ui.utils
Class AlertUtils
java.lang.Object
com.assemblyrobot.ui.utils.AlertUtils
public abstract class AlertUtils
extends java.lang.Object
Generic alert utilities.
-
Constructor Summary
Constructors Constructor Description AlertUtils()
-
Method Summary
Modifier and Type Method Description static void
showAlert(javafx.scene.control.Alert.AlertType type, java.lang.String title, java.lang.String message)
Shows anAlert
and waits for the user to click OK.static void
showExceptionAlert(java.lang.String title, java.lang.String message, java.lang.Exception e)
Shows anAlert
with support for including exceptions to display.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
AlertUtils
public AlertUtils()
-
-
Method Details
-
showAlert
public static void showAlert(javafx.scene.control.Alert.AlertType type, java.lang.String title, java.lang.String message)Shows anAlert
and waits for the user to click OK.- Parameters:
type
- TheAlert.AlertType
to use.title
- The title for the alert.message
- The message body of the alert.
-
showExceptionAlert
public static void showExceptionAlert(java.lang.String title, java.lang.String message, java.lang.Exception e)Shows anAlert
with support for including exceptions to display.- Parameters:
title
- The title of the alert.message
- The message body of the alert.e
- TheException
that caused the alert.
-