Class ShoppingListFrame

java.lang.Object
edu.ntnu.stud.controller.framecontroller.ItemListFrame
edu.ntnu.stud.controller.framecontroller.ShoppingListFrame
All Implemented Interfaces:
JsonReadable, javafx.fxml.Initializable

public class ShoppingListFrame extends ItemListFrame implements JsonReadable
A frame for displaying the shopping list. It extends the ItemListFrame and adds any specific functionality for the shopping list.
See Also:
  • Constructor Details

    • ShoppingListFrame

      public ShoppingListFrame()
      Uses the constructor of the superclass to set the FXML file for the shopping list frame.
  • Method Details

    • setShoppingListToDbButtonAction

      public void setShoppingListToDbButtonAction(javafx.event.EventHandler<javafx.event.ActionEvent> event)
      Sets the event handler for the set shopping list to database button.
      Parameters:
      event - The event handler for the button.
    • setShoppingClearButtonAction

      public void setShoppingClearButtonAction(javafx.event.EventHandler<javafx.event.ActionEvent> event)
      Sets the event handler for the clear shopping list button.
      Parameters:
      event - The event handler for the button.
    • setAddIngredientButtonAction

      public void setAddIngredientButtonAction(javafx.event.EventHandler<javafx.event.ActionEvent> event)
      Sets the event handler for the add ingredient button.
      Parameters:
      event - The event handler for the button.
    • setShoppingListGetButtonAction

      public void setShoppingListGetButtonAction(javafx.event.EventHandler<javafx.event.ActionEvent> event)
      Sets the event handler for the get shopping list button.
      Parameters:
      event - The event handler for the button.