Class FirstMenuController

java.lang.Object
no.ntnu.idatt1002.demo.controller.FirstMenuController

public class FirstMenuController extends Object
Controller for the FirstMenu view. Handles user input on the buttons in the scene.
  • Constructor Details

    • FirstMenuController

      public FirstMenuController()
  • Method Details

    • initialize

      public void initialize() throws IOException
      Initializes as soon as the scene is loaded.
      Throws:
      IOException
    • createBudget

      public void createBudget(javafx.event.ActionEvent event)
      Brings up popup for creating a new budget.
      Parameters:
      event - A button press on the OK button.
    • switchMainMenu

      public void switchMainMenu(javafx.event.ActionEvent event)
      Method that brings up a popup, allowing users to choose which budget to select. The scene is then switched to the main menu of that budget.
      Parameters:
      event - A button press.
    • closeButton

      public void closeButton(javafx.event.ActionEvent actionEvent)
      Method that closes the first menu.
      Parameters:
      actionEvent - Button press.