Class ExpensesController

java.lang.Object
no.ntnu.idatt1002.spendwise.expenses.ExpensesController
All Implemented Interfaces:
javafx.fxml.Initializable

public class ExpensesController extends Object implements javafx.fxml.Initializable
GUI controller for the expenses.
  • Constructor Details

    • ExpensesController

      public ExpensesController()
  • Method Details

    • goHome

      public void goHome(javafx.event.ActionEvent event) throws IOException
      Trigger for when the the user clicks the home button.
      Parameters:
      event - Mouse click.
      Throws:
      IOException - If the FXML file can not be found.
    • switchToIncome

      public void switchToIncome(javafx.event.ActionEvent event) throws IOException
      Button that takes user to income.
      Parameters:
      event - Mouse click.
      Throws:
      IOException - If the FXML file can not be found.
    • switchToRecurringTransactions

      public void switchToRecurringTransactions(javafx.event.ActionEvent event) throws IOException
      Button that takes user to recurring transactions.
      Parameters:
      event - Mouse click.
      Throws:
      IOException - If the FXML file can not be found.
    • switchToEditExpense

      public void switchToEditExpense(javafx.event.ActionEvent event) throws IOException
      Button that takes user to edit expenses.
      Parameters:
      event - Mouse click.
      Throws:
      IOException - If the FXML file can not be found.
    • switchToFutureBudgeting

      public void switchToFutureBudgeting(javafx.event.ActionEvent event) throws IOException
      Button that takes user to future budgeting.
      Parameters:
      event - Mouse click.
      Throws:
      IOException - If the FXML file can not be found.
    • 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 the FXML file can not be found.
    • initialize

      public void initialize(URL url, ResourceBundle resourceBundle)
      Initializes the controller class.
      Specified by:
      initialize in interface javafx.fxml.Initializable
      Parameters:
      url - The url to the FXML file.
      resourceBundle - The resource bundle.
    • goButtonPushed

      public void goButtonPushed(javafx.event.ActionEvent actionEvent)
      Trigger for the go button.
      Parameters:
      actionEvent - The ActionEvent that triggered the method