Package Items
Class OrderRow
java.lang.Object
Items.OrderRow
Handle displaying the
Order
in the GUI- Since:
- 2023-03-07
-
Field Summary
Modifier and TypeFieldDescriptionprivate final javafx.beans.property.SimpleObjectProperty<String>
SimpleObjectProperty
ofString
holding the name of the customer making the order.private final javafx.beans.property.SimpleObjectProperty<String>
SimpleObjectProperty
ofString
holding the name of the employee completing the orderprivate final javafx.beans.property.SimpleObjectProperty<String>
SimpleObjectProperty
ofString
holding the date of when the order was made.private final javafx.beans.property.SimpleObjectProperty<Long>
SimpleObjectProperty
ofLong
holding the identification number of the order.private final javafx.beans.property.SimpleObjectProperty<Double>
SimpleObjectProperty
ofDouble
holding the total price of the order. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavafx.beans.property.SimpleObjectProperty<String>
getDate()
GetsorderDate
javafx.beans.property.SimpleObjectProperty<String>
GetsemployeeName
javafx.beans.property.SimpleObjectProperty<String>
getName()
GetscustomerName
javafx.beans.property.SimpleObjectProperty<Long>
GetsorderID
GetsorderTotal
javafx.beans.property.SimpleObjectProperty<String>
getPrice()
GetsorderTotal
-
Field Details
-
orderID
SimpleObjectProperty
ofLong
holding the identification number of the order. -
customerName
SimpleObjectProperty
ofString
holding the name of the customer making the order. -
orderDate
SimpleObjectProperty
ofString
holding the date of when the order was made. -
orderTotal
SimpleObjectProperty
ofDouble
holding the total price of the order. -
employeeName
SimpleObjectProperty
ofString
holding 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
-