Package Items
Class OrderRow
java.lang.Object
Items.OrderRow
Handle displaying the
Order in the GUI- Since:
- 2023-03-07
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final javafx.beans.property.SimpleObjectProperty<String>SimpleObjectPropertyofStringholding the name of the customer making the order.private final javafx.beans.property.SimpleObjectProperty<String>SimpleObjectPropertyofStringholding the name of the employee completing the orderprivate final javafx.beans.property.SimpleObjectProperty<String>SimpleObjectPropertyofStringholding the date of when the order was made.private final javafx.beans.property.SimpleObjectProperty<Long>SimpleObjectPropertyofLongholding the identification number of the order.private final javafx.beans.property.SimpleObjectProperty<Double>SimpleObjectPropertyofDoubleholding the total price of the order. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavafx.beans.property.SimpleObjectProperty<String>getDate()GetsorderDatejavafx.beans.property.SimpleObjectProperty<String>GetsemployeeNamejavafx.beans.property.SimpleObjectProperty<String>getName()GetscustomerNamejavafx.beans.property.SimpleObjectProperty<Long>GetsorderIDGetsorderTotaljavafx.beans.property.SimpleObjectProperty<String>getPrice()GetsorderTotal
-
Field Details
-
orderID
SimpleObjectPropertyofLongholding the identification number of the order. -
customerName
SimpleObjectPropertyofStringholding the name of the customer making the order. -
orderDate
SimpleObjectPropertyofStringholding the date of when the order was made. -
orderTotal
SimpleObjectPropertyofDoubleholding the total price of the order. -
employeeName
SimpleObjectPropertyofStringholding the name of the employee completing the order
-
-
Constructor Details
-
OrderRow
public OrderRow(long orderID, String customerName, String orderDate, double orderTotal, String employeeName) Constructor- Parameters:
orderID- id number of the ordercustomerName- name of the customerorderDate- date the order was madeorderTotal- total cost of the orderemployeeName- name of the employee completing the order
-
-
Method Details
-
getOrderID
GetsorderID- Returns:
orderID
-
getName
GetscustomerName- Returns:
customerName
-
getDate
GetsorderDate- Returns:
orderDate
-
getOrderTotal
GetsorderTotal- Returns:
orderTotal
-
getPrice
GetsorderTotal- Returns:
orderTotal
-
getEmployeeName
GetsemployeeName- Returns:
employeeName
-