Skip to content

Customer Controller

217317751JiayeChen edited this page Apr 1, 2024 · 1 revision

CustomerController

Controller for the customer interface.

Author: Jiaye Chen

Fields:

  • customer_parent: BorderPane representing the main layout of the customer interface.

Methods:

initialize(URL url, ResourceBundle resourceBundle): Method invoked to initialize the controller. It adds a listener to the customer selected menu item property. Depending on the selected menu item, it updates the center of the customer interface accordingly.

logoutUser(): Method to handle user logout. It closes the current stage (window) and shows the login window.

Usage Notes:

This class controls the functionality of the customer interface, managing the navigation between different screens such as home, insurance, claims, and edit profile. It listens for changes in the selected menu item and updates the interface accordingly. Additionally, it provides a method for logging out the user.

Clone this wiki locally