Package edu.ntnu.idi.idatt.observer
Interface ButtonClickObserver
- All Known Implementing Classes:
BoardCreatorController
,GameController
,GameFinishedController
,GameSelectionController
,LadderGameBoardCreatorController
,LadderGameController
,LadderGameMenuController
,LudoBoardCreatorController
,LudoGameController
,LudoMenuController
,MenuController
,ViewNavigator
public interface ButtonClickObserver
ButtonClickObserver interface
This interface defines methods for observing button click events, such as when a button is clicked in a view.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onButtonClicked
(String buttonId) Handles button click events.void
onButtonClickedWithParams
(String buttonId, Map<String, Object> params) Handles button click events with parameters.
-
Method Details
-
onButtonClicked
Handles button click events.- Parameters:
buttonId
- the ID of the button clicked
-
onButtonClickedWithParams
Handles button click events with parameters.- Parameters:
buttonId
- the ID of the button clickedparams
- the parameters of the button click event
-