Package UI.AccountManagementPages
Class UpdateDetailsPage
java.lang.Object
Common.UserInterface
UI.AccountManagementPages.UpdateDetailsPage
The
UpdateDetailsPage
class provides functionality for updating
account details such as password, phone number, and email. It extends
UserInterface
and interacts with the AccountManager
to manage
account details based on the user's role.-
Field Summary
Fields inherited from class Common.UserInterface
scanner
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateDetailsPage
(AccountManager accountManager) Constructs anUpdateDetailsPage
with the specifiedAccountManager
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
displayOptions
(Account account) Displays options for updating account details based on the user's role.Methods inherited from class Common.UserInterface
displayError, displaySuccess, getIntInput, getNumericString, getValidatedInt, getValidatedString, pauseAndView
-
Constructor Details
-
UpdateDetailsPage
Constructs anUpdateDetailsPage
with the specifiedAccountManager
instance.- Parameters:
accountManager
- the manager used to access and manage account details
-
-
Method Details
-
displayOptions
Displays options for updating account details based on the user's role.- Parameters:
account
- theAccount
of the user whose details are being updated
-