public void setCart(ShoppingCart cart) { _cart = cart; _contentsForm.setCart(_cart); _settingsForm.setCart(_cart); if (_header != null && cart != null) { _header.setHTML("Shopping Cart " + _cart.id()); } }