Uses of Class
stud.ntnu.idatt1005.pantrypal.models.Shelf
Packages that use Shelf
Package
Description
-
Uses of Shelf in stud.ntnu.idatt1005.pantrypal.controllers
Methods in stud.ntnu.idatt1005.pantrypal.controllers that return ShelfModifier and TypeMethodDescriptionAdds a shelf to the register.Shelf[]
PantryController.getShelves()
Returns all shelves in the register.Methods in stud.ntnu.idatt1005.pantrypal.controllers with parameters of type ShelfModifier and TypeMethodDescriptionvoid
PantryController.addGrocery
(Shelf shelf, String name, int amount) Adds a grocery item to the shelf.void
PantryController.deleteGrocery
(Shelf shelf, Grocery grocery) Removes the grocery item from the shelf.void
PantryController.deleteShelf
(Shelf shelf) Deletes the specified shelf.void
PantryController.editShelfName
(Shelf shelf, String name) Edits the name of the specified shelf.Grocery[]
PantryController.getGroceries
(Shelf shelf) Returns all groceries from the specified shelf. -
Uses of Shelf in stud.ntnu.idatt1005.pantrypal.registers
Methods in stud.ntnu.idatt1005.pantrypal.registers that return ShelfModifier and TypeMethodDescriptionShelfRegister.getShelfByName
(String nameOfShelf) Returns the shelf from the register that corresponds with name given.Methods in stud.ntnu.idatt1005.pantrypal.registers with parameters of type ShelfModifier and TypeMethodDescriptionvoid
Adds a shelf to the register.void
ShelfRegister.removeShelf
(Shelf shelf) Removes a shelf from the register.