|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Product | |
---|---|
edu.uci.ics.inf111.dvdvendor.app | |
edu.uci.ics.inf111.dvdvendor.gui |
Uses of Product in edu.uci.ics.inf111.dvdvendor.app |
---|
Classes in edu.uci.ics.inf111.dvdvendor.app that implement Product | |
---|---|
class |
DVD
A DVD represents a single bar-code-bearing product in the point of sale. |
Fields in edu.uci.ics.inf111.dvdvendor.app with type parameters of type Product | |
---|---|
private java.util.Vector<Product> |
CheckOutCart.items
A Vector of Products. |
private java.util.Hashtable<java.lang.String,Product> |
ProductDB.productsHT
This Hashtable is the core of our sample DB. |
Methods in edu.uci.ics.inf111.dvdvendor.app that return Product | |
---|---|
Product |
DVDVendor.addItem(BarCode barCode)
This method accepts a bar code and adds the corresponding product to the customer's cart. |
Product |
ProductDB.lookUpItem(BarCode barCode)
This method looks up a product in the database. |
Product |
CheckOutCart.lookUpItem(Product item)
This method looks up a product in the CheckOutCart. |
Methods in edu.uci.ics.inf111.dvdvendor.app that return types with arguments of type Product | |
---|---|
java.util.Hashtable<java.lang.String,Product> |
ProductDB.listAll()
This method returns a copy of the ProductDB Hashtable. |
java.util.Enumeration<Product> |
CheckOutCart.listItems()
This method returns an enumeration of the Products in the cart. |
java.util.Enumeration<Product> |
DVDVendor.listItemsInCart()
This method retrieves an enumeration of all the items currently in the cart and returns it. |
Methods in edu.uci.ics.inf111.dvdvendor.app with parameters of type Product | |
---|---|
void |
ProductDB.addItem(Product item)
This method is called to add items directly to the database in our example. |
void |
CheckOutCart.addItemToCart(Product newItem)
Add a single item to the cart, and add its cost to the running totals. |
Product |
CheckOutCart.lookUpItem(Product item)
This method looks up a product in the CheckOutCart. |
Method parameters in edu.uci.ics.inf111.dvdvendor.app with type arguments of type Product | |
---|---|
static void |
Utils.printDB(java.util.Hashtable<java.lang.String,Product> itemsInDB)
A utility method which prints the contents of the ProductDB to System.out |
Uses of Product in edu.uci.ics.inf111.dvdvendor.gui |
---|
Methods in edu.uci.ics.inf111.dvdvendor.gui that return Product | |
---|---|
protected Product |
Actions.addDVD(DVDVendor dvdVendor,
java.lang.String barCodeNumber)
Method that creates a new BarCode object with the barCodeNumber given as parameter, then it adds the BarCode to the DVDVendor object. |
Method parameters in edu.uci.ics.inf111.dvdvendor.gui with type arguments of type Product | |
---|---|
protected java.lang.String |
Actions.printShoppingCart(java.util.Enumeration<Product> listItemsInCart)
Method that prints the contents of the shopping cart This method is called internally for the GUI class and does not correspond to any external GUI action |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |