Class SalesData
java.lang.Object
csce331.group13.project2.models.SalesData
Represents a row in the sales report, containing information about a menu item's
name, quantity sold, and total revenue.
- Author:
- Hussam Makhoul
-
Property Summary
PropertiesTypePropertyDescriptionjavafx.beans.property.StringPropertyGets the item name property for JavaFX binding.javafx.beans.property.IntegerPropertyGets the quantity sold property for JavaFX binding.javafx.beans.property.DoublePropertyGets the total sales property for JavaFX binding. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the menu item name.intGets the quantity sold.doubleGets the total sales revenue.javafx.beans.property.StringPropertyGets the item name property for JavaFX binding.javafx.beans.property.IntegerPropertyGets the quantity sold property for JavaFX binding.javafx.beans.property.DoublePropertyGets the total sales property for JavaFX binding.
-
Property Details
-
itemName
public javafx.beans.property.StringProperty itemNamePropertyGets the item name property for JavaFX binding.- See Also:
-
quantitySold
public javafx.beans.property.IntegerProperty quantitySoldPropertyGets the quantity sold property for JavaFX binding.- See Also:
-
totalSales
public javafx.beans.property.DoubleProperty totalSalesPropertyGets the total sales property for JavaFX binding.- See Also:
-
-
Constructor Details
-
SalesData
Constructs a SalesData with the specified item name, quantity sold, and total sales.- Parameters:
itemName- The name of the menu item.quantitySold- The total quantity sold.totalSales- The total revenue from this item.
-
-
Method Details
-
itemNameProperty
public javafx.beans.property.StringProperty itemNameProperty()Gets the item name property for JavaFX binding.- Returns:
- The item name property.
- See Also:
-
quantitySoldProperty
public javafx.beans.property.IntegerProperty quantitySoldProperty()Gets the quantity sold property for JavaFX binding.- Returns:
- The quantity sold property.
- See Also:
-
totalSalesProperty
public javafx.beans.property.DoubleProperty totalSalesProperty()Gets the total sales property for JavaFX binding.- Returns:
- The total sales property.
- See Also:
-
getItemName
-
getQuantitySold
public int getQuantitySold()Gets the quantity sold.- Returns:
- The total quantity sold.
-
getTotalSales
public double getTotalSales()Gets the total sales revenue.- Returns:
- The total revenue.
-