Controllers

Controllers act as intermediaries between the models and views, handling user input and updating the UI accordingly

MainPageController

Manages the main page of the application, handling navigation and initial user interactions.

handleExpenseManagerButtonAction

handleExpenseManagerButtonAction(ActionEvent event)

Handles the interaction for the Expense Manager button

handleAboutUsButtonAction

handleAboutUsButtonAction(ActionEvent event)

Handles the interaction for the About Us button

handleDashboardButtonAction

handleDashboardButtonAction(ActionEvent event)

Handles the interaction for the Dashboard button

handleLoginButtonAction

handleLoginButtonAction(ActionEvent event)

Handles the interaction for the Login button

handleLearnMoreButtonAction

handleLearnMoreButtonAction(ActionEvent event)

Handles the interaction for the Learn More button

handleViewButtonAction

Handles the interaction for the View button

handleSignUpButtonAction

Handles the interaction for the Sign Up button

DashboardController

Manages the dashboard view, displaying user expenses and providing expense management functionality.

handleExpressManagerButtonAction

Handles the interaction for the Express Manager button. Returns the user to the main page of the application.

handleAboutUsButtonAction

Handles the interaction for the About Us button. Navigates to the About Us page from the dashboard.

handleDashboardButtonAction

Handles the interaction for the Dashboard button. Refreshes or reloads the dashboard page.

handleLoginButtonAction

Handles the interaction for the Login button. Allows the user to log out or switch accounts by navigating to the login page.

LoginController

Handles user authentication, including login and registration processes.

handleLoginButtonAction

Handles the interaction for the Login button

handleSignupButtonAction

Handles the interaction for the Signup button

handleBackButtonAction

Handles the interaction for the Back button

authenticateUser

Verifies user credentials against the Firestore database

registerUser

Creates a new user account in Firebase Authentication and saves user details to Firestore

saveUserToFirestore

Stores new user information in the Firestore database after successful registration

AboutController

Manages the about page, providing information about the application and navigation options

handleExpressManagerButtonAction

Handles the interaction for the Express Manager button

handleAboutUsButtonAction

Handles the interaction for the About Us button

handleDashboardButtonAction

Handles the interaction for the Dashboard button

handleLoginButtonAction

Handles the interaction for the Login button

NotificationController

Manages the notification view, allowing users to view, add, edit, and delete notifications.

initialize

Initializes the notification view, setting up the table columns and loading notifications.

loadNotifications

Loads notifications for the currently logged-in user and populates the table view.

addNotification

Handles the creation of a new notification based on user input.

editNotification

Handles the editing of an existing notification selected in the table.

deleteNotification

Handles the deletion of a selected notification.

handleCloseButtonAction

Closes the notification view window.

ExpenseFormController

Manages the form for adding or editing an expense.

setExpense

Sets the expense to be edited, populating the form fields with its data.

handleSaveButtonAction

Handles the saving of the expense, either adding a new one or updating an existing one.

ExpenseViewController

Manages the view for displaying and managing expenses.

initialize

Initializes the expense view, setting up the table columns and loading expenses.

loadExpenses

Loads expenses for the currently logged-in user and populates the table view.

handleEditButtonAction

Handles the editing of a selected expense by opening the expense form.

handleDeleteButtonAction

Handles the deletion of a selected expense.

handleCloseButtonAction

Closes the expense view window.

ReportFormController

Manages the form for adding or editing a report.

setReport

Sets the report to be edited, populating the form fields with its data.

handleSaveButtonAction

Handles the saving of the report, either adding a new one or updating an existing one.

ReportViewController

Manages the view for displaying and managing reports.

initialize

Initializes the report view, setting up the table columns and loading reports.

loadReports

Loads reports for the currently logged-in user and populates the table view.

handleEditButtonAction

Handles the editing of a selected report by opening the report form.

handleDeleteButtonAction

Handles the deletion of a selected report.

handleCloseButtonAction

Closes the report view window.

UserController

Manages user-related operations such as adding, editing, deleting, and viewing users.

addUser

Handles the creation of a new user based on input fields.

editUser

Handles the editing of an existing user based on input fields.

deleteUser

Handles the deletion of a user based on the provided user ID.

viewUsers

Retrieves and displays a list of all users.

Last updated