Class EditIncomeController

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

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

  • Method Details

    • deleteIncomePressed

      public void deleteIncomePressed() throws ConformityException
      Trigger for when the delete income button is pressed.
      Throws:
      ConformityException - If the category is not valid.
    • addIncomePressed

      public void addIncomePressed() throws IOException, ConformityException
      Trigger for when the add income button is pressed.
      Throws:
      IOException - If the file cannot be found.
      ConformityException - If the category is not valid.
    • initialize

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

      public void fillTableView()
      Method for filling the table view with the transactions.
    • editCategoryButtonPushed

      public void editCategoryButtonPushed(javafx.event.ActionEvent event) throws IOException
      Button to go to add category page.
      Parameters:
      event - Mouse click.
      Throws:
      IOException - If the fxml file can not be found.
    • goHome

      public void goHome(javafx.event.ActionEvent event) throws IOException
      Button to go to home page.
      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.
    • 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.
    • switchToEditExpenses

      public void switchToEditExpenses(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.
    • openHelpEdit

      public void openHelpEdit(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.