Class ConfirmGetDialog
java.lang.Object
edu.ntnu.stud.controller.framecontroller.dialogboxes.DialogBox
edu.ntnu.stud.controller.framecontroller.dialogboxes.ConfirmGetDialog
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
ConstructorsConstructorDescriptionConfirmGetDialog
(javafx.scene.control.Alert alert, javafx.scene.text.Text headerText, javafx.scene.text.Text contentText, int width, int height) Constructor for the DialogBox class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
showGetDialog
(String tableName) Method to show the dialog confirmation before fetching a list form database.Methods inherited from class edu.ntnu.stud.controller.framecontroller.dialogboxes.DialogBox
getAlert, getContentText, getHeaderText, setNegativeButtonStyle, setPositiveButtonStyle, setStyle
-
Constructor Details
-
ConfirmGetDialog
public ConfirmGetDialog(javafx.scene.control.Alert alert, javafx.scene.text.Text headerText, javafx.scene.text.Text contentText, int width, int height) Constructor for the DialogBox class. Gets the variables needed to create the dialog box from the subclasses.- 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.
-
-
Method Details
-
showGetDialog
Method to show the dialog confirmation before fetching a list form database.- Parameters:
tableName
- The name of the recipe to add to the shopping list.- Throws:
DbConnectionErrorException
- If there is an error connecting to the database
-