Class InventoryFrame

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

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

    • InventoryFrame

      public InventoryFrame()
      Takes in the file name for the .fxml file for the class extending the ItemListFrame class.
  • Method Details

    • inventoryToDbButtonAction

      public void inventoryToDbButtonAction(javafx.event.EventHandler<javafx.event.ActionEvent> event)
      Sets the event handler for the set inventory to database button.
      Parameters:
      event - The event handler for the button.
    • inventoryClearButtonAction

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

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

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