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 an Alert and waits for the user to click OK.
    static void showExceptionAlert​(java.lang.String title, java.lang.String message, java.lang.Exception e)
    Shows an Alert 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 an Alert and waits for the user to click OK.
      Parameters:
      type - The Alert.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 an Alert with support for including exceptions to display.
      Parameters:
      title - The title of the alert.
      message - The message body of the alert.
      e - The Exception that caused the alert.