Index
All Classes and Interfaces|All Packages|Serialized Form
R
- readImageFromJson(int, JSONArray) - Method in class edu.ntnu.stud.controller.framecontroller.CookBookFrame.CookBookJsonReader
-
Reads the image of a recipe from the JSON array at the given index.
- readImageFromJson(int, JSONArray) - Method in class edu.ntnu.stud.controller.framecontroller.CookBookFrame
-
Nested method to read the image of a recipe from the JSON file.
- readListFromJson(JSONArray) - Method in interface edu.ntnu.stud.controller.framecontroller.JsonReadable
-
Reads a list of items from a JSON array.
- readNameOfRecipe(int, JSONArray) - Method in class edu.ntnu.stud.controller.framecontroller.CookBookFrame.CookBookJsonReader
-
Reads the name of a recipe from the JSON array at the given index.
- readNameOfRecipe(int, JSONArray) - Method in class edu.ntnu.stud.controller.framecontroller.CookBookFrame
-
Nested method to read the name of a recipe from the JSON file.
- RecipeFrame - Class in edu.ntnu.stud.controller.framecontroller
-
A frame that displays a recipe with its name, steps, image and ingredients.
- RecipeFrame() - Constructor for class edu.ntnu.stud.controller.framecontroller.RecipeFrame
-
Constructor for the RecipeFrame class.
- RecipeFrameException - Exception Class in edu.ntnu.stud.utils.exceptions
-
Exception thrown when there is an error in the RecipeFrame class.
- RecipeFrameException(String, Throwable) - Constructor for exception class edu.ntnu.stud.utils.exceptions.RecipeFrameException
-
Constructs a new RecipeFrameException with the specified detail message and cause.
- reduceInventoryByRecipe(String) - Static method in class edu.ntnu.stud.model.Inventory
-
Adds a recipe to the inventory by reading the recipe from cookbook.json and adding it to inventory.json.
All Classes and Interfaces|All Packages|Serialized Form