Class ShoppingListFrame
java.lang.Object
edu.ntnu.stud.controller.framecontroller.ItemListFrame
edu.ntnu.stud.controller.framecontroller.ShoppingListFrame
- All Implemented Interfaces:
JsonReadable
,javafx.fxml.Initializable
A frame for displaying the shopping list. It extends the ItemListFrame and adds any specific
functionality for the shopping list.
- See Also:
-
Field Summary
Fields inherited from class edu.ntnu.stud.controller.framecontroller.ItemListFrame
amountColumn, frame, itemBox, nameColumn, tableView
-
Constructor Summary
ConstructorsConstructorDescriptionUses the constructor of the superclass to set the FXML file for the shopping list frame. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setAddIngredientButtonAction
(javafx.event.EventHandler<javafx.event.ActionEvent> event) Sets the event handler for the add ingredient button.void
setShoppingClearButtonAction
(javafx.event.EventHandler<javafx.event.ActionEvent> event) Sets the event handler for the clear shopping list button.void
setShoppingListGetButtonAction
(javafx.event.EventHandler<javafx.event.ActionEvent> event) Sets the event handler for the get shopping list button.void
setShoppingListToDbButtonAction
(javafx.event.EventHandler<javafx.event.ActionEvent> event) Sets the event handler for the set shopping list to database 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
-
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.
-