Class ProductUsageData
java.lang.Object
csce331.group13.project2.models.ProductUsageData
Represents a row in the product usage report, containing information about an
inventory item's name and the quantity of it that was used in a time period.
- Author:
- Austin Glander
-
Property Summary
PropertiesTypePropertyDescriptionjavafx.beans.property.StringPropertyGets the item name property for JavaFX binding.javafx.beans.property.IntegerPropertyGets the quantity used property for JavaFX binding. -
Constructor Summary
ConstructorsConstructorDescriptionProductUsageData(String itemName, int quantitySold) Constructs a ProductUsageData with the specified item name and quantity used. -
Method Summary
Modifier and TypeMethodDescriptionGets the inventory item name.intGets the quantity used.javafx.beans.property.StringPropertyGets the item name property for JavaFX binding.javafx.beans.property.IntegerPropertyGets the quantity used property for JavaFX binding.
-
Property Details
-
itemName
public javafx.beans.property.StringProperty itemNamePropertyGets the item name property for JavaFX binding.- See Also:
-
quantityUsed
public javafx.beans.property.IntegerProperty quantityUsedPropertyGets the quantity used property for JavaFX binding.- See Also:
-
-
Constructor Details
-
ProductUsageData
Constructs a ProductUsageData with the specified item name and quantity used.- Parameters:
itemName- The name of the inventory item.quantitySold- The total quantity used during the time period.
-
-
Method Details
-
itemNameProperty
public javafx.beans.property.StringProperty itemNameProperty()Gets the item name property for JavaFX binding.- Returns:
- The item name property.
- See Also:
-
quantityUsedProperty
public javafx.beans.property.IntegerProperty quantityUsedProperty()Gets the quantity used property for JavaFX binding.- Returns:
- The quantity used property.
- See Also:
-
getItemName
-
getQuantityUsed
public int getQuantityUsed()Gets the quantity used.- Returns:
- The quantity used during the time period.
-