Class RecipePopup
java.lang.Object
javafx.stage.Window
javafx.stage.PopupWindow
javafx.stage.Popup
no.ntnu.idatt1002.demo.view.components.RecipePopup
- All Implemented Interfaces:
javafx.event.EventTarget
public class RecipePopup
extends javafx.stage.Popup
A popup for adding items to the inventory.
-
Property Summary
Properties inherited from class javafx.stage.PopupWindow
anchorLocation, anchorX, anchorY, autoFix, autoHide, consumeAutoHidingEvents, hideOnEscape, onAutoHide, ownerNode, ownerWindow
Properties inherited from class javafx.stage.Window
eventDispatcher, focused, forceIntegerRenderScale, height, onCloseRequest, onHidden, onHiding, onShowing, onShown, opacity, outputScaleX, outputScaleY, renderScaleX, renderScaleY, scene, showing, width, x, y
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Interface for when the user deletes the item.static interface
Interface for when the user saves the form.private static enum
Nested classes/interfaces inherited from class javafx.stage.PopupWindow
javafx.stage.PopupWindow.AnchorLocation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate javafx.scene.layout.VBox
private PrimaryButton
private PrimaryButton
private javafx.scene.layout.VBox
private InputField
private RecipePopup.Page
private PrimaryButton
private PrimaryButton
private List
<RecipeIngredientField> private InputField
private RecipePopup.OnDelete
private RecipePopup.OnSave
private PageSwitcher
private PrimaryButton
private NumberField
private javafx.scene.text.Text
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetOnDelete
(RecipePopup.OnDelete onDelete) setOnSave
(RecipePopup.OnSave onSave) private void
Methods inherited from class javafx.stage.Popup
getContent
Methods inherited from class javafx.stage.PopupWindow
anchorLocationProperty, anchorXProperty, anchorYProperty, autoFixProperty, autoHideProperty, consumeAutoHidingEventsProperty, getAnchorLocation, getAnchorX, getAnchorY, getConsumeAutoHidingEvents, getOnAutoHide, getOwnerNode, getOwnerWindow, hide, hideOnEscapeProperty, isAutoFix, isAutoHide, isHideOnEscape, onAutoHideProperty, ownerNodeProperty, ownerWindowProperty, setAnchorLocation, setAnchorX, setAnchorY, setAutoFix, setAutoHide, setConsumeAutoHidingEvents, setHideOnEscape, setOnAutoHide, setScene, show, show, show
Methods inherited from class javafx.stage.Window
addEventFilter, addEventHandler, buildEventDispatchChain, centerOnScreen, eventDispatcherProperty, fireEvent, focusedProperty, forceIntegerRenderScaleProperty, getEventDispatcher, getHeight, getOnCloseRequest, getOnHidden, getOnHiding, getOnShowing, getOnShown, getOpacity, getOutputScaleX, getOutputScaleY, getProperties, getRenderScaleX, getRenderScaleY, getScene, getUserData, getWidth, getWindows, getX, getY, hasProperties, heightProperty, isFocused, isForceIntegerRenderScale, isShowing, onCloseRequestProperty, onHiddenProperty, onHidingProperty, onShowingProperty, onShownProperty, opacityProperty, outputScaleXProperty, outputScaleYProperty, removeEventFilter, removeEventHandler, renderScaleXProperty, renderScaleYProperty, requestFocus, sceneProperty, setEventDispatcher, setEventHandler, setForceIntegerRenderScale, setHeight, setOnCloseRequest, setOnHidden, setOnHiding, setOnShowing, setOnShown, setOpacity, setRenderScaleX, setRenderScaleY, setUserData, setWidth, setX, setY, show, showingProperty, sizeToScene, widthProperty, xProperty, yProperty
-
Field Details
-
pair
-
onSave
-
onDelete
-
newIngredients
-
currentPage
-
background
private javafx.scene.layout.VBox background -
categoryField
-
nameField
-
timefield
-
ingredientsField
-
deleteButton
-
submitButton
-
title
private javafx.scene.text.Text title -
addIngredientButton
-
addIngredientBox
private javafx.scene.layout.VBox addIngredientBox -
pageSwitcher
-
stepsField
-
newSteps
-
addStepButton
-
imageButton
-
-
Constructor Details
-
RecipePopup
Constructor for the AddPopup.
-
-
Method Details
-
switchPopupPage
-
setOnSave
-
setOnDelete
-