Skip to content

Advisor Home Controller

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

AdvisorHomeController

Controller for the advisor home view.

Author: Jiaye Chen

Fields:

  • acc_dob: Label for displaying the advisor's date of birth.
  • acc_email: Label for displaying the advisor's email.
  • acc_gender: Label for displaying the advisor's gender.
  • acc_name: Label for displaying the advisor's name.
  • acc_phonenumber: Label for displaying the advisor's phone number.
  • acc_signupdate: Label for displaying the advisor's sign-up date.
  • acc_type: Label for displaying the advisor's account type.
  • btn_edit: Button for initiating edit action.

Methods:

initialize(): Method invoked to initialize the controller. It sets up event listeners for the edit button and initializes the displayed information with the advisor's data.

onEdit(): Event handler method for the edit button. Redirects to the edit view for the advisor.

init(): Method to initialize the displayed information with the advisor's data.

initializeTableColumns(): Method to initialize table columns for displaying clients and claims. It sets up cell value factories and populates the tables with data fetched from the model.

Usage Notes:

This class controls the functionality of the advisor home view, displaying the advisor's personal information, list of clients, and list of claims. Advisors can click the edit button to edit their information.

Clone this wiki locally