Package no.ntnu.idatt1002.spendwise.home
Class HomePageController
java.lang.Object
no.ntnu.idatt1002.spendwise.home.HomePageController
- All Implemented Interfaces:
javafx.fxml.Initializable
GUI controller for the home page.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize
(URL url, ResourceBundle resourceBundle) Initializes the home page.void
openHelpOption
(javafx.event.ActionEvent event) A button that opens the help option menu.void
switchToBudgeting
(javafx.event.ActionEvent event) Button that takes user to future budgeting.void
switchToEditExpenses
(javafx.event.ActionEvent event) Button that takes user to edit expenses.void
switchToEditIncome
(javafx.event.ActionEvent event) Button that takes user to edit income.void
switchToExpenses
(javafx.event.ActionEvent event) Button that takes user to expenses.void
switchToIncome
(javafx.event.ActionEvent event) Button that takes user to income.void
switchToRecurringTransactions
(javafx.event.ActionEvent event) Button that takes user to recurring transactions.
-
Constructor Details
-
HomePageController
public HomePageController()
-
-
Method Details
-
switchToExpenses
Button that takes user to expenses.- Parameters:
event
- mouse click.- Throws:
IOException
- if wrong input detected.
-
switchToIncome
Button that takes user to income.- Parameters:
event
- mouse click.- Throws:
IOException
- if wrong input detected.
-
switchToRecurringTransactions
Button that takes user to recurring transactions.- Parameters:
event
- mouse click.- Throws:
IOException
- if wrong input detected.
-
switchToBudgeting
Button that takes user to future budgeting.- Parameters:
event
- mouse click.- Throws:
IOException
- if wrong input detected.
-
switchToEditExpenses
Button that takes user to edit expenses.- Parameters:
event
- mouse click.- Throws:
IOException
- if wrong input detected.
-
switchToEditIncome
Button that takes user to edit income.- Parameters:
event
- mouse click.- Throws:
IOException
- if wrong input detected.
-
openHelpOption
A button that opens the help option menu.- Parameters:
event
- - mouse click- Throws:
IOException
- - if wrong input detected
-
initialize
Initializes the home page. Mainly used to set up the pie chart for expenses vs. income.- Specified by:
initialize
in interfacejavafx.fxml.Initializable
- Parameters:
url
- The URL to the FXML file.resourceBundle
- The resources used in the FXML file.
-