Class ShoppingListPage
java.lang.Object
edu.ntnu.stud.idatt1005.team3.view.pages.ShoppingListPage
The shopping list page of the application.
-
Constructor Summary
ConstructorsConstructorDescriptionShoppingListPage
(SceneController sceneController, TheCookbookDB db, ShoppingListController slController) Creates the shopping list page of the application. -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.Scene
Creates a scene for the shopping list page.javafx.scene.layout.StackPane
getRoot()
Returns the root node of the shopping list page.void
Updates the view of the shopping list page.
-
Constructor Details
-
ShoppingListPage
public ShoppingListPage(SceneController sceneController, TheCookbookDB db, ShoppingListController slController) throws FileNotFoundException Creates the shopping list page of the application.- Parameters:
sceneController
- The scene controller controlling the switching between scenes.db
- The database controller for the application.- Throws:
FileNotFoundException
- If the stylesheet file is not found.
-
-
Method Details
-
getRoot
public javafx.scene.layout.StackPane getRoot()Returns the root node of the shopping list page.- Returns:
- Returns the root node of the shopping list page.
-
createScene
public javafx.scene.Scene createScene()Creates a scene for the shopping list page.- Returns:
- The scene for the shopping list page.
-
updateView
public void updateView()Updates the view of the shopping list page.
-