Package ui.main
Class AlertManager
- java.lang.Object
-
- ui.main.AlertManager
-
final class AlertManager extends java.lang.ObjectThe AlertManager class is used setup and run alert messages.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description AlertManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanstartConfirmationAlert(java.lang.String message)Start and open a confirmation window.voidstartErrorAlert(java.lang.String message)Start and open an error alert window.
-
-
-
Method Detail
-
startErrorAlert
public void startErrorAlert(java.lang.String message)
Start and open an error alert window.This alert only provides the 'cancel' option.
- Parameters:
message- The message to be displayed to the user
-
startConfirmationAlert
public boolean startConfirmationAlert(java.lang.String message)
Start and open a confirmation window.This alert provides the user with a choice between 'yes', 'no', and 'cancel'. If true, the user chose the option 'yes'. If false, they chose the option 'no' or 'cancel'
- Parameters:
message- The message to be displayed to the user- Returns:
- The users confirmation choice
-
-