Class PromptHelper

java.lang.Object
comp3111.covid.PromptHelper

public class PromptHelper
extends java.lang.Object
  • Method Summary

    Modifier and Type Method Description
    static void showErrorPrompt​(javafx.stage.Window owner, java.lang.String msg)
    Factory method for showing a error dialog.
    static void showInfoPrompt​(javafx.stage.Window owner, java.lang.String msg)
    Factory method for showing a information dialog.
    static void showPrompt​(javafx.stage.Window owner, java.lang.String msg, javafx.scene.control.Alert.AlertType type)
    Show a alert dialog.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • showPrompt

      public static void showPrompt​(javafx.stage.Window owner, java.lang.String msg, javafx.scene.control.Alert.AlertType type)
      Show a alert dialog.
      Parameters:
      owner - the stage associated with the dialog.
      msg - message to be displayed.
      type - alert type.
    • showErrorPrompt

      public static void showErrorPrompt​(javafx.stage.Window owner, java.lang.String msg)
      Factory method for showing a error dialog.
      Parameters:
      owner - the stage associated with the dialog.
      msg - message to be displayed.
    • showInfoPrompt

      public static void showInfoPrompt​(javafx.stage.Window owner, java.lang.String msg)
      Factory method for showing a information dialog.
      Parameters:
      owner - the stage associated with the dialog.
      msg - message to be displayed.