Class HomePage
java.lang.Object
Common.UserInterface
HomePage
The
HomePage
class serves as the entry point for the Hospital X System application.
It handles the display of welcome messages, user login, and application termination.-
Field Summary
Fields inherited from class Common.UserInterface
scanner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Displays a farewell message when the application is closing.static char
Displays a welcome message with a typing effect and a pulsing animation.static void
The main method that runs the application.Methods inherited from class Common.UserInterface
displayError, displaySuccess, getIntInput, getNumericString, getValidatedInt, getValidatedString, pauseAndView
-
Constructor Details
-
HomePage
public HomePage()
-
-
Method Details
-
main
The main method that runs the application.- Parameters:
args
- command-line arguments (not used)
-
displayWelcomeText
public static char displayWelcomeText()Displays a welcome message with a typing effect and a pulsing animation.- Returns:
- a character input by the user; 'q' to quit, or any other character to proceed
-
displayFarewellText
public static void displayFarewellText()Displays a farewell message when the application is closing.
-