Class ConfirmSaveDialog

java.lang.Object
edu.ntnu.stud.controller.framecontroller.dialogboxes.DialogBox
edu.ntnu.stud.controller.framecontroller.dialogboxes.ConfirmSaveDialog

public class ConfirmSaveDialog extends DialogBox
Dialog box to display confirmation before saving the list to the database. to the shopping list. The class extends the DialogBox class.
See Also:
  • Constructor Details

    • ConfirmSaveDialog

      public ConfirmSaveDialog(javafx.scene.control.Alert alert, javafx.scene.text.Text headerText, javafx.scene.text.Text contentText, int width, int height)
      Constructor for the ConfirmSave 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.
  • Method Details

    • showSaveDialog

      public void showSaveDialog(String tableName)
      Method to show the dialog confirmation before saving list to database.
      Parameters:
      tableName - The name of the recipe to add to the shopping list.