Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- ACCENT - Static variable in class stud.ntnu.idatt1005.pantrypal.utils.ColorPalette
- ADD - Enum constant in enum class stud.ntnu.idatt1005.pantrypal.enums.ButtonEnum
- ADD_RECIPE - Enum constant in enum class stud.ntnu.idatt1005.pantrypal.enums.Route
- ADD_TO_PANTRY - Enum constant in enum class stud.ntnu.idatt1005.pantrypal.enums.ButtonEnum
- ADD_TO_SHOPPING_LIST - Enum constant in enum class stud.ntnu.idatt1005.pantrypal.enums.ButtonEnum
- addChildren(Pane, Node) - Static method in class stud.ntnu.idatt1005.pantrypal.utils.NodeUtils
-
Adds a child node to a pane.
- addChildren(Pane, Node...) - Static method in class stud.ntnu.idatt1005.pantrypal.utils.NodeUtils
-
Adds multiple child nodes to a pane.
- addClasses(Node, String) - Static method in class stud.ntnu.idatt1005.pantrypal.utils.NodeUtils
-
Adds a style class to a node.
- addClasses(Node, Collection<String>) - Static method in class stud.ntnu.idatt1005.pantrypal.utils.NodeUtils
-
Adds multiple style classes to a node.
- addGroceriesToPantry() - Method in class stud.ntnu.idatt1005.pantrypal.controllers.ShoppingListController
-
Adds groceries to the pantry.
- addGroceriesToShoppingList(Recipe) - Method in class stud.ntnu.idatt1005.pantrypal.controllers.CookbookController
-
Adds the groceries from a recipe to the shopping list.
- addGrocery(String, String, int) - Method in class stud.ntnu.idatt1005.pantrypal.controllers.PantryController
-
Adds a grocery item to the shelf.
- addGrocery(Grocery) - Method in class stud.ntnu.idatt1005.pantrypal.controllers.ShoppingListController
-
Adds a grocery to the register.
- addGrocery(Grocery) - Method in class stud.ntnu.idatt1005.pantrypal.models.Shelf
-
Adds a grocery item to the shelf.
- addGrocery(Grocery) - Method in class stud.ntnu.idatt1005.pantrypal.registers.GroceryRegister
-
Add a grocery to the register.
- addGrocery(Shelf, String, int) - Method in class stud.ntnu.idatt1005.pantrypal.controllers.PantryController
-
Adds a grocery item to the shelf.
- AddGroceryListElement - Class in stud.ntnu.idatt1005.pantrypal.views.components
-
A class for creating input fields and an add button.
- AddGroceryListElement(String) - Constructor for class stud.ntnu.idatt1005.pantrypal.views.components.AddGroceryListElement
-
Constructor for the AddGroceryListElement class.
- addModel(T) - Method in class stud.ntnu.idatt1005.pantrypal.registers.Register
-
Add an item to the register.
- addObserver(Observer) - Method in class stud.ntnu.idatt1005.pantrypal.views.components.AddGroceryListElement
- addObserver(Observer) - Method in class stud.ntnu.idatt1005.pantrypal.views.components.CookbookRecipeComponent
- addObserver(Observer) - Method in class stud.ntnu.idatt1005.pantrypal.views.components.GroceryListElement
- addRecipe(Recipe) - Method in class stud.ntnu.idatt1005.pantrypal.controllers.CookbookController
-
Adds a recipe to the recipeRegister and the database.
- addRecipe(Recipe) - Method in class stud.ntnu.idatt1005.pantrypal.registers.RecipeRegister
-
Add a recipe to the recipe register.
- AddRecipeController - Class in stud.ntnu.idatt1005.pantrypal.controllers
-
Controller class for the AddRecipeView.
- AddRecipeController(ViewManager, CookbookController) - Constructor for class stud.ntnu.idatt1005.pantrypal.controllers.AddRecipeController
-
Constructor that takes in a ViewManager and a CookBookController.
- addShelf() - Method in class stud.ntnu.idatt1005.pantrypal.controllers.PantryController
-
Adds a shelf to the register.
- addShelf(String) - Method in class stud.ntnu.idatt1005.pantrypal.controllers.PantryController
-
Adds a shelf to the register.
- addShelf(Shelf) - Method in class stud.ntnu.idatt1005.pantrypal.registers.ShelfRegister
-
Adds a shelf to the register.
- addStep(String) - Method in class stud.ntnu.idatt1005.pantrypal.registers.StepRegister
-
Adds a step to the list of steps.
- addStyleClass(String) - Method in class stud.ntnu.idatt1005.pantrypal.views.components.StyledButton
- addStyleClasses(String...) - Method in class stud.ntnu.idatt1005.pantrypal.views.components.StyledButton
- addView(Route, Scene) - Method in class stud.ntnu.idatt1005.pantrypal.utils.ViewManager
-
Adds a view to the view manager.
B
- BACKGROUND - Static variable in class stud.ntnu.idatt1005.pantrypal.utils.ColorPalette
- BLACK - Enum constant in enum class stud.ntnu.idatt1005.pantrypal.views.components.StyledButton.Variant
- BLACK - Static variable in class stud.ntnu.idatt1005.pantrypal.utils.ColorPalette
- build() - Method in class stud.ntnu.idatt1005.pantrypal.views.components.GroceryListElement.GroceryListElementBuilder
-
Builds the GroceryListElement with the given properties.
- BUTTON - Static variable in class stud.ntnu.idatt1005.pantrypal.utils.FontPalette
- BUTTON_NOT_SUPPORTED - Static variable in class stud.ntnu.idatt1005.pantrypal.controllers.AddRecipeController
- ButtonEnum - Enum Class in stud.ntnu.idatt1005.pantrypal.enums
-
An enum representing the different buttons used in the application
- ButtonEnum() - Constructor for enum class stud.ntnu.idatt1005.pantrypal.enums.ButtonEnum
C
- checkBox() - Method in class stud.ntnu.idatt1005.pantrypal.views.components.GroceryListElement.GroceryListElementBuilder
-
Creates a new CheckBox and ads it to the GroceryListElementBuilder.
- checkPane - Variable in class stud.ntnu.idatt1005.pantrypal.views.components.GroceryListElement.GroceryListElementBuilder
- ColorPalette - Class in stud.ntnu.idatt1005.pantrypal.utils
- ColorPalette() - Constructor for class stud.ntnu.idatt1005.pantrypal.utils.ColorPalette
- containsGrocery(String) - Method in class stud.ntnu.idatt1005.pantrypal.registers.GroceryRegister
-
Check if the register contains a grocery.
- containsModel(String) - Method in class stud.ntnu.idatt1005.pantrypal.registers.Register
-
Check if a model exists in the register.
- Controller - Class in stud.ntnu.idatt1005.pantrypal.controllers
-
The Root controller class for the application.
- Controller(ViewManager) - Constructor for class stud.ntnu.idatt1005.pantrypal.controllers.Controller
-
Creates an instance of the controller, and sets the viewManager.
- COOKBOOK - Enum constant in enum class stud.ntnu.idatt1005.pantrypal.enums.Route
- COOKBOOK - Enum constant in enum class stud.ntnu.idatt1005.pantrypal.views.components.StarIcon.Variants
- cookBookController - Variable in class stud.ntnu.idatt1005.pantrypal.controllers.AddRecipeController
- cookBookController - Variable in class stud.ntnu.idatt1005.pantrypal.PantryPal
- CookbookController - Class in stud.ntnu.idatt1005.pantrypal.controllers
-
The controller for the CookBookView and RecipeView.
- CookbookController(ViewManager, ShoppingListController, PantryController) - Constructor for class stud.ntnu.idatt1005.pantrypal.controllers.CookbookController
-
Constructor for the CookbookController.
- CookbookRecipeComponent - Class in stud.ntnu.idatt1005.pantrypal.views.components
-
This class represents a component for displaying a recipe within the cookbook.
- CookbookRecipeComponent(Recipe) - Constructor for class stud.ntnu.idatt1005.pantrypal.views.components.CookbookRecipeComponent
-
Constructs a CookbookRecipeComponent for a Recipe.
- createButton() - Method in class stud.ntnu.idatt1005.pantrypal.views.components.GroceryListElement
-
Creates a button element with the given text, variant, size and enum.
- createButton(String, Runnable) - Method in class stud.ntnu.idatt1005.pantrypal.views.components.NavBar
-
Creates a styled button with the specified text and action.
- createShelfTextField(String) - Method in class stud.ntnu.idatt1005.pantrypal.views.components.AddGroceryListElement
-
Creates a shelf text field with the given shelfName.
- createSpinner() - Method in class stud.ntnu.idatt1005.pantrypal.views.components.GroceryListElement.GroceryListElementBuilder
-
Creates a spinner element with the given properties.
- currentSearch - Variable in class stud.ntnu.idatt1005.pantrypal.controllers.CookbookController
D
- DANGER - Enum constant in enum class stud.ntnu.idatt1005.pantrypal.views.components.StyledButton.Variant
- DANGER - Static variable in class stud.ntnu.idatt1005.pantrypal.utils.ColorPalette
- database - Static variable in class stud.ntnu.idatt1005.pantrypal.utils.SQL
- defaultStyle() - Method in class stud.ntnu.idatt1005.pantrypal.views.components.NavLink
-
Sets the default style for the hyperlink.
- DELETE - Enum constant in enum class stud.ntnu.idatt1005.pantrypal.views.components.StyledButton.Variant
- deleteGrocery(Shelf, Grocery) - Method in class stud.ntnu.idatt1005.pantrypal.controllers.PantryController
-
Removes the grocery item from the shelf.
- deleteShelf(Shelf) - Method in class stud.ntnu.idatt1005.pantrypal.controllers.PantryController
-
Deletes the specified shelf.
- description - Variable in class stud.ntnu.idatt1005.pantrypal.models.Recipe
-
The recipe description of the recipe.
E
- EDIT_FAVORITE - Enum constant in enum class stud.ntnu.idatt1005.pantrypal.enums.ButtonEnum
- EDIT_RECIPE - Enum constant in enum class stud.ntnu.idatt1005.pantrypal.enums.ButtonEnum
- editShelfName(Shelf, String) - Method in class stud.ntnu.idatt1005.pantrypal.controllers.PantryController
-
Edits the name of the specified shelf.
- executeQuery(String, Object...) - Static method in class stud.ntnu.idatt1005.pantrypal.utils.SQL
- executeUpdate(String, Object...) - Static method in class stud.ntnu.idatt1005.pantrypal.utils.SQL
- executeUpdateWithGeneratedKeys(String, Object...) - Static method in class stud.ntnu.idatt1005.pantrypal.utils.SQL
F
- FavoriteButton - Class in stud.ntnu.idatt1005.pantrypal.views.components
-
This class represents a favorite button component.
- FavoriteButton(boolean) - Constructor for class stud.ntnu.idatt1005.pantrypal.views.components.FavoriteButton
-
Constructs a FavoriteButton with a star shape and a rectangle background.
- FontPalette - Class in stud.ntnu.idatt1005.pantrypal.utils
- FontPalette() - Constructor for class stud.ntnu.idatt1005.pantrypal.utils.FontPalette
G
- getAllGroceries() - Method in class stud.ntnu.idatt1005.pantrypal.registers.ShelfRegister
-
Returns all groceries from all shelves in the register.
- getChecked() - Method in class stud.ntnu.idatt1005.pantrypal.models.Grocery
-
Get the checked status of the grocery.
- getComponentHeight() - Static method in class stud.ntnu.idatt1005.pantrypal.views.components.CookbookRecipeComponent
-
Calculates and returns the height of the recipe component.
- getComponentWidth() - Static method in class stud.ntnu.idatt1005.pantrypal.views.components.CookbookRecipeComponent
-
Calculates and returns the width of the recipe component.
- getCurrentSearch() - Method in class stud.ntnu.idatt1005.pantrypal.controllers.CookbookController
-
Returns the current search list.
- getCurrentView() - Method in class stud.ntnu.idatt1005.pantrypal.utils.ViewManager
-
Gets the current view of the application.
- getDescription() - Method in class stud.ntnu.idatt1005.pantrypal.models.Recipe
-
Get the description of the recipe.
- getErrorMessage() - Method in class stud.ntnu.idatt1005.pantrypal.registers.GroceryRegister
- getErrorMessage() - Method in class stud.ntnu.idatt1005.pantrypal.registers.RecipeRegister
-
Returns an error message when a recipe does not exist in the register.
- getErrorMessage() - Method in class stud.ntnu.idatt1005.pantrypal.registers.Register
-
Abstract method to get the error message.
- getErrorMessage() - Method in class stud.ntnu.idatt1005.pantrypal.registers.ShelfRegister
-
Returns an error message when a shelf does not exist in the register.
- getGroceries() - Method in class stud.ntnu.idatt1005.pantrypal.models.Shelf
-
Gets the map of groceries in the register of the shelf.
- getGroceries(Shelf) - Method in class stud.ntnu.idatt1005.pantrypal.controllers.PantryController
-
Returns all groceries from the specified shelf.
- getGrocery(String) - Method in class stud.ntnu.idatt1005.pantrypal.registers.GroceryRegister
-
Get a grocery from the register.
- getGroceryRegister() - Method in class stud.ntnu.idatt1005.pantrypal.models.Shelf
-
Gets the register of groceries on the shelf.
- getImagePath() - Method in class stud.ntnu.idatt1005.pantrypal.models.Recipe
-
Get the image path of the recipe.
- getIsFavorite() - Method in class stud.ntnu.idatt1005.pantrypal.models.Recipe
-
Get the isFavorite boolean of the recipe.
- getKey() - Method in class stud.ntnu.idatt1005.pantrypal.models.Model
-
Gets the string key.
- getLink() - Method in class stud.ntnu.idatt1005.pantrypal.views.components.NavLink
-
Get the hyperlink.
- getModel(String) - Method in class stud.ntnu.idatt1005.pantrypal.registers.Register
-
Get a model from the register.
- getName() - Method in class stud.ntnu.idatt1005.pantrypal.models.Grocery
-
Get the name of the grocery.
- getName() - Method in class stud.ntnu.idatt1005.pantrypal.models.Shelf
-
Gets the name of the shelf.
- getPane() - Method in class stud.ntnu.idatt1005.pantrypal.views.components.GroceryListElement
-
Retrieves the visual representation of the shopping list element.
- getQuantity() - Method in class stud.ntnu.idatt1005.pantrypal.models.Grocery
-
Get the quantity of the grocery.
- getRecipe(String) - Method in class stud.ntnu.idatt1005.pantrypal.registers.RecipeRegister
-
Retrieves a recipe from the register by its name.
- getRecipeBoxSize() - Static method in class stud.ntnu.idatt1005.pantrypal.utils.Sizing
-
Constructor for the size of the recipe box.
- getRecipeGroceries() - Method in class stud.ntnu.idatt1005.pantrypal.models.Recipe
-
Get the groceries needed for the recipe.
- getRecipes() - Method in class stud.ntnu.idatt1005.pantrypal.controllers.CookbookController
-
Returns the register with recipes in the recipeRegister.
- getRecipeSteps() - Method in class stud.ntnu.idatt1005.pantrypal.models.Recipe
-
Get the steps needed to make the recipe.
- getRegister() - Method in class stud.ntnu.idatt1005.pantrypal.controllers.PantryController
-
Returns the register in the controller.
- getRegister() - Method in class stud.ntnu.idatt1005.pantrypal.controllers.ShoppingListController
-
Returns the grocery register.
- getRegister() - Method in class stud.ntnu.idatt1005.pantrypal.registers.Register
-
Get the register map.
- getScreenHeight() - Static method in class stud.ntnu.idatt1005.pantrypal.utils.Sizing
-
Constructor for the height of the screen.
- getScreenWidth() - Static method in class stud.ntnu.idatt1005.pantrypal.utils.Sizing
-
Constructor for the width of the screen.
- getShelf() - Method in class stud.ntnu.idatt1005.pantrypal.models.Grocery
-
Get the category of the grocery.
- getShelfByName(String) - Method in class stud.ntnu.idatt1005.pantrypal.registers.ShelfRegister
-
Returns the shelf from the register that corresponds with name given.
- getShelves() - Method in class stud.ntnu.idatt1005.pantrypal.controllers.PantryController
-
Returns all shelves in the register.
- getSteps() - Method in class stud.ntnu.idatt1005.pantrypal.registers.StepRegister
-
Returns the list of steps.
- getStyledButton(StyledTextField, StyledTextField, StyledTextField) - Method in class stud.ntnu.idatt1005.pantrypal.views.components.AddGroceryListElement
-
Creates a styled addButton with the given text fields and returns it.
- getUnit() - Method in class stud.ntnu.idatt1005.pantrypal.models.Grocery
-
Get the unit of the grocery.
- GRAY - Static variable in class stud.ntnu.idatt1005.pantrypal.utils.ColorPalette
- grocery - Variable in class stud.ntnu.idatt1005.pantrypal.views.components.GroceryListElement
- grocery - Variable in class stud.ntnu.idatt1005.pantrypal.views.components.GroceryListElement.GroceryListElementBuilder
- Grocery - Class in stud.ntnu.idatt1005.pantrypal.models
-
This is an entity class representing a grocery.
- Grocery(String, int, String, String, boolean) - Constructor for class stud.ntnu.idatt1005.pantrypal.models.Grocery
-
Constructor for the Grocery class.
- Grocery(Grocery) - Constructor for class stud.ntnu.idatt1005.pantrypal.models.Grocery
-
Deep-copy constructor for the Grocery class.
- GroceryListElement - Class in stud.ntnu.idatt1005.pantrypal.views.components
-
Class representing a shopping list element.
- GroceryListElement(GroceryListElement.GroceryListElementBuilder) - Constructor for class stud.ntnu.idatt1005.pantrypal.views.components.GroceryListElement
-
Constructor for the shopping list element.
- GroceryListElement.GroceryListElementBuilder - Class in stud.ntnu.idatt1005.pantrypal.views.components
-
A builder class representing a list element in the shopping list.
- GroceryListElementBuilder(Grocery) - Constructor for class stud.ntnu.idatt1005.pantrypal.views.components.GroceryListElement.GroceryListElementBuilder
-
Constructor for the GroceryListElementBuilder.
- groceryRegister - Variable in class stud.ntnu.idatt1005.pantrypal.controllers.AddRecipeController
- groceryRegister - Variable in class stud.ntnu.idatt1005.pantrypal.models.Shelf
- GroceryRegister - Class in stud.ntnu.idatt1005.pantrypal.registers
-
Represents a register of groceries.
- GroceryRegister() - Constructor for class stud.ntnu.idatt1005.pantrypal.registers.GroceryRegister
-
Constructor for the GroceryRegister class.
- GroceryRegister(GroceryRegister) - Constructor for class stud.ntnu.idatt1005.pantrypal.registers.GroceryRegister
-
Deep-copy constructor for the GroceryRegister class.
H
- HEADER - Static variable in class stud.ntnu.idatt1005.pantrypal.utils.FontPalette
- HOME - Enum constant in enum class stud.ntnu.idatt1005.pantrypal.enums.Route
- homeController - Variable in class stud.ntnu.idatt1005.pantrypal.PantryPal
- HomeController - Class in stud.ntnu.idatt1005.pantrypal.controllers
-
Controller class for the HomeView.
- HomeController(ViewManager) - Constructor for class stud.ntnu.idatt1005.pantrypal.controllers.HomeController
-
Constructor that takes in a ViewManager and sets the view for the controller.
I
- imagePath - Variable in class stud.ntnu.idatt1005.pantrypal.models.Recipe
-
The imagePath pointing to image location.
- init() - Method in class stud.ntnu.idatt1005.pantrypal.utils.ViewManager
-
Initializes the controllers and views for the application.
- INPUT_PROMPT_SEARCH - Static variable in class stud.ntnu.idatt1005.pantrypal.utils.FontPalette
- isChecked - Variable in class stud.ntnu.idatt1005.pantrypal.models.Grocery
- isFavorite - Variable in class stud.ntnu.idatt1005.pantrypal.models.Recipe
-
The boolean isFavorite, which is true if the recipe is a favorite, and false if it is not.
- isFavorite - Variable in class stud.ntnu.idatt1005.pantrypal.views.components.FavoriteButton
-
The boolean isFavorite, which is true if the recipe is a favorite, and false if it is not.
- isLoggedIn() - Method in class stud.ntnu.idatt1005.pantrypal.controllers.Controller
-
Checks if the user is logged in.
K
L
- LARGE - Enum constant in enum class stud.ntnu.idatt1005.pantrypal.views.components.StyledButton.Size
- load() - Method in class stud.ntnu.idatt1005.pantrypal.controllers.CookbookController
-
Loads the recipes from the database.
- load() - Method in class stud.ntnu.idatt1005.pantrypal.controllers.ShoppingListController
-
Retrieve the user's shopping list from the database and adds it to the register.
- load(String) - Method in class stud.ntnu.idatt1005.pantrypal.controllers.PantryController
-
Loads all shelves and groceries from the database for the specified user.
- logIn(String) - Method in class stud.ntnu.idatt1005.pantrypal.controllers.LogInController
- LOGIN - Enum constant in enum class stud.ntnu.idatt1005.pantrypal.enums.Route
- logInController - Variable in class stud.ntnu.idatt1005.pantrypal.PantryPal
- LogInController - Class in stud.ntnu.idatt1005.pantrypal.controllers
-
Controller class for the LogInView.
- LogInController(ViewManager) - Constructor for class stud.ntnu.idatt1005.pantrypal.controllers.LogInController
-
Constructor that takes in a ViewManager and sets the view for the controller
- logOut() - Method in class stud.ntnu.idatt1005.pantrypal.controllers.Controller
-
Logs out the user and navigates to the reloads the initial application, without login.
- logOut() - Method in class stud.ntnu.idatt1005.pantrypal.controllers.LogInController
- LOGOUT - Enum constant in enum class stud.ntnu.idatt1005.pantrypal.enums.Route
M
- main(String[]) - Static method in class stud.ntnu.idatt1005.pantrypal.PantryPal
-
The main method is the entry point for the PantryPal application.
- MEDIUM - Enum constant in enum class stud.ntnu.idatt1005.pantrypal.views.components.StyledButton.Size
- Model - Class in stud.ntnu.idatt1005.pantrypal.models
-
This is an abstract class representing a model.
- Model() - Constructor for class stud.ntnu.idatt1005.pantrypal.models.Model
-
Default constructor for Model class.
- Model(String) - Constructor for class stud.ntnu.idatt1005.pantrypal.models.Model
-
Constructor for Model class.
N
- name - Variable in class stud.ntnu.idatt1005.pantrypal.models.Shelf
- NavBar - Class in stud.ntnu.idatt1005.pantrypal.views.components
-
A class for the navigation bar.
- NavBar(Controller) - Constructor for class stud.ntnu.idatt1005.pantrypal.views.components.NavBar
-
Constructor for NavBar.
- NavLink - Class in stud.ntnu.idatt1005.pantrypal.views.components
-
A class that extends Hyperlink and creates a hyperlink with a route to a scene.
- NavLink(String) - Constructor for class stud.ntnu.idatt1005.pantrypal.views.components.NavLink
-
Constructor for NavLink.
- NodeUtils - Class in stud.ntnu.idatt1005.pantrypal.utils
-
Utility class for handling JavaFX nodes and panes.
- NodeUtils() - Constructor for class stud.ntnu.idatt1005.pantrypal.utils.NodeUtils
- notifyObservers(ButtonEnum) - Method in class stud.ntnu.idatt1005.pantrypal.views.components.CookbookRecipeComponent
-
Notifies the observers of the component with the given buttonEnum and the recipe of the component.
- notifyObservers(ButtonEnum) - Method in class stud.ntnu.idatt1005.pantrypal.views.components.GroceryListElement
-
Notifies the observers with the given enum and grocery.
- notifyObservers(ButtonEnum, String, int, String) - Method in class stud.ntnu.idatt1005.pantrypal.views.components.AddGroceryListElement
-
Notifies the observers in the observer list with the given buttonEnum.
O
- Observer - Interface in stud.ntnu.idatt1005.pantrypal.controllers
-
Interface for the observer role in the observer pattern
- OBSERVER_ERROR_MESSAGE - Static variable in class stud.ntnu.idatt1005.pantrypal.views.components.AddGroceryListElement
- observers - Variable in class stud.ntnu.idatt1005.pantrypal.views.components.AddGroceryListElement
- observers - Variable in class stud.ntnu.idatt1005.pantrypal.views.components.CookbookRecipeComponent
- observers - Variable in class stud.ntnu.idatt1005.pantrypal.views.components.GroceryListElement
- onNavLinkPress(Route) - Method in class stud.ntnu.idatt1005.pantrypal.controllers.Controller
-
Navigates to the view the given route represents.
- OPEN_RECIPE - Enum constant in enum class stud.ntnu.idatt1005.pantrypal.enums.ButtonEnum
- openAddRecipe() - Method in class stud.ntnu.idatt1005.pantrypal.controllers.CookbookController
-
Opens the AddRecipeView and sets the view to AddRecipeView.
- openRecipe(Recipe) - Method in class stud.ntnu.idatt1005.pantrypal.controllers.CookbookController
-
Opens a recipe in the RecipeView, and sets the view to RecipeView.
- OUTLINE - Enum constant in enum class stud.ntnu.idatt1005.pantrypal.views.components.StyledButton.Variant
P
- pane - Variable in class stud.ntnu.idatt1005.pantrypal.views.components.GroceryListElement
-
The
BorderPane
containing the visual elements of the shopping list item. - PANTRY - Enum constant in enum class stud.ntnu.idatt1005.pantrypal.enums.Route
- pantryController - Variable in class stud.ntnu.idatt1005.pantrypal.controllers.ShoppingListController
-
The controller related to the pantry.
- pantryController - Variable in class stud.ntnu.idatt1005.pantrypal.PantryPal
- PantryController - Class in stud.ntnu.idatt1005.pantrypal.controllers
-
Controller for the PantryView.
- PantryController(ViewManager) - Constructor for class stud.ntnu.idatt1005.pantrypal.controllers.PantryController
-
Constructor for the PantryController.
- PantryPal - Class in stud.ntnu.idatt1005.pantrypal
-
The main class for the PantryPal application.
- PantryPal() - Constructor for class stud.ntnu.idatt1005.pantrypal.PantryPal
- PRIMARY - Static variable in class stud.ntnu.idatt1005.pantrypal.utils.ColorPalette
- PRIMARY_DARK - Static variable in class stud.ntnu.idatt1005.pantrypal.utils.ColorPalette
- PRIMARY_LIGHT - Static variable in class stud.ntnu.idatt1005.pantrypal.utils.ColorPalette
Q
- quantity - Variable in class stud.ntnu.idatt1005.pantrypal.models.Grocery
- quantity() - Method in class stud.ntnu.idatt1005.pantrypal.views.components.GroceryListElement.GroceryListElementBuilder
-
Adds a quantity element to the GroceryListElementBuilder.
R
- recipe - Variable in class stud.ntnu.idatt1005.pantrypal.views.components.CookbookRecipeComponent
- Recipe - Class in stud.ntnu.idatt1005.pantrypal.models
-
This is an entity class representing a recipe.
- Recipe(String, String, GroceryRegister, StepRegister, String, boolean) - Constructor for class stud.ntnu.idatt1005.pantrypal.models.Recipe
-
Constructor for the Recipe class.
- RECIPE - Enum constant in enum class stud.ntnu.idatt1005.pantrypal.enums.Route
- RECIPE - Enum constant in enum class stud.ntnu.idatt1005.pantrypal.views.components.StarIcon.Variants
- recipeGroceries - Variable in class stud.ntnu.idatt1005.pantrypal.models.Recipe
-
The groceries needed for the recipe.
- recipeRegister - Variable in class stud.ntnu.idatt1005.pantrypal.controllers.CookbookController
- RecipeRegister - Class in stud.ntnu.idatt1005.pantrypal.registers
-
This is a register class for recipes.
- RecipeRegister() - Constructor for class stud.ntnu.idatt1005.pantrypal.registers.RecipeRegister
-
Constructor for the RecipeRegister class.
- register - Variable in class stud.ntnu.idatt1005.pantrypal.controllers.PantryController
- register - Variable in class stud.ntnu.idatt1005.pantrypal.controllers.ShoppingListController
-
The register holding the groceries.
- Register<T> - Class in stud.ntnu.idatt1005.pantrypal.registers
-
This is an abstract class representing a register.
- Register() - Constructor for class stud.ntnu.idatt1005.pantrypal.registers.Register
-
Constructor for Register class.
- Register(Register<T>) - Constructor for class stud.ntnu.idatt1005.pantrypal.registers.Register
-
Deep-copy constructor for Register class.
- registerMap - Variable in class stud.ntnu.idatt1005.pantrypal.registers.Register
- REMOVE - Enum constant in enum class stud.ntnu.idatt1005.pantrypal.enums.ButtonEnum
- removeGrocery(Grocery) - Method in class stud.ntnu.idatt1005.pantrypal.controllers.ShoppingListController
-
Removes a grocery from the register.
- removeGrocery(Grocery) - Method in class stud.ntnu.idatt1005.pantrypal.models.Shelf
-
Removes a grocery item from the shelf.
- removeGrocery(Grocery) - Method in class stud.ntnu.idatt1005.pantrypal.registers.GroceryRegister
-
Remove a grocery from the register.
- removeModel(T) - Method in class stud.ntnu.idatt1005.pantrypal.registers.Register
-
Remove an item from the register.
- removeObserver(Observer) - Method in class stud.ntnu.idatt1005.pantrypal.views.components.AddGroceryListElement
- removeObserver(Observer) - Method in class stud.ntnu.idatt1005.pantrypal.views.components.CookbookRecipeComponent
- removeObserver(Observer) - Method in class stud.ntnu.idatt1005.pantrypal.views.components.GroceryListElement
- removeRecipe(Recipe) - Method in class stud.ntnu.idatt1005.pantrypal.registers.RecipeRegister
-
Removes a recipe from the register.
- removeShelf(Shelf) - Method in class stud.ntnu.idatt1005.pantrypal.registers.ShelfRegister
-
Removes a shelf from the register.
- removeStep(int) - Method in class stud.ntnu.idatt1005.pantrypal.registers.StepRegister
-
Removes a step from the list of steps.
- removeStep(String) - Method in class stud.ntnu.idatt1005.pantrypal.registers.StepRegister
-
Removes a step from the list of steps.
- removeView(Route) - Method in class stud.ntnu.idatt1005.pantrypal.utils.ViewManager
-
Removes a view from the view manager.
- rerender() - Method in class stud.ntnu.idatt1005.pantrypal.controllers.AddRecipeController
-
Re-renders the view with the current groceryRegister and stepRegister.
- rerender() - Method in class stud.ntnu.idatt1005.pantrypal.controllers.CookbookController
-
Re-renders the view with the currentSearch.
- rerender() - Method in class stud.ntnu.idatt1005.pantrypal.controllers.PantryController
-
Renders the view with the updated data.
- rerender() - Method in class stud.ntnu.idatt1005.pantrypal.controllers.ShoppingListController
-
Re-renders the view.
- Route - Enum Class in stud.ntnu.idatt1005.pantrypal.enums
- Route() - Constructor for enum class stud.ntnu.idatt1005.pantrypal.enums.Route
S
- searchModels(String) - Method in class stud.ntnu.idatt1005.pantrypal.registers.Register
-
Searches for items in the register by name, and searches for all names that contains the search-string.
- searchRecipes(String) - Method in class stud.ntnu.idatt1005.pantrypal.controllers.CookbookController
-
Searches for recipes in the recipeRegister based on the search string.
- searchRecipes(String) - Method in class stud.ntnu.idatt1005.pantrypal.registers.RecipeRegister
-
Searches for recipes in the register by name.
- separator - Variable in class stud.ntnu.idatt1005.pantrypal.views.components.NavBar
-
A separator between the navigation buttons and the login button.
- setChecked(boolean) - Method in class stud.ntnu.idatt1005.pantrypal.models.Grocery
-
Set the checked status of the grocery.
- setColor(boolean) - Method in class stud.ntnu.idatt1005.pantrypal.views.components.StarIcon
-
Sets the fill color of the star based on if the recipe is a favorite or not.
- setLabel(String) - Method in class stud.ntnu.idatt1005.pantrypal.views.components.CookbookRecipeComponent
-
Sets the label of the recipe component.
- setName(String) - Method in class stud.ntnu.idatt1005.pantrypal.models.Shelf
-
Sets the name of the shelf.
- setQuantity(int) - Method in class stud.ntnu.idatt1005.pantrypal.models.Grocery
-
Set the quantity amount of the grocery.
- setRecipeToAddRecipeView(Recipe) - Method in class stud.ntnu.idatt1005.pantrypal.controllers.AddRecipeController
-
Changes the view to a new AddRecipeView() with an already existing recipe to edit.
- setStarIcon(boolean) - Method in class stud.ntnu.idatt1005.pantrypal.views.components.CookbookRecipeComponent
-
Sets the star icon of the recipe component, and places it in the top right corner.
- setUpStackPane() - Method in class stud.ntnu.idatt1005.pantrypal.views.components.CookbookRecipeComponent
-
Sets up the BorderPane for the recipe component.
- setView(Route) - Method in class stud.ntnu.idatt1005.pantrypal.utils.ViewManager
-
Sets the view of the application to a given route.
- shelf - Variable in class stud.ntnu.idatt1005.pantrypal.models.Grocery
- Shelf - Class in stud.ntnu.idatt1005.pantrypal.models
-
This class represents a Shelf in the PantryPal application.
- Shelf(String) - Constructor for class stud.ntnu.idatt1005.pantrypal.models.Shelf
-
Constructor for Shelf class.
- Shelf(String, String) - Constructor for class stud.ntnu.idatt1005.pantrypal.models.Shelf
-
Constructor for Shelf class with key parameter.
- shelfCount - Variable in class stud.ntnu.idatt1005.pantrypal.controllers.PantryController
- shelfRegister - Variable in class stud.ntnu.idatt1005.pantrypal.controllers.CookbookController
- ShelfRegister - Class in stud.ntnu.idatt1005.pantrypal.registers
-
This class represents a register of shelves in the PantryPal application.
- ShelfRegister() - Constructor for class stud.ntnu.idatt1005.pantrypal.registers.ShelfRegister
-
Constructor for ShelfRegister class.
- SHOPPING_LIST - Enum constant in enum class stud.ntnu.idatt1005.pantrypal.enums.Route
- SHOPPING_LIST - Static variable in class stud.ntnu.idatt1005.pantrypal.utils.FontPalette
- shoppingListController - Variable in class stud.ntnu.idatt1005.pantrypal.controllers.CookbookController
- shoppingListController - Variable in class stud.ntnu.idatt1005.pantrypal.PantryPal
- ShoppingListController - Class in stud.ntnu.idatt1005.pantrypal.controllers
-
Controller class for the ShoppingListView.
- ShoppingListController(ViewManager, PantryController) - Constructor for class stud.ntnu.idatt1005.pantrypal.controllers.ShoppingListController
-
Constructs a new ShoppingListController with a given view manager and pantry controller.
- shoppingListRegister - Variable in class stud.ntnu.idatt1005.pantrypal.controllers.CookbookController
- Size() - Constructor for enum class stud.ntnu.idatt1005.pantrypal.views.components.StyledButton.Size
- Sizing - Class in stud.ntnu.idatt1005.pantrypal.utils
-
The Sizing class is a utility class that provides methods for getting the screen size and the size of the recipe box.
- Sizing() - Constructor for class stud.ntnu.idatt1005.pantrypal.utils.Sizing
- SMALL - Static variable in class stud.ntnu.idatt1005.pantrypal.utils.FontPalette
- SOLID - Enum constant in enum class stud.ntnu.idatt1005.pantrypal.views.components.StyledButton.Variant
- SQL - Class in stud.ntnu.idatt1005.pantrypal.utils
- SQL() - Constructor for class stud.ntnu.idatt1005.pantrypal.utils.SQL
- stage - Variable in class stud.ntnu.idatt1005.pantrypal.utils.ViewManager
- star - Variable in class stud.ntnu.idatt1005.pantrypal.views.components.FavoriteButton
-
The star is an SVGPath that represents the star shape of the favorite button.
- StarIcon - Class in stud.ntnu.idatt1005.pantrypal.views.components
-
This class represents a star icon component, to be used to show if a recipe is a favorite.
- StarIcon(StarIcon.Variants, boolean) - Constructor for class stud.ntnu.idatt1005.pantrypal.views.components.StarIcon
-
Constructs a StarIcon with a star shape and a rectangle background.
- StarIcon.Variants - Enum Class in stud.ntnu.idatt1005.pantrypal.views.components
-
The enum Variants represents the different variants of the star icon.
- start(Stage) - Method in class stud.ntnu.idatt1005.pantrypal.PantryPal
-
The start method is called after the init method has returned, and after the system is ready for the application to begin running.
- stepRegister - Variable in class stud.ntnu.idatt1005.pantrypal.controllers.AddRecipeController
- StepRegister - Class in stud.ntnu.idatt1005.pantrypal.registers
-
Represents a list of steps in a recipe.
- StepRegister() - Constructor for class stud.ntnu.idatt1005.pantrypal.registers.StepRegister
-
Constructor for Steps.
- steps - Variable in class stud.ntnu.idatt1005.pantrypal.models.Recipe
-
The steps needed to make the recipe.
- steps - Variable in class stud.ntnu.idatt1005.pantrypal.registers.StepRegister
-
A list of steps in a recipe.
- stud.ntnu.idatt1005.pantrypal - module stud.ntnu.idatt1005.pantrypal
- stud.ntnu.idatt1005.pantrypal - package stud.ntnu.idatt1005.pantrypal
- stud.ntnu.idatt1005.pantrypal.controllers - package stud.ntnu.idatt1005.pantrypal.controllers
- stud.ntnu.idatt1005.pantrypal.enums - package stud.ntnu.idatt1005.pantrypal.enums
- stud.ntnu.idatt1005.pantrypal.models - package stud.ntnu.idatt1005.pantrypal.models
- stud.ntnu.idatt1005.pantrypal.registers - package stud.ntnu.idatt1005.pantrypal.registers
- stud.ntnu.idatt1005.pantrypal.utils - package stud.ntnu.idatt1005.pantrypal.utils
- stud.ntnu.idatt1005.pantrypal.views.components - package stud.ntnu.idatt1005.pantrypal.views.components
- StyledButton - Class in stud.ntnu.idatt1005.pantrypal.views.components
-
A class that extends Button and creates a styled button.
- StyledButton(String) - Constructor for class stud.ntnu.idatt1005.pantrypal.views.components.StyledButton
-
Constructor for StyledButton.
- StyledButton(String, StyledButton.Size) - Constructor for class stud.ntnu.idatt1005.pantrypal.views.components.StyledButton
-
Constructor for StyledButton.
- StyledButton(String, StyledButton.Variant) - Constructor for class stud.ntnu.idatt1005.pantrypal.views.components.StyledButton
-
Constructor for StyledButton.
- StyledButton(String, StyledButton.Variant, StyledButton.Size) - Constructor for class stud.ntnu.idatt1005.pantrypal.views.components.StyledButton
-
Constructor for StyledButton.
- StyledButton.Size - Enum Class in stud.ntnu.idatt1005.pantrypal.views.components
-
Enum for the different sizes of the button.
- StyledButton.Variant - Enum Class in stud.ntnu.idatt1005.pantrypal.views.components
-
Enum for the different variants of the button.
- StyledTextArea - Class in stud.ntnu.idatt1005.pantrypal.views.components
-
A class that extends TextArea and creates a styled text area.
- StyledTextArea(String) - Constructor for class stud.ntnu.idatt1005.pantrypal.views.components.StyledTextArea
-
Constructor for StyledTextArea.
- StyledTextField - Class in stud.ntnu.idatt1005.pantrypal.views.components
-
A custom TextField with a default style and a search style.
- StyledTextField(String) - Constructor for class stud.ntnu.idatt1005.pantrypal.views.components.StyledTextField
-
Constructor for StyledTextField.
- styleText(StyledTextField, int) - Method in class stud.ntnu.idatt1005.pantrypal.views.components.AddGroceryListElement
-
Styles the text field given as parameter and returns a StackPane with the text field.
T
- text(String) - Method in class stud.ntnu.idatt1005.pantrypal.views.components.GroceryListElement.GroceryListElementBuilder
-
Adds a text element to the GroceryListElementBuilder.
- TEXT - Static variable in class stud.ntnu.idatt1005.pantrypal.utils.ColorPalette
- TEXT - Static variable in class stud.ntnu.idatt1005.pantrypal.utils.FontPalette
- textBox - Variable in class stud.ntnu.idatt1005.pantrypal.views.components.GroceryListElement.GroceryListElementBuilder
- toggleIsFavorite() - Method in class stud.ntnu.idatt1005.pantrypal.models.Recipe
-
Toggle the isFavorite boolean to the opposite.
- toggleIsFavorite(Recipe) - Method in class stud.ntnu.idatt1005.pantrypal.controllers.CookbookController
-
Toggles the favorite status of a recipe.
- toggleStarColor() - Method in class stud.ntnu.idatt1005.pantrypal.views.components.FavoriteButton
-
toggles the value of the boolean isFavorite, and updates the background color of the star accordingly.
- toString() - Method in enum class stud.ntnu.idatt1005.pantrypal.enums.Route
- toString() - Method in class stud.ntnu.idatt1005.pantrypal.models.Grocery
U
- unit - Variable in class stud.ntnu.idatt1005.pantrypal.models.Grocery
- update(ButtonEnum) - Method in class stud.ntnu.idatt1005.pantrypal.controllers.AddRecipeController
-
Updates the observer with the button that was pressed.
- update(ButtonEnum) - Method in class stud.ntnu.idatt1005.pantrypal.controllers.CookbookController
-
Updates the observer with the button that was pressed.
- update(ButtonEnum) - Method in interface stud.ntnu.idatt1005.pantrypal.controllers.Observer
-
Updates the observer with the button that was pressed
- update(ButtonEnum) - Method in class stud.ntnu.idatt1005.pantrypal.controllers.PantryController
-
Updates the observer based on the button pressed.
- update(ButtonEnum) - Method in class stud.ntnu.idatt1005.pantrypal.controllers.ShoppingListController
-
Updates the observer based on the button pressed.
- update(ButtonEnum, Object) - Method in class stud.ntnu.idatt1005.pantrypal.controllers.AddRecipeController
-
Updates the observer based on the type of button pressed, and object associated object.
- update(ButtonEnum, Object) - Method in class stud.ntnu.idatt1005.pantrypal.controllers.CookbookController
-
Updates the observer with the button that was pressed and the object affected.
- update(ButtonEnum, Object) - Method in interface stud.ntnu.idatt1005.pantrypal.controllers.Observer
-
Updates the observer with the button that was pressed and the object affected
- update(ButtonEnum, Object) - Method in class stud.ntnu.idatt1005.pantrypal.controllers.PantryController
-
Updates the observer based on the button pressed and the grocery item associated with the action.
- update(ButtonEnum, Object) - Method in class stud.ntnu.idatt1005.pantrypal.controllers.ShoppingListController
-
Updates the observer based on the button pressed and the grocery item associated with the action.
- userName - Static variable in class stud.ntnu.idatt1005.pantrypal.PantryPal
V
- validImagePath(String) - Static method in class stud.ntnu.idatt1005.pantrypal.models.Recipe
-
Check if the image path is valid.
- valueOf(String) - Static method in enum class stud.ntnu.idatt1005.pantrypal.enums.ButtonEnum
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class stud.ntnu.idatt1005.pantrypal.enums.Route
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class stud.ntnu.idatt1005.pantrypal.views.components.StarIcon.Variants
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class stud.ntnu.idatt1005.pantrypal.views.components.StyledButton.Size
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class stud.ntnu.idatt1005.pantrypal.views.components.StyledButton.Variant
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class stud.ntnu.idatt1005.pantrypal.enums.ButtonEnum
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class stud.ntnu.idatt1005.pantrypal.enums.Route
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class stud.ntnu.idatt1005.pantrypal.views.components.StarIcon.Variants
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class stud.ntnu.idatt1005.pantrypal.views.components.StyledButton.Size
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class stud.ntnu.idatt1005.pantrypal.views.components.StyledButton.Variant
-
Returns an array containing the constants of this enum class, in the order they are declared.
- Variant() - Constructor for enum class stud.ntnu.idatt1005.pantrypal.views.components.StyledButton.Variant
- Variants() - Constructor for enum class stud.ntnu.idatt1005.pantrypal.views.components.StarIcon.Variants
- view - Variable in class stud.ntnu.idatt1005.pantrypal.controllers.AddRecipeController
-
The view for the AddRecipeController.
- view - Variable in class stud.ntnu.idatt1005.pantrypal.controllers.CookbookController
- view - Variable in class stud.ntnu.idatt1005.pantrypal.controllers.HomeController
-
The view for the HomeController.
- view - Variable in class stud.ntnu.idatt1005.pantrypal.controllers.LogInController
-
The view for the LogInController
- view - Variable in class stud.ntnu.idatt1005.pantrypal.controllers.PantryController
-
The view for the PantryController.
- view - Variable in class stud.ntnu.idatt1005.pantrypal.controllers.ShoppingListController
-
The view associated with this controller.
- viewManager - Variable in class stud.ntnu.idatt1005.pantrypal.controllers.Controller
-
The view manager for the application.
- viewManager - Variable in class stud.ntnu.idatt1005.pantrypal.PantryPal
- ViewManager - Class in stud.ntnu.idatt1005.pantrypal.utils
-
The ViewManager class is responsible for managing the views in the application.
- ViewManager(Stage) - Constructor for class stud.ntnu.idatt1005.pantrypal.utils.ViewManager
-
Constructs a new ViewManager with a given stage.
- views - Variable in class stud.ntnu.idatt1005.pantrypal.utils.ViewManager
W
- WHITE - Static variable in class stud.ntnu.idatt1005.pantrypal.utils.ColorPalette
All Classes and Interfaces|All Packages|Constant Field Values