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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(URL url, ResourceBundle resourceBundle) Initializes the home page.voidopenHelpOption(javafx.event.ActionEvent event) A button that opens the help option menu.voidswitchToBudgeting(javafx.event.ActionEvent event) Button that takes user to future budgeting.voidswitchToEditExpenses(javafx.event.ActionEvent event) Button that takes user to edit expenses.voidswitchToEditIncome(javafx.event.ActionEvent event) Button that takes user to edit income.voidswitchToExpenses(javafx.event.ActionEvent event) Button that takes user to expenses.voidswitchToIncome(javafx.event.ActionEvent event) Button that takes user to income.voidswitchToRecurringTransactions(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:
initializein interfacejavafx.fxml.Initializable- Parameters:
url- The URL to the FXML file.resourceBundle- The resources used in the FXML file.
-