Uses of Enum Class
stud.ntnu.idatt1005.pantrypal.enums.ButtonEnum
Packages that use ButtonEnum
Package
Description
-
Uses of ButtonEnum in stud.ntnu.idatt1005.pantrypal.controllers
Methods in stud.ntnu.idatt1005.pantrypal.controllers with parameters of type ButtonEnumModifier and TypeMethodDescriptionvoid
AddRecipeController.update
(ButtonEnum buttonEnum) Updates the observer with the button that was pressed.void
AddRecipeController.update
(ButtonEnum buttonEnum, Object object) Updates the observer based on the type of button pressed, and object associated object.void
CookbookController.update
(ButtonEnum buttonEnum) Updates the observer with the button that was pressed.void
CookbookController.update
(ButtonEnum buttonEnum, Object object) Updates the observer with the button that was pressed and the object affected.void
Observer.update
(ButtonEnum buttonEnum) Updates the observer with the button that was pressedvoid
Observer.update
(ButtonEnum buttonEnum, Object object) Updates the observer with the button that was pressed and the object affectedvoid
PantryController.update
(ButtonEnum buttonEnum) Updates the observer based on the button pressed.void
PantryController.update
(ButtonEnum buttonEnum, Object object) Updates the observer based on the button pressed and the grocery item associated with the action.void
ShoppingListController.update
(ButtonEnum buttonEnum) Updates the observer based on the button pressed.void
ShoppingListController.update
(ButtonEnum buttonEnum, Object object) Updates the observer based on the button pressed and the grocery item associated with the action. -
Uses of ButtonEnum in stud.ntnu.idatt1005.pantrypal.enums
Methods in stud.ntnu.idatt1005.pantrypal.enums that return ButtonEnumModifier and TypeMethodDescriptionstatic ButtonEnum
Returns the enum constant of this class with the specified name.static ButtonEnum[]
ButtonEnum.values()
Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of ButtonEnum in stud.ntnu.idatt1005.pantrypal.views.components
Methods in stud.ntnu.idatt1005.pantrypal.views.components with parameters of type ButtonEnumModifier and TypeMethodDescriptionprivate void
AddGroceryListElement.notifyObservers
(ButtonEnum buttonEnum, String name, int quantity, String shelf) Notifies the observers in the observer list with the given buttonEnum.protected void
CookbookRecipeComponent.notifyObservers
(ButtonEnum buttonEnum) Notifies the observers of the component with the given buttonEnum and the recipe of the component.protected void
GroceryListElement.notifyObservers
(ButtonEnum buttonEnum) Notifies the observers with the given enum and grocery.