| java.lang.Object olstore.client.Item
All known Subclasses: olstore.client.OrderItem,
Item | public class Item (Code) | | A representation of a single item on sale in the store.
|
Item | public Item(String title, String description, String price, String category, String id, BufferedImage image)(Code) | | A single item from the catalog.
Parameters: title - item's name Parameters: description - item's description Parameters: price - the price Parameters: category - the product category Parameters: id - the unique ID Parameters: image - an image showing this item |
getCategory | public String getCategory()(Code) | | Get the product category.
Returns the category. |
getDescription | public String getDescription()(Code) | | Get the description of this item.
Returns the description. |
getId | public String getId()(Code) | | Get the ID for this item.
The ID for this item. |
getImage | public BufferedImage getImage()(Code) | | Get the image showing this item.
Returns the image. |
getPrice | public String getPrice()(Code) | | Get the price for this item.
Returns the price. |
getTitle | public String getTitle()(Code) | | Get the title for this item.
Returns the title. |
setCategory | public void setCategory(String category)(Code) | | Set the product category.
Parameters: category - The category to set. |
setDescription | public void setDescription(String description)(Code) | | Set the description for this item.
Parameters: description - The description to set. |
setImage | public void setImage(BufferedImage image)(Code) | | Set the image that represents this item.
Parameters: image - The image to set. |
setPrice | public void setPrice(String price)(Code) | | Set the price for this item.
Parameters: price - The price to set. |
setTitle | public void setTitle(String title)(Code) | | Set the title for this item.
Parameters: title - The title to set. |
|
|