Package Items
Class MenuItem
java.lang.Object
Items.MenuItem
An individual menu item
- Since:
- 2023-03-07
-
Field Summary
Modifier and TypeFieldDescriptionprivate final javafx.beans.property.SimpleObjectProperty<Long>
SimpleObjectProperty
ofLong
holding the indentification number of the Menu Itemprivate final javafx.beans.property.SimpleObjectProperty<String>
SimpleObjectProperty
ofString
holding the name of the Menu Itemprivate final javafx.beans.property.SimpleObjectProperty<Long>
SimpleObjectProperty
ofLong
holding the number of sales for that Menu Itemprivate final javafx.beans.property.SimpleObjectProperty<Double>
SimpleObjectProperty
ofDouble
holding the price of the Menu Item -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavafx.beans.property.SimpleObjectProperty<Long>
getId()
Getsid
javafx.beans.property.SimpleObjectProperty<String>
getName()
Getsname
javafx.beans.property.SimpleObjectProperty<Long>
GetsnumSold
javafx.beans.property.SimpleObjectProperty<Double>
getPrice()
Getsprice
-
Field Details
-
id
SimpleObjectProperty
ofLong
holding the indentification number of the Menu Item -
name
SimpleObjectProperty
ofString
holding the name of the Menu Item -
price
SimpleObjectProperty
ofDouble
holding the price of the Menu Item -
numSold
SimpleObjectProperty
ofLong
holding the number of sales for that Menu Item
-
-
Constructor Details
-
MenuItem
Constructor- Parameters:
id
- number of the itemname
- of the itemprice
- of the itemnumSold
- of the item
-
-
Method Details