Class InventoryFrame
java.lang.Object
edu.ntnu.stud.controller.framecontroller.ItemListFrame
edu.ntnu.stud.controller.framecontroller.InventoryFrame
- All Implemented Interfaces:
JsonReadable
,javafx.fxml.Initializable
A frame for displaying the inventory. It extends the ItemListFrame and adds any specific
functionality for the inventory.
- See Also:
-
Field Summary
Fields inherited from class edu.ntnu.stud.controller.framecontroller.ItemListFrame
amountColumn, frame, itemBox, nameColumn, tableView
-
Constructor Summary
ConstructorsConstructorDescriptionTakes in the file name for the .fxml file for the class extending the ItemListFrame class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
inventoryClearButtonAction
(javafx.event.EventHandler<javafx.event.ActionEvent> event) Sets the event handler for the clear inventory button.void
inventoryGetButtonAction
(javafx.event.EventHandler<javafx.event.ActionEvent> event) Sets the action for the add ingredient button.void
inventoryToDbButtonAction
(javafx.event.EventHandler<javafx.event.ActionEvent> event) Sets the event handler for the set inventory to database button.void
setAddIngredientButtonAction
(javafx.event.EventHandler<javafx.event.ActionEvent> event) Sets the action for the add ingredient button.Methods inherited from class edu.ntnu.stud.controller.framecontroller.ItemListFrame
getFrame, initialize, updateItems
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface edu.ntnu.stud.controller.framecontroller.JsonReadable
readListFromJson
-
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
-