Class ConfirmAddRecipeDialog
java.lang.Object
edu.ntnu.stud.controller.framecontroller.dialogboxes.DialogBox
edu.ntnu.stud.controller.framecontroller.dialogboxes.ConfirmAddRecipeDialog
Dialog box to display a choice between adding an entire recipe or only the remaining ingredients
to the shopping list. The class extends the DialogBox class.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConfirmAddRecipeDialog
(javafx.scene.control.Alert alert, javafx.scene.text.Text headerText, javafx.scene.text.Text contentText, int width, int height, Header guiHeader) Constructor for the ConfirmAddRecipeDialog class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
showAddRecipeChoiceDialog
(String recipeName) Method to show the dialog box for adding a recipe to the shopping list.Methods inherited from class edu.ntnu.stud.controller.framecontroller.dialogboxes.DialogBox
getAlert, getContentText, getHeaderText, setNegativeButtonStyle, setPositiveButtonStyle, setStyle
-
Constructor Details
-
ConfirmAddRecipeDialog
public ConfirmAddRecipeDialog(javafx.scene.control.Alert alert, javafx.scene.text.Text headerText, javafx.scene.text.Text contentText, int width, int height, Header guiHeader) Constructor for the ConfirmAddRecipeDialog class. Calls the constructor of the superclass.- Parameters:
alert
- The alert object to be displayed.headerText
- The header text of the dialog box.contentText
- The content text of the dialog box.width
- The width of the dialog box.height
- The height of the dialog box.guiHeader
- The header of the application.
-
-
Method Details
-
showAddRecipeChoiceDialog
Method to show the dialog box for adding a recipe to the shopping list.- Parameters:
recipeName
- The name of the recipe to add to the shopping list.
-