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
CustomerMenuController
Controller for the customer menu.
Author: Jiaye Chen
Fields:
home_btn: Button for navigating to the home screen.
insurance_btn: Button for navigating to the insurance screen.
claims_btn: Button for navigating to the claims screen.
logout_btn: Button for logging out the customer.
zapad: ImageView for displaying the logo.
Methods:
initialize(URL url, ResourceBundle resourceBundle): Method invoked to initialize the controller. It adds listeners to the buttons and loads the logo image.
addListeners(): Method to add event listeners to the buttons. Each button is associated with a specific action when clicked.
image(): Method to load and set the logo image for the ImageView.
onHome(): Event handler method for navigating to the home screen.
onClaims(): Event handler method for navigating to the claims screen.
onInsurance(): Event handler method for navigating to the insurance screen.
onLogout(): Event handler method for logging out the customer.
Usage Notes:
This class controls the functionality of the customer menu GUI, allowing customers to navigate between different screens such as home, insurance, and claims. The customer can also log out using the logout button.