Interface Observer
- All Known Implementing Classes:
AddRecipeController
,CookbookController
,PantryController
,ShoppingListController
public interface Observer
Interface for the observer role in the observer pattern
-
Method Summary
Modifier and TypeMethodDescriptionvoid
update
(ButtonEnum buttonEnum) Updates the observer with the button that was pressedvoid
update
(ButtonEnum buttonEnum, Object object) Updates the observer with the button that was pressed and the object affected
-
Method Details
-
update
Updates the observer with the button that was pressed and the object affected- Parameters:
buttonEnum
- the button that was pressedobject
- the object that was pressed
-
update
Updates the observer with the button that was pressed- Parameters:
buttonEnum
- the button that was pressed
-