Class IncomeController

java.lang.Object
no.ntnu.idatt1002.spendwise.income.IncomeController
All Implemented Interfaces:
javafx.fxml.Initializable

public class IncomeController extends Object implements javafx.fxml.Initializable
GUI controller for income class.
  • Constructor Details

    • IncomeController

      public IncomeController()
  • Method Details

    • editCategoryButtonPushed

      public void editCategoryButtonPushed(javafx.event.ActionEvent event) throws IOException
      Trigger for when the the user clicks the edit category button.
      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.
      Specified by:
      initialize in interface javafx.fxml.Initializable
      Parameters:
      url - The url of 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
    • goHome

      public void goHome(javafx.event.ActionEvent event) throws IOException
      Button to go to home page.
      Parameters:
      event - mouse click
      Throws:
      IOException - if invalid input is detected.
    • switchToExpenses

      public void switchToExpenses(javafx.event.ActionEvent event) throws IOException
      Button that takes user to expenses.
      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 wrong input detected.
    • switchToFutureBudgeting

      public void switchToFutureBudgeting(javafx.event.ActionEvent event) throws IOException
      Button that takes user to future budgeting.
      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