Class CartController
java.lang.Object
csce331.group13.project2.ui.CartController
- All Implemented Interfaces:
javafx.fxml.Initializable
Controller for the shopping cart view.
Displays current order items, calculates totals, and handles checkout.
- Author:
- William Clymire
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(URL url, ResourceBundle resourceBundle) Initializes the cart view, hides manager button for non-managers, and sets up event handlers.voidRefreshes the cart display and recalculates subtotal, tax, and total.
-
Constructor Details
-
CartController
public CartController()
-
-
Method Details
-
initialize
Initializes the cart view, hides manager button for non-managers, and sets up event handlers.- Specified by:
initializein interfacejavafx.fxml.Initializable- Parameters:
url- The location used to resolve relative paths for the root object.resourceBundle- The resources used to localize the root object.
-
refreshCart
public void refreshCart()Refreshes the cart display and recalculates subtotal, tax, and total.
-