Skip to content

Advisor Menue Controller

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

AdvisorMenuController

Controller for the advisor menu view.

Author: Jiaye Chen

Fields:

  • home_btn: Button for navigating to the home view.
  • policy_btn: Button for navigating to the policy view.
  • claims_btn: Button for navigating to the claims view.
  • logout_btn: Button for logging out.
  • zapad: ImageView for displaying the logo.

Methods:

initialize(): Method invoked to initialize the controller. It sets up event listeners for the navigation buttons and initializes the logo.

addListeners(): Method to add event listeners to the navigation buttons. It redirects to the corresponding views when a button is clicked.

onHome(): Event handler method for the home button. Redirects to the home view for the advisor.

onClaims(): Event handler method for the claims button. Redirects to the claims view for the advisor.

onPolicy(): Event handler method for the policy button. Redirects to the policy view for the advisor.

image(): Method to initialize the logo.

onLogout(): Event handler method for the logout button. Logs out the advisor and redirects to the login window.

Usage Notes:

This class controls the functionality of the advisor menu view, allowing advisors to navigate to different views such as home, policy, and claims. Advisors can also logout from the system using the logout button.

Clone this wiki locally