java.lang.Object
edu.ntnu.idatt1002.g106.handballapp.finalprod.backend.AlertBox

public class AlertBox extends Object
this class is used as a message class its purpose is to give the user different popup windows that alert the user about different events
Author:
Gruppe 6
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    alertError(String message)
    The method provides a general error alert box which can be specified with the display message
    static void
    confirmBox(String message)
    This method provides the user with helpful information during submission or creation
    static int
    method used when logOut button pressed

    Methods inherited from class java.lang.Object

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

    • AlertBox

      public AlertBox()
  • Method Details

    • logOut

      public static int logOut()
      method used when logOut button pressed
      Returns:
      an alertbox with some information
    • alertError

      public static void alertError(String message)
      The method provides a general error alert box which can be specified with the display message
      Parameters:
      message - the display message to the alert box
    • confirmBox

      public static void confirmBox(String message)
      This method provides the user with helpful information during submission or creation
      Parameters:
      message - popup message