Class HomePageController

java.lang.Object
no.ntnu.idatt1002.spendwise.home.HomePageController
All Implemented Interfaces:
javafx.fxml.Initializable

public class HomePageController extends Object implements javafx.fxml.Initializable
GUI controller for the home page.
  • Constructor Details

    • HomePageController

      public HomePageController()
  • Method Details

    • switchToExpenses

      public void switchToExpenses(javafx.event.ActionEvent event) throws IOException
      Button that takes user to expenses.
      Parameters:
      event - mouse click.
      Throws:
      IOException - if wrong input detected.
    • switchToIncome

      public void switchToIncome(javafx.event.ActionEvent event) throws IOException
      Button that takes user to income.
      Parameters:
      event - mouse click.
      Throws:
      IOException - if wrong input detected.
    • switchToRecurringTransactions

      public void switchToRecurringTransactions(javafx.event.ActionEvent event) throws IOException
      Button that takes user to recurring transactions.
      Parameters:
      event - mouse click.
      Throws:
      IOException - if wrong input detected.
    • switchToBudgeting

      public void switchToBudgeting(javafx.event.ActionEvent event) throws IOException
      Button that takes user to future budgeting.
      Parameters:
      event - mouse click.
      Throws:
      IOException - if wrong input detected.
    • switchToEditExpenses

      public void switchToEditExpenses(javafx.event.ActionEvent event) throws IOException
      Button that takes user to edit expenses.
      Parameters:
      event - mouse click.
      Throws:
      IOException - if wrong input detected.
    • switchToEditIncome

      public void switchToEditIncome(javafx.event.ActionEvent event) throws IOException
      Button that takes user to edit income.
      Parameters:
      event - mouse click.
      Throws:
      IOException - if wrong input detected.
    • openHelpOption

      public void openHelpOption(javafx.event.ActionEvent event) throws IOException
      A button that opens the help option menu.
      Parameters:
      event - - mouse click
      Throws:
      IOException - - if wrong input detected
    • initialize

      public void initialize(URL url, ResourceBundle resourceBundle)
      Initializes the home page. Mainly used to set up the pie chart for expenses vs. income.
      Specified by:
      initialize in interface javafx.fxml.Initializable
      Parameters:
      url - The URL to the FXML file.
      resourceBundle - The resources used in the FXML file.