Package comp3111.covid
Class PromptHelper
java.lang.Object
comp3111.covid.PromptHelper
public class PromptHelper
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description static voidshowErrorPrompt(javafx.stage.Window owner, java.lang.String msg)Factory method for showing a error dialog.static voidshowInfoPrompt(javafx.stage.Window owner, java.lang.String msg)Factory method for showing a information dialog.static voidshowPrompt(javafx.stage.Window owner, java.lang.String msg, javafx.scene.control.Alert.AlertType type)Show a alert dialog.
-
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.
-