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 voidshowAlert(javafx.scene.control.Alert.AlertType type, java.lang.String title, java.lang.String message)Shows anAlertand waits for the user to click OK.static voidshowExceptionAlert(java.lang.String title, java.lang.String message, java.lang.Exception e)Shows anAlertwith 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 anAlertand waits for the user to click OK.- Parameters:
type- TheAlert.AlertTypeto 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 anAlertwith support for including exceptions to display.- Parameters:
title- The title of the alert.message- The message body of the alert.e- TheExceptionthat caused the alert.
-