Package Controllers.AppManagers
Class PharmaAppMgr
java.lang.Object
Common.AppManager
Controllers.AppManagers.PharmaAppMgr
The
PharmaAppMgr
class manages the pharmacist's application functionalities.
It provides methods for viewing appointment outcomes, managing inventory,
requesting replenishments, and handling user settings.-
Field Summary
Fields inherited from class Common.AppManager
account, accountDatabase, accountManager, appointmentOutcomeDatabase, doctorSchedule, inventoryDatabase, inventoryRequestDatabase, medicalRecordDatabase, role, updateDetailsPage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Creates instances of managers used in the pharmacist application.protected void
Creates instances of UI pages used in the pharmacist application.void
Displays the main menu for the pharmacist and handles user selections.protected void
Loads necessary databases for the application.protected void
Saves all databases to their respective storage formats (e.g., CSV).Methods inherited from class Common.AppManager
getRole, logIn, logOut, settings
-
Constructor Details
-
PharmaAppMgr
public PharmaAppMgr()
-
-
Method Details
-
displayMainPage
public void displayMainPage()Displays the main menu for the pharmacist and handles user selections.- Specified by:
displayMainPage
in classAppManager
-
loadDatabases
protected void loadDatabases()Loads necessary databases for the application.- Specified by:
loadDatabases
in classAppManager
-
saveDatabases
protected void saveDatabases()Saves all databases to their respective storage formats (e.g., CSV).- Specified by:
saveDatabases
in classAppManager
-
createManagers
protected void createManagers()Creates instances of managers used in the pharmacist application.- Specified by:
createManagers
in classAppManager
-
createPages
protected void createPages()Creates instances of UI pages used in the pharmacist application.- Specified by:
createPages
in classAppManager
-