Package | Description |
---|---|
be.ac.ulb.infof307.g02.controllers | |
be.ac.ulb.infof307.g02.database | |
be.ac.ulb.infof307.g02.models | |
be.ac.ulb.infof307.g02.utils | |
be.ac.ulb.infof307.g02.views |
Modifier and Type | Method and Description |
---|---|
private java.util.List<Product> |
ImportArticlesController.getImportableProducts() |
java.util.List<Product> |
MapController.getProducts()
Returns a list of all the product available in the database.
|
Modifier and Type | Method and Description |
---|---|
void |
GroceryListController.onProductCreated(Product product)
Asks the view to add a newly created product to the choices
|
void |
ImportArticlesController.onProductCreated(Product product)
Tells the view that a new product has been created
|
void |
ProductCreationObserver.onProductCreated(Product createdProduct) |
Modifier and Type | Method and Description |
---|---|
Product |
ProductDB.getProduct(java.lang.String productName)
Retrieve the product "productName" from the database
|
static Product |
ProductDB.getProductFromResultSet(java.sql.ResultSet result)
Creates a product from the information in the given ResultSet
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Product> |
ProductDB.getAllProducts()
Retrieve all the products from the database
|
Modifier and Type | Method and Description |
---|---|
void |
ProductDB.addProduct(Product product)
Add a product in the database
|
Modifier and Type | Field and Description |
---|---|
private Product |
Article.product |
private Product |
ProductAmount.product |
Modifier and Type | Field and Description |
---|---|
private java.util.List<Product> |
FilterData.productList
A list of products the shops must sell
|
private java.util.Map<Product,Article> |
Shop.stock |
Modifier and Type | Method and Description |
---|---|
Product |
Article.getProduct() |
Product |
ProductAmount.getProduct() |
Modifier and Type | Method and Description |
---|---|
java.util.List<Product> |
FilterData.getProductList() |
java.util.Set<Product> |
Shop.getProducts() |
java.util.List<Product> |
GroceryList.getProductsList()
Gets a list of all the products contained in the productAmountList.
|
java.util.Map<Product,Article> |
Shop.getStock() |
Modifier and Type | Method and Description |
---|---|
double |
Shop.getProductPrice(Product product) |
boolean |
Shop.hasProduct(Product product) |
Modifier and Type | Method and Description |
---|---|
private void |
ShopFilterer.filterShopsByProducts(java.util.List<Product> productList)
Removes the shops that don't contains all the productList
|
boolean |
Shop.sellAllProducts(java.util.List<Product> productsList) |
Constructor and Description |
---|
Article(Product product,
double price) |
Product(Product product)
Copy constructor.
|
ProductAmount(Product product,
double amount) |
Constructor and Description |
---|
FilterData(java.lang.String name,
int maxDistance,
java.util.List<Day> openingDays,
Time openingTime,
java.util.List<Product> productList) |
Shop(int id,
java.lang.String name,
Schedule schedule,
Position position,
java.util.Map<Product,Article> stock)
Construct the Shop given the ID (from the database).
|
Shop(java.lang.String name,
Schedule schedule,
Position position,
java.util.Map<Product,Article> stock)
Construct the Shop without a real ID (indicated by having ID=1).
|
Modifier and Type | Method and Description |
---|---|
javafx.util.Pair<Product,java.lang.Double> |
ArticleConverter.toProductDoublePair(Article toConvert) |
javafx.util.Pair<Product,java.lang.Double> |
ProductAmountConverter.toProductDoublePair(ProductAmount toConvert) |
javafx.util.Pair<Product,java.lang.Double> |
ProductDoublePairConverter.toProductDoublePair(T toConvert) |
Modifier and Type | Method and Description |
---|---|
Article |
ArticleConverter.toObject(javafx.util.Pair<Product,java.lang.Double> pair) |
T |
ProductDoublePairConverter.toObject(javafx.util.Pair<Product,java.lang.Double> pair) |
ProductAmount |
ProductAmountConverter.toObject(javafx.util.Pair<Product,java.lang.Double> pair) |
Modifier and Type | Field and Description |
---|---|
private java.util.List<org.controlsfx.control.PrefixSelectionComboBox<Product>> |
ListComponent.comboBoxes |
private javafx.collections.ObservableList<Product> |
ListComponent.obsAllProductList |
private com.jfoenix.controls.JFXChipView<Product> |
MapView.stockContainer |
Modifier and Type | Method and Description |
---|---|
private org.controlsfx.control.PrefixSelectionComboBox<Product> |
ListComponent.addProductComboBox(javafx.scene.layout.HBox listItem,
Product product)
Adds the ComboBox used to select a product in a List Item
|
private java.util.List<javafx.util.Pair<Product,java.lang.Double>> |
ListComponent.getProductDoublePairs()
Gets a list of (poduct, double) pairs, there is an item in the list for each element of the component
|
Modifier and Type | Method and Description |
---|---|
void |
ListComponent.addNewProduct(Product newProduct)
Adds a new product in all the comboBoxes
|
void |
GroceryListView.addNewProduct(Product product)
Adds a new product to the listComponent
|
void |
ImportArticlesView.addNewProduct(Product product) |
private org.controlsfx.control.PrefixSelectionComboBox<Product> |
ListComponent.addProductComboBox(javafx.scene.layout.HBox listItem,
Product product)
Adds the ComboBox used to select a product in a List Item
|
void |
ListComponent.removeProduct(Product product)
Taking a product as parameter, this function removes the product from the list component
|
void |
ImportArticlesView.removeProduct(Product product) |
Modifier and Type | Method and Description |
---|---|
private void |
ListComponent.addAvailabilityButton(javafx.scene.layout.HBox hBox,
org.controlsfx.control.PrefixSelectionComboBox<Product> productComboBox,
javafx.scene.control.Spinner<java.lang.Double> spinner)
Adds the availability Button in the HBox representing an item of the list.
|
private void |
ListComponent.addDeleteListItemButton(javafx.scene.layout.HBox listItem,
org.controlsfx.control.PrefixSelectionComboBox<Product> productComboBox,
javafx.scene.control.Spinner<java.lang.Double> spinner)
Adds The Delete Button in a List Item
|
private void |
ListComponent.addNutritionalButton(javafx.scene.layout.HBox listItem,
org.controlsfx.control.PrefixSelectionComboBox<Product> productComboBox,
javafx.scene.control.Spinner<java.lang.Double> spinner)
Creates and adds a button to get the nutritional value of a certain product.
|
void |
AvailabilityChecker.checkListOfProductsAvailability(java.util.List<Product> products) |
void |
GroceryListView.checkListOfProductsAvailability(java.util.List<Product> products)
Checks if a list of product are available in some shops
|
private javafx.scene.layout.HBox |
ListComponent.createListItem(javafx.util.Pair<Product,java.lang.Double> productWithDouble)
Creates a list Item on the base of a Pair (Product, Double).
|
Constructor and Description |
---|
GroceryListView(GroceryListController controller,
javafx.scene.Scene scene,
GroceryList groceryList,
java.util.List<Product> allProductsList) |
ImportArticlesView(ImportArticlesController controller,
javafx.scene.Scene scene,
java.util.List<Product> importableProducts)
Constructor: Initializes the import window, disable the "help" button is the popup is already opened.
|
ListComponent(javafx.scene.layout.VBox globalContainer,
java.util.List<Product> allProductsList,
java.util.List<T> itemList,
ProductDoublePairConverter<T> converter,
boolean canCheckProductAvailability,
AvailabilityChecker availabilityChecker,
boolean canShowNutritionalValues,
NutritionalValuesController nutritionalValuesController)
Constructs a ListComponent in a Container (VBox) and initializes it
|
ListComponent(javafx.scene.layout.VBox globalContainer,
java.util.List<Product> allProductsList,
java.util.List<T> itemList,
ProductDoublePairConverter<T> converter,
NutritionalValuesController nutritionalValuesController) |
ListComponent(javafx.scene.layout.VBox globalContainer,
java.util.List<Product> productList,
ProductDoublePairConverter<T> converter) |
RecipeView(RecipeController controller,
javafx.scene.Scene scene,
Recipe recipe,
java.util.List<Product> allProductsList) |