Package ui.main

Class AlertManager


  • final class AlertManager
    extends java.lang.Object
    The 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
      boolean startConfirmationAlert​(java.lang.String message)
      Start and open a confirmation window.
      void startErrorAlert​(java.lang.String message)
      Start and open an error alert window.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AlertManager

        AlertManager()
    • 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