Package Items

Class MenuItem

java.lang.Object
Items.MenuItem

public class MenuItem extends Object
An individual menu item
Since:
2023-03-07
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final javafx.beans.property.SimpleObjectProperty<Long>
    SimpleObjectProperty of Long holding the indentification number of the Menu Item
    private final javafx.beans.property.SimpleObjectProperty<String>
    SimpleObjectProperty of String holding the name of the Menu Item
    private final javafx.beans.property.SimpleObjectProperty<Long>
    SimpleObjectProperty of Long holding the number of sales for that Menu Item
    private final javafx.beans.property.SimpleObjectProperty<Double>
    SimpleObjectProperty of Double holding the price of the Menu Item
  • Constructor Summary

    Constructors
    Constructor
    Description
    MenuItem(long id, String name, double price, long numSold)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    javafx.beans.property.SimpleObjectProperty<Long>
    Gets id
    javafx.beans.property.SimpleObjectProperty<String>
    Gets name
    javafx.beans.property.SimpleObjectProperty<Long>
    Gets numSold
    javafx.beans.property.SimpleObjectProperty<Double>
    Gets price

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • id

      private final javafx.beans.property.SimpleObjectProperty<Long> id
      SimpleObjectProperty of Long holding the indentification number of the Menu Item
    • name

      private final javafx.beans.property.SimpleObjectProperty<String> name
      SimpleObjectProperty of String holding the name of the Menu Item
    • price

      private final javafx.beans.property.SimpleObjectProperty<Double> price
      SimpleObjectProperty of Double holding the price of the Menu Item
    • numSold

      private final javafx.beans.property.SimpleObjectProperty<Long> numSold
      SimpleObjectProperty of Long holding the number of sales for that Menu Item
  • Constructor Details

    • MenuItem

      public MenuItem(long id, String name, double price, long numSold)
      Constructor
      Parameters:
      id - number of the item
      name - of the item
      price - of the item
      numSold - of the item
  • Method Details

    • getId

      public javafx.beans.property.SimpleObjectProperty<Long> getId()
      Gets id
      Returns:
      id
    • getName

      public javafx.beans.property.SimpleObjectProperty<String> getName()
      Gets name
      Returns:
      name
    • getPrice

      public javafx.beans.property.SimpleObjectProperty<Double> getPrice()
      Gets price
      Returns:
      price
    • getNumSold

      public javafx.beans.property.SimpleObjectProperty<Long> getNumSold()
      Gets numSold
      Returns:
      numSold