Uses of Class
cafe.main.ImportProduct

Packages that use ImportProduct
cafe.database   
cafe.gui   
cafe.gui.alertView   
cafe.gui.general.productLists   
cafe.gui.importView   
cafe.gui.interfaces   
cafe.gui.startView   
cafe.main   
 

Uses of ImportProduct in cafe.database
 

Methods in cafe.database that return ImportProduct
 ImportProduct[] DBCommunication.getAlerts()
          Method returns products in a list, where the products have alerts
 ImportProduct[] Database.getAlerts()
          Method returns products in a list, where the products have alerts
 

Methods in cafe.database with parameters of type ImportProduct
 void DBCommunication.importProduct(UserInfo user, ImportProduct product, double amount)
          Method for importing new products
 void Database.importProduct(UserInfo user, ImportProduct product, double amount)
          Method for importing new products
 void DBCommunication.insertAlert(ImportProduct product)
          Method inserts a alert for a product, if alert is already "valid", keeps the alert as valid if proiduct id found in db, sets the alert for it, if not found, no rows are updated
 void Database.insertAlert(ImportProduct product)
          Method inserts a alert for a product, if alert is already "valid", keeps the alert as valid
 void DBCommunication.removeAlert(ImportProduct product)
          Removes alert from a product if productId in db, updates that row, if no product found, does not update any rows
 void Database.removeAlert(ImportProduct product)
          Removes alert from a product
 

Uses of ImportProduct in cafe.gui
 

Methods in cafe.gui that return ImportProduct
 ImportProduct[] UserInterfaceEvent.getAlerts()
          Returns a list of all products that have an alert set.
 

Methods in cafe.gui with parameters of type ImportProduct
 void ViewEventInterface.alertProduct(ImportProduct product)
          Adds alert to specified product
 void GuiMain.alertProduct(ImportProduct product)
          Sets the product given as argument as the currently selected product in alert adding view.
 void ViewEventInterface.confirmImport(ImportProduct product, double amount)
          This method is used when the user confirms the importing of the product he has previously selected.
 void GuiMain.confirmImport(ImportProduct product, double amount)
          Credits user's account with the value of the import product of a certain size given as an argument.
 void ViewEventInterface.importProduct(ImportProduct product, double amount)
          Sets the currently selected product in import view.
 void GuiMain.importProduct(ImportProduct product, double amount)
          Sets the currently selected product in import view.
 void UserInterfaceEvent.importProduct(UserInfo user, ImportProduct product, double amount)
          Marks an import transaction to the given user and product.
 void UserInterfaceEvent.insertAlert(ImportProduct product)
          Inserts an alert to the given product to the database.
 void ViewEventInterface.removeAlert(ImportProduct product)
          Removes product alert from the product given as parameter
 void GuiMain.removeAlert(ImportProduct product)
          Removes product alert from the product given as parameter
 void UserInterfaceEvent.removeAlert(ImportProduct product)
          Removes the alert from the given product.
 

Uses of ImportProduct in cafe.gui.alertView
 

Methods in cafe.gui.alertView with parameters of type ImportProduct
 void AlertPanel.addSelectedProduct(ImportProduct product)
          Creates new CPanel and adds information of selected product.
 

Uses of ImportProduct in cafe.gui.general.productLists
 

Methods in cafe.gui.general.productLists with parameters of type ImportProduct
 void ImportProductChange.newProduct(ImportProduct product)
          Informs that a product was selected.
 void ImportableList.newProduct(ImportProduct product)
          Informs this panel that a product has been selected.
 void ImportProductChange.newProduct(ImportProduct product, double amount)
          Informs that a product was selected and also the selected import amount.
 void ImportableList.newProduct(ImportProduct product, double amount)
          Informs this panel that a product has been selected.
 

Uses of ImportProduct in cafe.gui.importView
 

Methods in cafe.gui.importView with parameters of type ImportProduct
 void ImportPanel.selectedProduct(ImportProduct product, double amount)
          Informs the panel that user has selected the given product and amount from the product list
 

Uses of ImportProduct in cafe.gui.interfaces
 

Methods in cafe.gui.interfaces with parameters of type ImportProduct
 void StartViewInterface.addAlert(ImportProduct[] products)
          Adds current product alerts to the start view so that they can be shown on the screen.
 void AlertViewInterface.addSelectedProduct(ImportProduct product)
          Notifies the implementing class of the product that user has selected from product list
 void ImportViewInterface.selectedProduct(ImportProduct product, double amount)
          Informs the implementing class that a certain product has been selected.
 

Uses of ImportProduct in cafe.gui.startView
 

Methods in cafe.gui.startView with parameters of type ImportProduct
 void StartPanel.addAlert(ImportProduct[] products)
          Adds current product alerts to the start view so that they can be shown on the screen.
 void StartPanel.removeAlertPackage(ImportProduct product)
          When user wants to remove alert, he presses a button that calls this method.
 void AlertEvent.removeAlertPackage(ImportProduct product)
          Removes alert inside package.
 

Constructors in cafe.gui.startView with parameters of type ImportProduct
RemoveButton(java.lang.String remove, ImportProduct product, AlertEvent event)
          Constructs RemoveButton
 

Uses of ImportProduct in cafe.main
 

Methods in cafe.main that return ImportProduct
 ImportProduct[] MainGuiHandler.getAlerts()
          Returns a list of all products that have an alert set.
 ImportProduct[] ProductGroup.getProducts()
          Returns the importable products that belong in this group.
 

Methods in cafe.main with parameters of type ImportProduct
 void MainGuiHandler.importProduct(UserInfo user, ImportProduct product, double amount)
          Marks an import transaction to the given user and product by calling Database interface's importProduct method.
 void MainGuiHandler.insertAlert(ImportProduct product)
          Inserts an alert to the given product to the database by calling Database interface's insertAlert method.
 void MainGuiHandler.removeAlert(ImportProduct product)
          Removes the alert from the given product by calling Database interface's removeAlert method.
 

Constructors in cafe.main with parameters of type ImportProduct
ProductGroup(java.lang.String[] groupname, ImportProduct[] products)
          Constructs a ProductGroup with the given parameters.