| javax.swing.JPanel olstore.client.OrderPanel
OrderPanel | public class OrderPanel extends JPanel (Code) | | A custom JPanel class used for displaying items
that are in the shopping cart.
|
Constructor Summary | |
public | OrderPanel(OrderItem orderItem) Creates a new OrderPanel given an OrderItem,
and builds the panel to display the item information. |
Method Summary | |
public void | buildPanel() Creates the panel to display the item by creating
components for each piece of information (picture, price, etc...)
and putting them in a GridBagLayout. | public OrderItem | getOrderItem() Returns the OrderItem represented by this panel. | public void | setOrderItem(OrderItem orderItem) Sets the order item represented by this panel
to the given order item. | public void | updateQuantity() Updates the quantity for this item. |
OrderPanel | public OrderPanel(OrderItem orderItem)(Code) | | Creates a new OrderPanel given an OrderItem,
and builds the panel to display the item information.
Parameters: orderItem - The order item to add to the panel. |
buildPanel | public void buildPanel()(Code) | | Creates the panel to display the item by creating
components for each piece of information (picture, price, etc...)
and putting them in a GridBagLayout.
|
getOrderItem | public OrderItem getOrderItem()(Code) | | Returns the OrderItem represented by this panel.
The orderItem represented by this panel. |
setOrderItem | public void setOrderItem(OrderItem orderItem)(Code) | | Sets the order item represented by this panel
to the given order item.
Parameters: orderItem - The orderItem to set. |
updateQuantity | public void updateQuantity()(Code) | | Updates the quantity for this item.
|
|
|