Uses of Class
Model.Customer
Package
Description
The Controller package contains classes that handle the control and logic of the application.
The View package contains classes related to the user interface (UI) of the application.
-
Uses of Customer in Controller
Modifier and TypeFieldDescriptionCustomerController.customers
A list that holds customer objects.Modifier and TypeMethodDescriptionCustomerController.getCustomerByUsername
(String username) Retrieve a customer by their username.CustomerController.loadCustomer
(String username, String password) Load a customer by their username and password.Modifier and TypeMethodDescriptionCustomerController.getCustomers()
Retrieves the list of customer objects. -
Uses of Customer in View
Modifier and TypeFieldDescriptionprivate Customer
CustomerDashboardView.customer
The customer object.private Customer
App.loggedInCustomer
The currently logged-in customer.Modifier and TypeMethodDescriptionprotected Customer
App.loadCustomer
(String username, String password) Loads a customer based on the provided username and password.ModifierConstructorDescriptionCustomerDashboardView
(App app, Customer customer) CustomerDashboardView represents the dashboard view for a customer in the application.