You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
217317751JiayeChen edited this page Apr 1, 2024
·
1 revision
AdminHomeController
Controller for the admin home view.
Author: Jiaye Chen
Fields:
acc_dob: Label for displaying the administrator's date of birth.
acc_email: Label for displaying the administrator's email.
acc_gender: Label for displaying the administrator's gender.
acc_name: Label for displaying the administrator's name.
acc_phonenumber: Label for displaying the administrator's phone number.
acc_signupdate: Label for displaying the administrator's sign-up date.
acc_type: Label for displaying the administrator's account type.
btn_edit1: Button for triggering edit action.
Initialization Method:
initialize(URL url, ResourceBundle resourceBundle): Method invoked to initialize the controller after its root element has been completely processed. It calls the init() method to populate the labels with administrator information.
Additional Methods:
init(): Initializes the labels with administrator information retrieved from the model. Also sets an action for the edit button to display a warning that administrators are forbidden from changing their own information.
onEdit(): Action method triggered when the edit button is clicked. It displays a warning alert informing administrators that they are forbidden from changing their own information.
initializeTableColumns(): Method for initializing table columns (currently empty).
Usage Notes:
This class is responsible for populating the admin home view with administrator information and handling edit actions.