Class SceneController
java.lang.Object
edu.ntnu.stud.idatt1005.team3.controller.SceneController
The controller for the scenes of the application.
-
Constructor Summary
ConstructorsConstructorDescriptionSceneController
(javafx.stage.Stage primaryStage, TheCookbookDB db, ShoppingListController slController) Creates a new scene controller. -
Method Summary
Modifier and TypeMethodDescriptionvoid
showErrorPopUp
(String errorMessage) Shows an error pop-up with the given error message.void
Shows the home page of the application.void
Shows the inventory page of the application.void
Shows the new recipe page of the application.void
Shows the recipe library page of the application.void
Shows the shopping list page of the application.void
showSingleRecipePage
(Recipe recipe)
-
Constructor Details
-
SceneController
public SceneController(javafx.stage.Stage primaryStage, TheCookbookDB db, ShoppingListController slController) throws FileNotFoundException Creates a new scene controller.- Parameters:
primaryStage
- The primary stage of the application.- Throws:
FileNotFoundException
-
-
Method Details
-
showHomePage
public void showHomePage()Shows the home page of the application. -
showInventoryPage
public void showInventoryPage()Shows the inventory page of the application. -
showRecipeLibraryPage
public void showRecipeLibraryPage()Shows the recipe library page of the application. -
showShoppingListPage
public void showShoppingListPage()Shows the shopping list page of the application. -
showNewRecipePage
Shows the new recipe page of the application.- Throws:
FileNotFoundException
-
showSingleRecipePage
- Throws:
FileNotFoundException
-
showErrorPopUp
Shows an error pop-up with the given error message.- Parameters:
errorMessage
- The error message to show in the pop-up.
-