Class AlertBox
java.lang.Object
edu.ntnu.idatt1002.g106.handballapp.finalprod.backend.AlertBox
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
alertError
(String message) The method provides a general error alert box which can be specified with the display messagestatic void
confirmBox
(String message) This method provides the user with helpful information during submission or creationstatic int
logOut()
method used when logOut button pressed
-
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
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
This method provides the user with helpful information during submission or creation- Parameters:
message
- popup message
-