Class ProductUsageData

java.lang.Object
csce331.group13.project2.models.ProductUsageData

public class ProductUsageData extends Object
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

    Properties
    Type
    Property
    Description
    javafx.beans.property.StringProperty
    Gets the item name property for JavaFX binding.
    javafx.beans.property.IntegerProperty
    Gets the quantity used property for JavaFX binding.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProductUsageData(String itemName, int quantitySold)
    Constructs a ProductUsageData with the specified item name and quantity used.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the inventory item name.
    int
    Gets the quantity used.
    javafx.beans.property.StringProperty
    Gets the item name property for JavaFX binding.
    javafx.beans.property.IntegerProperty
    Gets the quantity used property for JavaFX binding.

    Methods inherited from class Object

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

  • Constructor Details

    • ProductUsageData

      public ProductUsageData(String itemName, int quantitySold)
      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

      public String getItemName()
      Gets the inventory item name.
      Returns:
      The item name.
    • getQuantityUsed

      public int getQuantityUsed()
      Gets the quantity used.
      Returns:
      The quantity used during the time period.