Class FirstMenuController
java.lang.Object
no.ntnu.idatt1002.demo.controller.FirstMenuController
Controller for the FirstMenu view. Handles user input on the buttons in the scene.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
closeButton
(javafx.event.ActionEvent actionEvent) Method that closes the first menu.void
createBudget
(javafx.event.ActionEvent event) Brings up popup for creating a new budget.void
Initializes as soon as the scene is loaded.void
switchMainMenu
(javafx.event.ActionEvent event) Method that brings up a popup, allowing users to choose which budget to select.
-
Constructor Details
-
FirstMenuController
public FirstMenuController()
-
-
Method Details
-
initialize
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.
-