Class CartController

java.lang.Object
csce331.group13.project2.ui.CartController
All Implemented Interfaces:
javafx.fxml.Initializable

public class CartController extends Object implements javafx.fxml.Initializable
Controller for the shopping cart view. Displays current order items, calculates totals, and handles checkout.
Author:
William Clymire
  • Constructor Details

    • CartController

      public CartController()
  • Method Details

    • initialize

      public void initialize(URL url, ResourceBundle resourceBundle)
      Initializes the cart view, hides manager button for non-managers, and sets up event handlers.
      Specified by:
      initialize in interface javafx.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.