Package UI
Class UserMenu
java.lang.Object
Common.UserInterface
UI.UserMenu
The
UserMenu
class provides static methods for displaying menus
to different types of users (patients, doctors, pharmacists, and administrators)
in the Hospital X System. It extends UserInterface
.-
Field Summary
Fields inherited from class Common.UserInterface
scanner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
Displays the admin menu and prompts the user to select an option.static int
Displays the doctor menu and prompts the user to select an option.static int
Displays the patient menu and prompts the user to select an option.static int
Displays the pharmacist menu and prompts the user to select an option.Methods inherited from class Common.UserInterface
displayError, displaySuccess, getIntInput, getNumericString, getValidatedInt, getValidatedString, pauseAndView
-
Constructor Details
-
UserMenu
public UserMenu()
-
-
Method Details
-
displayPatientMenu
public static int displayPatientMenu()Displays the patient menu and prompts the user to select an option.- Returns:
- the selected option as an integer
-
displayDoctorMenu
public static int displayDoctorMenu()Displays the doctor menu and prompts the user to select an option.- Returns:
- the selected option as an integer
-
displayPharmacistMenu
public static int displayPharmacistMenu()Displays the pharmacist menu and prompts the user to select an option.- Returns:
- the selected option as an integer
-
displayAdminMenu
public static int displayAdminMenu()Displays the admin menu and prompts the user to select an option.- Returns:
- the selected option as an integer
-