Index

A B C D E F G H I K L M N O P R S T U V W Y 
All Classes and Interfaces|All Packages

A

ACTIVITIES - Enum constant in enum class no.ntnu.idatt1002.demo.data.economics.ExpenseCategory
Expenditures on activities, such as a bowling night.
addAmountInvested(double) - Method in class no.ntnu.idatt1002.demo.data.budget.SavingsGoal
Adding an amount to the amountInvested of the SavingsGoal.
AddBudgetController - Class in no.ntnu.idatt1002.demo.controller
Class that represents the popup dialog box that appears whenever a budget item is to be added or edited.
AddBudgetController() - Constructor for class no.ntnu.idatt1002.demo.controller.AddBudgetController
 
addBudgetName(String) - Method in class no.ntnu.idatt1002.demo.data.budget.BudgetRegister
Method for adding a budget name to the register.
AddExpenseController - Class in no.ntnu.idatt1002.demo.controller
Class that represents the popup dialog box that appears whenever an expense is to be added or edited.
AddExpenseController() - Constructor for class no.ntnu.idatt1002.demo.controller.AddExpenseController
 
AddIncomeController - Class in no.ntnu.idatt1002.demo.controller
Class that represents the popup dialog box that appears whenever an income is to be added or edited.
AddIncomeController() - Constructor for class no.ntnu.idatt1002.demo.controller.AddIncomeController
 
addIngredient(FoodItem) - Method in class no.ntnu.idatt1002.demo.data.recipes.IngredientsAtHand
The method takes in an ingredient object and adds it to the collection of ingredients at hand.
addIngredient(FoodItem, double, MeasuringUnit) - Method in class no.ntnu.idatt1002.demo.data.recipes.Recipe
The method adds an ingredient to the recipe if it is not already in the recipe, in which case the existing ingredient of the same food type is updated with the parameters provided to this method.
AddIngredientController - Class in no.ntnu.idatt1002.demo.controller
The AddIngredientController manages a dialog pane used to display a search-field along with a list of all the possible food types in the application according to the FoodItem enum class.
AddIngredientController() - Constructor for class no.ntnu.idatt1002.demo.controller.AddIngredientController
 
addItem(T) - Method in class no.ntnu.idatt1002.demo.data.economics.ItemRegister
Add a new item to the register.
addRecipe(Recipe) - Method in class no.ntnu.idatt1002.demo.data.recipes.RecipeRegister
The method takes in a Recipe object.
addSavingsGoal(SavingsGoal) - Method in class no.ntnu.idatt1002.demo.data.budget.Savings
Add a SavingsGoal to Savings.
addToBudget(double, String, ExpenseCategory) - Method in class no.ntnu.idatt1002.demo.data.budget.GeneralBudget
This method takes in a double budgetAmount, String description and a String category to create.
addToBudgetBudgetItem(BudgetItem) - Method in class no.ntnu.idatt1002.demo.data.budget.GeneralBudget
This method adds a budgetItem to the list of budgetItems in the generalBudget.
addToSavings(double) - Method in class no.ntnu.idatt1002.demo.data.budget.GeneralBudget
Assign an amount to savings.
addToSavings(double) - Method in class no.ntnu.idatt1002.demo.data.budget.Savings
Add an amount to Savings.
addToSavingsGoal(int, SavingsGoal) - Method in class no.ntnu.idatt1002.demo.data.budget.Savings
Method for adding an amount to a SavingsGoal.
addUnusedCategories() - Method in class no.ntnu.idatt1002.demo.data.budget.GeneralBudget
Method that adds the remaining, unused categories to the budget list.
AllRecipesController - Class in no.ntnu.idatt1002.demo.controller
The AllRecipesController manages the view named AllRecipes.fxml that displays a scrollable list of all the recipes that are stored in the recipe register at 'src/main/resources/recipes/Recipes.register'.
AllRecipesController() - Constructor for class no.ntnu.idatt1002.demo.controller.AllRecipesController
 
amountProperty() - Method in class no.ntnu.idatt1002.demo.data.economics.Item
Gets the Double Property of the amount.
App - Class in no.ntnu.idatt1002.demo.view
The class from which the main application is called upon.
App() - Constructor for class no.ntnu.idatt1002.demo.view.App
 
atHand(FoodItem) - Method in class no.ntnu.idatt1002.demo.data.recipes.IngredientsAtHand
The method takes in a constant of the FoodType enum class and checks if it is present in the collection.
AVOCADO - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Avocado.

B

BAY_LEAF - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Bay leaf.
BELL_PEPPER - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Bell pepper.
BOOKS - Enum constant in enum class no.ntnu.idatt1002.demo.data.economics.ExpenseCategory
Expenditures on books.
BREADCRUMBS - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Bread crumbs.
BROCCOLI - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Broccoli.
BROTH - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Broth.
BudgetBarController - Class in no.ntnu.idatt1002.demo.controller
The BudgetBarController manages the component view BudgetBar.fxml that may be dynamically loaded to other views.
BudgetBarController() - Constructor for class no.ntnu.idatt1002.demo.controller.BudgetBarController
 
BudgetController - Class in no.ntnu.idatt1002.demo.controller
Controller for budget scene in the application.
BudgetController() - Constructor for class no.ntnu.idatt1002.demo.controller.BudgetController
 
BudgetItem - Class in no.ntnu.idatt1002.demo.data.budget
This class represents a budgetItem.
BudgetItem(double, String, ExpenseCategory) - Constructor for class no.ntnu.idatt1002.demo.data.budget.BudgetItem
The constructor of a new Budgetitem.
BudgetRegister - Class in no.ntnu.idatt1002.demo.data.budget
Class for containing and organizing budget names.
BudgetRegister() - Constructor for class no.ntnu.idatt1002.demo.data.budget.BudgetRegister
Constructor for the register.
BUTTER - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Butter.

C

CAN - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.MeasuringUnit
Can.
cancelBtn - Variable in class no.ntnu.idatt1002.demo.controller.CreateBudgetController
The cancel button in the dialog window.
CANNED_TOMATO - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Canned tomato.
CARROT - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Carrot.
CB - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.MeasuringUnit
Cubes.
CELERY - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Celery.
CHICKPEAS - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Chickpeas.
CHILLI - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Chili.
CHILLI_BEANS - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Chili beans.
CHILLI_POWDER - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Chili powder.
clearSelectedBudget(String) - Static method in class no.ntnu.idatt1002.demo.data.budget.FileHandlingSelectedBudget
Clears the entire file that holds the current budget.
closeButton(ActionEvent) - Method in class no.ntnu.idatt1002.demo.controller.FirstMenuController
Method that closes the first menu.
CLOTHES - Enum constant in enum class no.ntnu.idatt1002.demo.data.economics.ExpenseCategory
Expenditures on clothes.
CREAM - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Cream.
createBudget(ActionEvent) - Method in class no.ntnu.idatt1002.demo.controller.FirstMenuController
Brings up popup for creating a new budget.
CreateBudgetController - Class in no.ntnu.idatt1002.demo.controller
Controller for the create budget scene in the application.
CreateBudgetController() - Constructor for class no.ntnu.idatt1002.demo.controller.CreateBudgetController
 
createBudgetDirectory(String) - Static method in class no.ntnu.idatt1002.demo.data.budget.FileHandlingSelectedBudget
Method for creating a new directory for a newly created budget.
createNewBudgetFile(String, String) - Static method in class no.ntnu.idatt1002.demo.data.budget.FileHandlingSelectedBudget
Method for creating a file holding all income data.
createNewExpenseFile(String, String) - Static method in class no.ntnu.idatt1002.demo.data.budget.FileHandlingSelectedBudget
Method for creating a file holding all expense data.
createNewFiles(String) - Method in class no.ntnu.idatt1002.demo.controller.CreateBudgetController
Method for creating a new directory for the newly created budget, along with three files for storing budget, income and expense data.
createNewIncomeFile(String, String) - Static method in class no.ntnu.idatt1002.demo.data.budget.FileHandlingSelectedBudget
Method for creating a file holding all income data.
createPieChart() - Method in class no.ntnu.idatt1002.demo.controller.BudgetController
Method for creating a list of data used for graphing budgets in a pie chart.
CUCUMBER - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Cucumber.
CUMIN_POWDER - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Cumin powder.

D

dateProperty() - Method in class no.ntnu.idatt1002.demo.data.economics.Item
The method returns the ObjectProperty of date.
deleteBudgetDirectory(String) - Static method in class no.ntnu.idatt1002.demo.data.budget.FileHandlingSelectedBudget
Method for deleting a budget directory which holds all budget, income and expense data for a particular budget.
deleteItemFromBudget(ExpenseCategory) - Method in class no.ntnu.idatt1002.demo.data.budget.GeneralBudget
This method deletes a budgetItem from the list in the GeneralBudget.
descriptionProperty() - Method in class no.ntnu.idatt1002.demo.data.economics.Item
Gets the String Property of the description.
DL - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.MeasuringUnit
Deciliter.
DRY_BASIL - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Dry basil.
DRY_OREGANO - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Dry oregano.
DRY_THYME - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Dry thyme.

E

EGG - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Egg.
equals(Object) - Method in class no.ntnu.idatt1002.demo.data.budget.BudgetItem
 
equals(Object) - Method in class no.ntnu.idatt1002.demo.data.budget.GeneralBudget
 
equals(Object) - Method in class no.ntnu.idatt1002.demo.data.economics.Expense
 
equals(Object) - Method in class no.ntnu.idatt1002.demo.data.economics.Income
 
equals(Object) - Method in class no.ntnu.idatt1002.demo.data.economics.Item
 
equals(Object) - Method in class no.ntnu.idatt1002.demo.data.recipes.Ingredient
The method checks if a given object is equal to the ingredient object.
equals(Object) - Method in class no.ntnu.idatt1002.demo.data.recipes.Recipe
The method takes in another Object and checks whether it is equal to the current recipe object.
exitWindow(ActionEvent) - Method in class no.ntnu.idatt1002.demo.controller.SelectBudgetController
Closes the dialog box and clears the currently selected budget.
Expense - Class in no.ntnu.idatt1002.demo.data.economics
This class represents an expense.
Expense(double, boolean, ExpenseCategory, LocalDate) - Constructor for class no.ntnu.idatt1002.demo.data.economics.Expense
This constructor uses the super constructor to set the fields for 'amount' and 'recurring' and then sets the category.
Expense(String, double, boolean, ExpenseCategory, LocalDate) - Constructor for class no.ntnu.idatt1002.demo.data.economics.Expense
This constructor uses the super constructor to set the fields for 'amount', 'description' and 'recurring' and then sets the category.
ExpenseCategory - Enum Class in no.ntnu.idatt1002.demo.data.economics
This class represents various types of expenditures that a user can choose from.
expenseCategoryObjectProperty() - Method in class no.ntnu.idatt1002.demo.data.economics.Expense
Gets an Object Property of the Expense Category.
ExpenseRegister - Class in no.ntnu.idatt1002.demo.data.economics
ExpenseRegister is a class for storing Expenses.
ExpenseRegister() - Constructor for class no.ntnu.idatt1002.demo.data.economics.ExpenseRegister
Class constructor that creates an empty List for storing Expense.
ExpenseRegister(List<Expense>) - Constructor for class no.ntnu.idatt1002.demo.data.economics.ExpenseRegister
Class constructor that takes in a List of Expense as argument.

F

FileHandler - Class in no.ntnu.idatt1002.demo.data.recipes
The FileHandler class is a static class that handles reading and writing to the .register files for storing dinner recipes and ingredients at hand.
FileHandler() - Constructor for class no.ntnu.idatt1002.demo.data.recipes.FileHandler
 
FileHandling - Class in no.ntnu.idatt1002.demo.data.economics
FileHandling is a class for writing and reading ItemRegister-objects to and from a file.
FileHandling() - Constructor for class no.ntnu.idatt1002.demo.data.economics.FileHandling
 
FileHandlingBudget - Class in no.ntnu.idatt1002.demo.data.budget
FileHandling is a class for writing and reading Budgets to and from a file.
FileHandlingBudget() - Constructor for class no.ntnu.idatt1002.demo.data.budget.FileHandlingBudget
 
FileHandlingBudgetArchive - Class in no.ntnu.idatt1002.demo.data.budget
Class that handles the reading and writing to the budget archive file, which contains all existing budget projects.
FileHandlingBudgetArchive() - Constructor for class no.ntnu.idatt1002.demo.data.budget.FileHandlingBudgetArchive
 
FileHandlingSelectedBudget - Class in no.ntnu.idatt1002.demo.data.budget
Class that holds the responsibility of any action relating to the SelectedBudget.current file which holds the budget name of the budget that currently is viewed.
FileHandlingSelectedBudget() - Constructor for class no.ntnu.idatt1002.demo.data.budget.FileHandlingSelectedBudget
 
FinanceController - Class in no.ntnu.idatt1002.demo.controller
Abstract class for controllers that control scenes with finance tableviews.
FinanceController() - Constructor for class no.ntnu.idatt1002.demo.controller.FinanceController
 
FirstMenuController - Class in no.ntnu.idatt1002.demo.controller
Controller for the FirstMenu view.
FirstMenuController() - Constructor for class no.ntnu.idatt1002.demo.controller.FirstMenuController
 
FISH - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Fish.
FOOD - Enum constant in enum class no.ntnu.idatt1002.demo.data.economics.ExpenseCategory
Expenditures on food, such as groceries.
FoodItem - Enum Class in no.ntnu.idatt1002.demo.data.recipes
The FoodItem enum class defines a set of food types that may be serving as ingredients in recipes and that the user may, or may not, have available in the cupboard, fridge or freezer.
formatDatePicker() - Method in class no.ntnu.idatt1002.demo.controller.BudgetController
Method for disabling the date picker, yet having its opacity at max.
formatDatePicker() - Method in class no.ntnu.idatt1002.demo.controller.IncomeExpenseController
Method for disabling the date picker, yet having its opacity at max.
formatIngredientList(List<RecipeIngredient>) - Static method in class no.ntnu.idatt1002.demo.data.recipes.FileHandler
The method supports the 'formatRecipe' method by receiving a list of ingredient objects and returning a String at the correct format for the writing to file.
formatRecipe(Recipe) - Static method in class no.ntnu.idatt1002.demo.data.recipes.FileHandler
The method supports the method for writing a recipe register to file by taking in a single recipe object and return it as a String at the correct format for storage.
FRESH_BASIL - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Fresh basil.
FRESH_YEAST - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Fresh yeast.
FROZEN_GREEN_PEAS - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Frozen green peas.

G

GARLIC_CLOVE - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Garlic clove.
GeneralBudget - Class in no.ntnu.idatt1002.demo.data.budget
Class that represents GeneralBudget.
GeneralBudget(double) - Constructor for class no.ntnu.idatt1002.demo.data.budget.GeneralBudget
Class constructor that creates an empty ArrayList for storing BudgetItems.
GeneralBudget(List<BudgetItem>, double) - Constructor for class no.ntnu.idatt1002.demo.data.budget.GeneralBudget
Class constructor.
GeneralBudget(List<BudgetItem>, double, Savings) - Constructor for class no.ntnu.idatt1002.demo.data.budget.GeneralBudget
Constructor for a general budget, which is an entire budget project, set for a given month.
getAchievedSavingsGoal() - Method in class no.ntnu.idatt1002.demo.data.budget.Savings
A List of all SavingsGoal that are achieved.
getAmount() - Method in class no.ntnu.idatt1002.demo.data.budget.Savings
Get the amount.
getAmount() - Method in class no.ntnu.idatt1002.demo.data.economics.Item
The method returns the price of the given Item object as a float.
getAmount() - Method in class no.ntnu.idatt1002.demo.data.recipes.Ingredient
The method returns the amount of an ingredient as the datatype double.
getAmountGoal() - Method in class no.ntnu.idatt1002.demo.data.budget.SavingsGoal
Getting the amount needed to achieve the SavingsGoal.
getAmountInvested() - Method in class no.ntnu.idatt1002.demo.data.budget.SavingsGoal
Getting the amount invested into the SavingsGoal.
getAmountProperty() - Method in class no.ntnu.idatt1002.demo.data.budget.BudgetItem
Gets the amount property of its corresponding amount value.
getBudget() - Method in class no.ntnu.idatt1002.demo.data.economics.Overview
Get the GeneralBudget of the Overview.
getBudgetAmount() - Method in class no.ntnu.idatt1002.demo.data.budget.BudgetItem
This method gets the BudgetAmount.
getBudgetCategory() - Method in class no.ntnu.idatt1002.demo.data.budget.BudgetItem
This method gets the category.
getBudgetDescription() - Method in class no.ntnu.idatt1002.demo.data.budget.BudgetItem
This method gets the description.
getBudgetItem(ExpenseCategory) - Method in class no.ntnu.idatt1002.demo.data.budget.GeneralBudget
Method for getting a Specific BudgetItem from budgetItems.
getBudgetItemMinusExpense(ExpenseCategory) - Method in class no.ntnu.idatt1002.demo.data.economics.Overview
Method for getting Expense subtracted from a BudgetItem for a specific ExpenseCategory.
getBudgetItems() - Method in class no.ntnu.idatt1002.demo.data.budget.GeneralBudget
Method for getting budgetItems.
getBudgetNames() - Method in class no.ntnu.idatt1002.demo.data.budget.BudgetRegister
Gets a list of the budget names contained in the budget register.
getBudgetPeriod() - Method in class no.ntnu.idatt1002.demo.data.budget.GeneralBudget
Returns the amount of days the budget will last for.
getCategory() - Method in class no.ntnu.idatt1002.demo.controller.AddBudgetController
Gets the category value from the category combo box.
getCategory() - Method in class no.ntnu.idatt1002.demo.controller.AddExpenseController
Gets the value of the category box.
getCategory() - Method in class no.ntnu.idatt1002.demo.controller.AddIncomeController
Gets the value of the category box.
getCategory() - Method in class no.ntnu.idatt1002.demo.data.economics.Expense
The method returns the category to which the Expense belongs as a value of the ExpenseCategory enum class.
getCategory() - Method in class no.ntnu.idatt1002.demo.data.economics.Income
The method returns the category to which the Income belongs as a value of the IncomeCategory enum.
getCategoryProperty() - Method in class no.ntnu.idatt1002.demo.data.budget.BudgetItem
Gets the category property of its corresponding category value.
getChosenBudgetCategories() - Method in class no.ntnu.idatt1002.demo.data.budget.GeneralBudget
Method that gets the chosen budget categories.
getDate() - Method in class no.ntnu.idatt1002.demo.data.economics.Item
The method returns the date of the item object (income/expense).
getDaysLeftOfBudgetPeriod() - Method in class no.ntnu.idatt1002.demo.data.budget.GeneralBudget
Returns the amount of days left in the budget period as a long.
getDescription() - Method in class no.ntnu.idatt1002.demo.data.budget.SavingsGoal
Getting the description of the SavingsGoal.
getDescription() - Method in class no.ntnu.idatt1002.demo.data.economics.Item
The method returns the description of the given Item object as a String.
getDescriptionProperty() - Method in class no.ntnu.idatt1002.demo.data.budget.BudgetItem
Gets the description property of its corresponding description value.
getExpenseByCategory(ExpenseCategory) - Method in class no.ntnu.idatt1002.demo.data.economics.ExpenseRegister
Method for getting every Expense in a given ExpenseCategory.
getExpenseByMonth(YearMonth) - Method in class no.ntnu.idatt1002.demo.data.economics.ExpenseRegister
Get the Expenses that are registered with a date corresponding to the given month and year.
getExpenseRegister() - Method in class no.ntnu.idatt1002.demo.data.economics.Overview
Get the ExpenseRegister of the Overview.
getFoodType() - Method in class no.ntnu.idatt1002.demo.data.recipes.Ingredient
The method returns the food type that the ingredient belongs to among the valid types in the FoodItem enum class.
getIncomeByCategory(IncomeCategory) - Method in class no.ntnu.idatt1002.demo.data.economics.IncomeRegister
Method for getting every Income in a given IncomeCategory.
getIncomeByMonth(YearMonth) - Method in class no.ntnu.idatt1002.demo.data.economics.IncomeRegister
Get the Income that are registered with a date corresponding to the given month and year.
getIncomeRegister() - Method in class no.ntnu.idatt1002.demo.data.economics.Overview
Get the IncomeRegister of the Overview.
getIngredient(FoodItem) - Method in class no.ntnu.idatt1002.demo.data.recipes.Recipe
The method takes in a constant of the FoodItem enum class and searches for it among the recipe's ingredients.
getIngredientList() - Method in class no.ntnu.idatt1002.demo.data.recipes.Recipe
The method returns the list of RecipeIngredients that the recipe consists of.
getIngredientsAtHand() - Method in class no.ntnu.idatt1002.demo.data.recipes.IngredientsAtHand
The method returns the collection of ingredients at hand as an arraylist of FoodItem enum constants.
getInstructions() - Method in class no.ntnu.idatt1002.demo.data.recipes.Recipe
The method returns the instructions of the recipe.
getItems() - Method in class no.ntnu.idatt1002.demo.data.economics.ItemRegister
Get a List of every item.
getMaxAmount() - Method in class no.ntnu.idatt1002.demo.data.budget.GeneralBudget
Method for getting the maxAmount of the GeneralBudget.
getMissingIngredients() - Method in class no.ntnu.idatt1002.demo.data.recipes.Recipe
The method returns the property 'missingIngredients' of the recipe.
getMissingList() - Method in class no.ntnu.idatt1002.demo.data.recipes.Recipe
The method returns an ArrayList of Strings representing each of the food types that the recipe is missing relative to the collection of ingredients at hand last updated for.
getName() - Method in class no.ntnu.idatt1002.demo.data.recipes.Recipe
The method returns the name of the recipe.
getNewBudgetItem() - Method in class no.ntnu.idatt1002.demo.controller.AddBudgetController
Gets the newly created budget item.
getNewExpense() - Method in class no.ntnu.idatt1002.demo.controller.AddExpenseController
Gets the newly created expense.
getNewIncome() - Method in class no.ntnu.idatt1002.demo.controller.AddIncomeController
Gets the newly created income.
getPercentageOfTotalBalance(double) - Method in class no.ntnu.idatt1002.demo.data.economics.Overview
Method for getting a percentage of the total revenue.
getRecipe(String) - Method in class no.ntnu.idatt1002.demo.data.recipes.RecipeRegister
The method takes in a string with the name of a recipe and returns that recipe object if it is in the recipe register.
getRecipes() - Method in class no.ntnu.idatt1002.demo.data.recipes.RecipeRegister
The method returns the list of recipes in the Register.
getRecurringExpense() - Method in class no.ntnu.idatt1002.demo.data.economics.ExpenseRegister
Get the Expenses that are recurring.
getRecurringIncome() - Method in class no.ntnu.idatt1002.demo.data.economics.IncomeRegister
Get the Income that are recurring.
getSavings() - Method in class no.ntnu.idatt1002.demo.data.budget.GeneralBudget
Method for getting Savings.
getSavingsGoal(SavingsGoal) - Method in class no.ntnu.idatt1002.demo.data.budget.Savings
Get a specific SavingsGoal from savingsGoals.
getSavingsGoals() - Method in class no.ntnu.idatt1002.demo.data.budget.Savings
Get List of SavingsGoals.
getTotalBalance() - Method in class no.ntnu.idatt1002.demo.data.economics.Overview
Get the total revenue of overview.
getTotalSavings() - Method in class no.ntnu.idatt1002.demo.data.budget.Savings
Get the total amount invested into SavingsGoals and the amount that is unused.
getTotalSum() - Method in class no.ntnu.idatt1002.demo.data.economics.ItemRegister
Get the sum of all T´s=(Income or Expenses) in items.
getUnit() - Method in class no.ntnu.idatt1002.demo.data.recipes.Ingredient
The method returns the unit of measure of the ingredient as a value of the MeasuringUnit enum class.
GIFT - Enum constant in enum class no.ntnu.idatt1002.demo.data.economics.IncomeCategory
Monetary gifts.
GINGER - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Ginger.
GR - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.MeasuringUnit
Gram.

H

HAM - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Ham.
handleAddBtn(ActionEvent) - Method in class no.ntnu.idatt1002.demo.controller.BudgetController
Method for handling button presses on the add button.
handleAddBtn(ActionEvent) - Method in class no.ntnu.idatt1002.demo.controller.IncomeExpenseController
Method for handling the adding of new entries in the tableview.
handleDeleteBtn(ActionEvent) - Method in class no.ntnu.idatt1002.demo.controller.BudgetController
Deletes an entry from the tableview, if an entry has been selected.
handleDeleteBtn(ActionEvent) - Method in class no.ntnu.idatt1002.demo.controller.IncomeExpenseController
Deletes an entry from the tableview, if an entry has been selected.
handleEditBtn(ActionEvent) - Method in class no.ntnu.idatt1002.demo.controller.BudgetController
Adds or edits a budget item, depending on what mode the DialogMode enum is at.
handleEditBtn(ActionEvent) - Method in class no.ntnu.idatt1002.demo.controller.IncomeExpenseController
Method for handling the editing of a chosen entry in the tableview.
hasBudgetCategory(ExpenseCategory) - Method in class no.ntnu.idatt1002.demo.data.budget.GeneralBudget
This method checks if the list in the generalBudget already contains a budgetItem with a specified category.
hashCode() - Method in class no.ntnu.idatt1002.demo.data.budget.BudgetItem
 
hashCode() - Method in class no.ntnu.idatt1002.demo.data.budget.GeneralBudget
 
hashCode() - Method in class no.ntnu.idatt1002.demo.data.economics.Expense
 
hashCode() - Method in class no.ntnu.idatt1002.demo.data.economics.Income
 
hashCode() - Method in class no.ntnu.idatt1002.demo.data.economics.Item
 
hashCode() - Method in class no.ntnu.idatt1002.demo.data.recipes.Recipe
The method returns a standard hash-code based on the recipe's name, ingredient list and instructions.
hasSavingsGoal(SavingsGoal) - Method in class no.ntnu.idatt1002.demo.data.budget.Savings
Method to check if savingsGoals contains a specific SavingsGoal.
hasUsedUpBudgetItem(ExpenseCategory) - Method in class no.ntnu.idatt1002.demo.data.economics.Overview
Method for checking if you have used up a specific BudgetItem.
HEALTH - Enum constant in enum class no.ntnu.idatt1002.demo.data.economics.ExpenseCategory
Expenditures on health.
HONEY - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Honey.

I

Income - Class in no.ntnu.idatt1002.demo.data.economics
The Income class inherits from the Item class.
Income(double, boolean, IncomeCategory, LocalDate) - Constructor for class no.ntnu.idatt1002.demo.data.economics.Income
This constructor uses the super constructor to set the fields for 'amount' and 'recurring' and then sets the category.
Income(String, double, boolean, IncomeCategory, LocalDate) - Constructor for class no.ntnu.idatt1002.demo.data.economics.Income
This constructor uses the super constructor to set the fields for 'amount', 'description' and 'recurring' and then sets the category.
IncomeCategory - Enum Class in no.ntnu.idatt1002.demo.data.economics
This class represents various types of income that a user can choose from.
incomeCategoryObjectProperty() - Method in class no.ntnu.idatt1002.demo.data.economics.Income
Gets the ObjectProperty of the category value.
IncomeExpenseController - Class in no.ntnu.idatt1002.demo.controller
Class for representing an overview of the income and expenses of the users budget.
IncomeExpenseController() - Constructor for class no.ntnu.idatt1002.demo.controller.IncomeExpenseController
 
IncomeRegister - Class in no.ntnu.idatt1002.demo.data.economics
IncomeRegister is a class for storing Income.
IncomeRegister() - Constructor for class no.ntnu.idatt1002.demo.data.economics.IncomeRegister
Class constructor that creates an empty List for storing Income.
IncomeRegister(List<Income>) - Constructor for class no.ntnu.idatt1002.demo.data.economics.IncomeRegister
Class constructor that takes in a List of Income as argument.
Ingredient - Class in no.ntnu.idatt1002.demo.data.recipes
The Ingredient class represents an ingredient that can be part of a recipe in real life and/or be available to the user in real life.
Ingredient(FoodItem, double, MeasuringUnit) - Constructor for class no.ntnu.idatt1002.demo.data.recipes.Ingredient
The constructor of a new Ingredient object takes in three mandatory fields; ingredient type as defined in the enum class FoodItem, an amount and a unit of measure defined in the enum class MeasuringUnit.
IngredientsAtHand - Class in no.ntnu.idatt1002.demo.data.recipes
The class holds a collection of FoodItem constants in an ArrayList that represents the groceries that the user has available in real life.
IngredientsAtHand() - Constructor for class no.ntnu.idatt1002.demo.data.recipes.IngredientsAtHand
 
IngredientTileController - Class in no.ntnu.idatt1002.demo.controller
The IngredientTileController manages a simple pane component view called IngredientTile.fxml that is used to dynamically load ingredients into a view to present all details of a recipe.
IngredientTileController() - Constructor for class no.ntnu.idatt1002.demo.controller.IngredientTileController
 
initialize() - Method in class no.ntnu.idatt1002.demo.controller.AddBudgetController
Initializes the category drop box by filling it with all the values from the ExpenseCategory enum.
initialize() - Method in class no.ntnu.idatt1002.demo.controller.AddExpenseController
Initializes the category and recurring drop boxes by filling them with all the values from the ExpenseCategory enum, and the boolean values respectively, and the datepicker calendar.
initialize() - Method in class no.ntnu.idatt1002.demo.controller.AddIncomeController
Initializes the category and recurring drop boxes by filling them with all the values from the IncomeCategory enum, and the boolean values respectively, and the datepicker calendar.
initialize() - Method in class no.ntnu.idatt1002.demo.controller.BudgetController
Initializes the budget register, the observable budget list and the tableview, along with the values of the dropbox used for filtering the tableview.
initialize() - Method in class no.ntnu.idatt1002.demo.controller.CreateBudgetController
Initializes the window.
initialize() - Method in class no.ntnu.idatt1002.demo.controller.FirstMenuController
Initializes as soon as the scene is loaded.
initialize() - Method in class no.ntnu.idatt1002.demo.controller.IncomeExpenseController
Initializes the window that is controlled by the controller.
initialize() - Method in class no.ntnu.idatt1002.demo.controller.MainMenuController
Initializes the registers and overviews in addition to all dynamic labels and progress bars.
initialize() - Method in class no.ntnu.idatt1002.demo.controller.SelectBudgetController
Initializes the view when it is loaded.
initialize(URL, ResourceBundle) - Method in class no.ntnu.idatt1002.demo.controller.AddIngredientController
The initialize method of the controller takes in a URL (location) and ResourceBundle(resources) to initialize the controller once its root element has been processed.
initialize(URL, ResourceBundle) - Method in class no.ntnu.idatt1002.demo.controller.AllRecipesController
The initialize method of the controller takes in a URL (location) and ResourceBundle(resources) to initialize the controller once its root element has been processed.
initialize(URL, ResourceBundle) - Method in class no.ntnu.idatt1002.demo.controller.RecipeTileController
The initialize method of the controller takes in a URL (location) and ResourceBundle(resources) to initialize the controller once its root element has been processed.
initialize(URL, ResourceBundle) - Method in class no.ntnu.idatt1002.demo.controller.SuggestRecipesController
The initialize method of the controller takes in a URL (location) and ResourceBundle(resources) to initialize the controller once its root element has been processed.
isAchieved() - Method in class no.ntnu.idatt1002.demo.data.budget.SavingsGoal
Check if the SavingsGoal is achieved.
isAtHand() - Method in class no.ntnu.idatt1002.demo.data.recipes.RecipeIngredient
The method returns the boolean value of the atHand field for the ingredient.
isBudgetRegisterEmpty(String) - Static method in class no.ntnu.idatt1002.demo.data.budget.FileHandlingBudgetArchive
Checks if the budget register in the archive contains any budget names.
isEmpty() - Method in class no.ntnu.idatt1002.demo.data.economics.ItemRegister
Check if items is empty.
isEmpty(String) - Static method in class no.ntnu.idatt1002.demo.data.budget.FileHandlingBudget
Method for checking if a .budget file is empty.
isEmpty(String) - Static method in class no.ntnu.idatt1002.demo.data.economics.FileHandling
Method for checking if a .register file is empty.
isNewBudget(String) - Static method in class no.ntnu.idatt1002.demo.data.budget.FileHandlingBudget
Method for checking if a .budget file is new (no categories) or old (has budget categories).
isRecurring() - Method in class no.ntnu.idatt1002.demo.controller.AddExpenseController
Gets the value from the recurring box.
isRecurring() - Method in class no.ntnu.idatt1002.demo.controller.AddIncomeController
Gets the value from the recurring box.
isRecurring() - Method in class no.ntnu.idatt1002.demo.data.economics.Item
The method returns true if the transaction is recurring, false otherwise.
isSelectedBudgetEmpty(String) - Static method in class no.ntnu.idatt1002.demo.data.budget.FileHandlingSelectedBudget
Checks if the file that holds the selected budget contains any budget.
Item - Class in no.ntnu.idatt1002.demo.data.economics
The Item class represents a good or service purchased in real life.
Item(double, boolean, LocalDate) - Constructor for class no.ntnu.idatt1002.demo.data.economics.Item
The constructor of a new Item object takes in an amount as a double.
Item(String, double, boolean, LocalDate) - Constructor for class no.ntnu.idatt1002.demo.data.economics.Item
The constructor instantiates a new Item object with a category, a description and a price as arguments.
ItemRegister<T extends Item> - Class in no.ntnu.idatt1002.demo.data.economics
ItemRegister is a generic class used for storing either Income or Expense.
ItemRegister() - Constructor for class no.ntnu.idatt1002.demo.data.economics.ItemRegister
Class constructor that creates an empty List for storing item´s.
ItemRegister(List<T>) - Constructor for class no.ntnu.idatt1002.demo.data.economics.ItemRegister
Class constructor that takes in a List of T=(Income or Expense) as argument.

K

KG - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.MeasuringUnit
Kilogram.

L

L - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.MeasuringUnit
Liter.
label - Variable in enum class no.ntnu.idatt1002.demo.data.economics.ExpenseCategory
Label of the categories.
label - Variable in enum class no.ntnu.idatt1002.demo.data.economics.IncomeCategory
Label of the categories.
label - Variable in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Label of the categories.
label - Variable in enum class no.ntnu.idatt1002.demo.data.recipes.MeasuringUnit
Label of the categories.
LAM - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Lam.
LEEK - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Leek.
LEMON - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Lemon.
LEMON_JUICE - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Lemon juice.
loadBudgetDataFromFile(String) - Method in class no.ntnu.idatt1002.demo.controller.FinanceController
Method that either reads data from a file with which it fills a budget register, if this is an old budget, or instantiates a budget register if this is a new budget.
loadBudgetDataFromFile(String) - Method in class no.ntnu.idatt1002.demo.controller.MainMenuController
Method that either reads data from a file with which it fills a budget register, if this is an old budget, or instantiates a budget register if this is a new budget.
loadExpenseDataFromFile(String) - Method in class no.ntnu.idatt1002.demo.controller.FinanceController
Method that either reads data from a file with which it fills an expense register, if older changes exist, or instantiates an expense register if the file is empty.
loadExpenseDataFromFile(String) - Method in class no.ntnu.idatt1002.demo.controller.MainMenuController
Method that either reads data from a file with which it fills an expense register, if older changes exist, or instantiates an expense register if the file is empty.
loadIncomeDataFromFile(String) - Method in class no.ntnu.idatt1002.demo.controller.FinanceController
Method that either reads data from a file with which it fills an income register, if older changes exist, or instantiates an income register if the file is empty.
loadIncomeDataFromFile(String) - Method in class no.ntnu.idatt1002.demo.controller.MainMenuController
Method that either reads data from a file with which it fills an income register, if older changes exist, or instantiates an income register if the file is empty.

M

MACARONI - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Macaroni.
main(String[]) - Static method in class no.ntnu.idatt1002.demo.view.App
The main method that calls on the MyApp class.
main(String[]) - Static method in class no.ntnu.idatt1002.demo.view.MyApp
The main method that calls on the start method.
MainMenuController - Class in no.ntnu.idatt1002.demo.controller
Controller for the main menu of the application.
MainMenuController() - Constructor for class no.ntnu.idatt1002.demo.controller.MainMenuController
 
MeasuringUnit - Enum Class in no.ntnu.idatt1002.demo.data.recipes
The enum class defines a set of valid units of measurements related to the ingredients and recipes.
MILK - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Milk.
MINCED_MEAT - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Minced meat.
MyApp - Class in no.ntnu.idatt1002.demo.view
This is the class that the main application is run from.
MyApp() - Constructor for class no.ntnu.idatt1002.demo.view.MyApp
 

N

no.ntnu.idatt1002.demo.controller - package no.ntnu.idatt1002.demo.controller
 
no.ntnu.idatt1002.demo.data.budget - package no.ntnu.idatt1002.demo.data.budget
 
no.ntnu.idatt1002.demo.data.economics - package no.ntnu.idatt1002.demo.data.economics
 
no.ntnu.idatt1002.demo.data.recipes - package no.ntnu.idatt1002.demo.data.recipes
 
no.ntnu.idatt1002.demo.view - package no.ntnu.idatt1002.demo.view
 

O

OIL - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Oil.
okBtn - Variable in class no.ntnu.idatt1002.demo.controller.CreateBudgetController
The ok button in the dialog window.
OLIVE_OIL - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Olive oil.
ONION - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Onion.
ORANGE - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Orange.
OTHER - Enum constant in enum class no.ntnu.idatt1002.demo.data.economics.ExpenseCategory
Expenditures on everything not listed above.
Overview - Class in no.ntnu.idatt1002.demo.data.economics
Class for getting an overview on your total revenue.
Overview(GeneralBudget) - Constructor for class no.ntnu.idatt1002.demo.data.economics.Overview
Class constructor that take in a GeneralBudget and creates an empty incomeRegister, expenseRegister and set totalRevenue to zero.
Overview(IncomeRegister, ExpenseRegister, GeneralBudget) - Constructor for class no.ntnu.idatt1002.demo.data.economics.Overview
Class constructor that takes in an incomeRegister and expenseRegister and calculates total balance based on them.

P

PARMESAN - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Parmesan.
PASTA - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Pasta.
PC - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.MeasuringUnit
Pieces.
pickBestFits(int, IngredientsAtHand) - Method in class no.ntnu.idatt1002.demo.data.recipes.RecipeRegister
The method takes in a number and an IngredientsAtHand object and returns an ArrayList containing that number of recipes that, based on the ingredients at hand, require the fewest extra ingredients apart from the ones at hand.
PIE_DOUGH - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Pie dough.
PKG - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.MeasuringUnit
Pack.
POTATO - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Potato.
pressCancelBtn(ActionEvent) - Method in class no.ntnu.idatt1002.demo.controller.AddExpenseController
Closes the dialog box and cancels any pending changes.
pressCancelBtn(ActionEvent) - Method in class no.ntnu.idatt1002.demo.controller.AddIncomeController
Closes the dialog box and cancels any pending changes.
pressCancelBtn(ActionEvent) - Method in class no.ntnu.idatt1002.demo.controller.CreateBudgetController
Handles presses on the cancel button.
pressOkBtn(ActionEvent) - Method in class no.ntnu.idatt1002.demo.controller.AddExpenseController
Adds a new to the tableview or edits an existing entry in table if the OK button is pressed.
pressOkBtn(ActionEvent) - Method in class no.ntnu.idatt1002.demo.controller.AddIncomeController
Adds a new to the tableview or edits an existing entry in table if the OK button is pressed.
pressOkBtn(ActionEvent) - Method in class no.ntnu.idatt1002.demo.controller.CreateBudgetController
Handles button presses on the OK button.

R

readBudgetArchive(String) - Static method in class no.ntnu.idatt1002.demo.data.budget.FileHandlingBudgetArchive
Method for reading the budget register from the archive.
readExpenseRegisterFromFile(String) - Static method in class no.ntnu.idatt1002.demo.data.economics.FileHandling
Method for reading (getting) an ExpenseRegister from a file.
readGeneralBudgetFromFile(String) - Static method in class no.ntnu.idatt1002.demo.data.budget.FileHandlingBudget
Method for reading (getting) a Budget from a file.
readIncomeRegisterFromFile(String) - Static method in class no.ntnu.idatt1002.demo.data.economics.FileHandling
Method for reading (getting) an IncomeRegister from a file.
readIngredientsAtHand(String) - Static method in class no.ntnu.idatt1002.demo.data.recipes.FileHandler
The method reads an IngredientsAtHand object from the .register file with the name provided as a parameter and stored at /main/recourses/recipes/.
readRecipe(String) - Static method in class no.ntnu.idatt1002.demo.data.recipes.FileHandler
The method supports the readRecipeRegister method by receiving a string containing the information needed to create one specific recipe object.
readRecipeRegister(String) - Static method in class no.ntnu.idatt1002.demo.data.recipes.FileHandler
The method reads a recipe register from file and returns the recipe register object.
readSelectedBudget(String) - Static method in class no.ntnu.idatt1002.demo.data.budget.FileHandlingSelectedBudget
Reads the name of the currently selected budget.
Recipe - Class in no.ntnu.idatt1002.demo.data.recipes
The recipe class represents a dinner recipe for the user.
Recipe(String, String) - Constructor for class no.ntnu.idatt1002.demo.data.recipes.Recipe
The constructor method creates a new Recipe object by setting the name and instructions as Strings.
RecipeController - Class in no.ntnu.idatt1002.demo.controller
The RecipeController manages the view Recipe.fxml that displays one particular recipe in full detail.
RecipeController() - Constructor for class no.ntnu.idatt1002.demo.controller.RecipeController
 
RecipeIngredient - Class in no.ntnu.idatt1002.demo.data.recipes
The RecipeIngredient class is an extension of the Ingredient class used as part of recipes that also stored the boolean value 'atHand'.
RecipeIngredient(FoodItem, double, MeasuringUnit) - Constructor for class no.ntnu.idatt1002.demo.data.recipes.RecipeIngredient
The constructor of a RecipeIngredient object inherits from the superclass Ingredient.
RecipeRegister - Class in no.ntnu.idatt1002.demo.data.recipes
The RecipeRegister class holds a collection of Recipes in a list and provides methods to access the recipes, add recipes to the register as well as to pick a number of recipe's best fitting a list of food types provided as a IngredientsAtHand object.
RecipeRegister() - Constructor for class no.ntnu.idatt1002.demo.data.recipes.RecipeRegister
 
RecipeTileController - Class in no.ntnu.idatt1002.demo.controller
The RecipeTileController manages the tile components that are used to dynamically display a set of recommended recipes in terms of their name and number of missing ingredients.
RecipeTileController() - Constructor for class no.ntnu.idatt1002.demo.controller.RecipeTileController
 
recurringProperty() - Method in class no.ntnu.idatt1002.demo.data.economics.Item
The method returns the BooleanProperty of recurring.
RED_ONION - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Red onion.
RED_WINE - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Red wine.
refreshPieChart() - Method in class no.ntnu.idatt1002.demo.controller.BudgetController
Method for refreshing budget pie chart.
refreshPieChart() - Method in class no.ntnu.idatt1002.demo.controller.IncomeExpenseController
Method for synching the pie charts to the registers.
refreshTableView() - Method in class no.ntnu.idatt1002.demo.controller.BudgetController
Method for synching the register with the tableview.
refreshTableView() - Method in class no.ntnu.idatt1002.demo.controller.IncomeExpenseController
Method for synching the register with the tableview.
removeBudgetName(String) - Method in class no.ntnu.idatt1002.demo.data.budget.BudgetRegister
Method for removing a budget name from the register.
removeIngredient(FoodItem) - Method in class no.ntnu.idatt1002.demo.data.recipes.IngredientsAtHand
The method takes in a value of the FoodItem enum as a parameter and removes it from the collection of ingredients at hand if it exists and returns true.
removeItem(T) - Method in class no.ntnu.idatt1002.demo.data.economics.ItemRegister
Remove an item from the register.
RENT - Enum constant in enum class no.ntnu.idatt1002.demo.data.economics.ExpenseCategory
Expenditures on rent.

S

SALAD - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Salad.
SALARY - Enum constant in enum class no.ntnu.idatt1002.demo.data.economics.IncomeCategory
The monthly salary of the user.
SALMON - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Salmon.
SALSA_SAUCE - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Salsa sauce.
SAUSAGE - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Sausage.
saveDataToFile() - Method in class no.ntnu.idatt1002.demo.controller.BudgetController
Saves the changes made to the tableview by writing the information to a file.
saveDataToFile() - Method in class no.ntnu.idatt1002.demo.controller.IncomeExpenseController
Saves the changes made to the tableview by writing the information to a file.
Savings - Class in no.ntnu.idatt1002.demo.data.budget
Savings is a class that has an amount that is given to it, which can further can be given to different savingsGoals.
Savings() - Constructor for class no.ntnu.idatt1002.demo.data.budget.Savings
Class constructor that sets savingsGoals to an empty ArrayList and amount to zero.
Savings(double) - Constructor for class no.ntnu.idatt1002.demo.data.budget.Savings
Class constructor that sets savingsGoals to an empty ArrayList and amount to a given double.
Savings(ArrayList<SavingsGoal>) - Constructor for class no.ntnu.idatt1002.demo.data.budget.Savings
Class constructor that sets savingsGoals to a given ArrayList and amount to zero.
Savings(ArrayList<SavingsGoal>, double) - Constructor for class no.ntnu.idatt1002.demo.data.budget.Savings
Class constructor that sets savingsGoals to a given ArrayList and amount to a given double.
SavingsGoal - Class in no.ntnu.idatt1002.demo.data.budget
SavingsGoal is a specific goal that you are saving towards, for example a car or holiday.
SavingsGoal(String, double) - Constructor for class no.ntnu.idatt1002.demo.data.budget.SavingsGoal
The class constructor for a SavingsGoal, amountInvested is set to zero.
SavingsGoal(String, double, double) - Constructor for class no.ntnu.idatt1002.demo.data.budget.SavingsGoal
The class constructor for a SavingsGoal.
selectBudget(Event) - Method in class no.ntnu.idatt1002.demo.controller.SelectBudgetController
Selects the budget in the budget list view and stores this value as the currently selected budget.
SelectBudgetController - Class in no.ntnu.idatt1002.demo.controller
Class for selecting a budget from the archive.
SelectBudgetController() - Constructor for class no.ntnu.idatt1002.demo.controller.SelectBudgetController
 
setAmount(double) - Method in class no.ntnu.idatt1002.demo.data.economics.Item
The method changes the price of the given Item to the passed price as a float.
setAmount(double) - Method in class no.ntnu.idatt1002.demo.data.recipes.Ingredient
The method takes in a new amount as a double and sets the ingredient's amount field equal to this value.
setAmountGoal(double) - Method in class no.ntnu.idatt1002.demo.data.budget.SavingsGoal
Setting the amountGoal of the SavingsGoal.
setAtHand(boolean) - Method in class no.ntnu.idatt1002.demo.data.recipes.RecipeIngredient
The method sets the value of the atHand field for the ingredient to either true or false.
setBudget(BudgetItem) - Method in class no.ntnu.idatt1002.demo.controller.AddBudgetController
Binds the item that is taken in as the argument with a budget item declared in this class.
setBudgetAmount(double) - Method in class no.ntnu.idatt1002.demo.data.budget.BudgetItem
Sets the amount to the value of the argument.
setBudgetCategory(ExpenseCategory) - Method in class no.ntnu.idatt1002.demo.data.budget.BudgetItem
Sets the budget category to the value of the argument.
setBudgetDescription(String) - Method in class no.ntnu.idatt1002.demo.data.budget.BudgetItem
Sets the budget description to the value of the argument.
setCategory(ExpenseCategory) - Method in class no.ntnu.idatt1002.demo.data.economics.Expense
The method sets the category of an expense to a value of the ExpenseCategory enum class.
setCategory(IncomeCategory) - Method in class no.ntnu.idatt1002.demo.data.economics.Income
The method sets the category of an item to a value of the Category enum class.
setData(BudgetItem, double) - Method in class no.ntnu.idatt1002.demo.controller.BudgetBarController
The setData method is called to fill the BudgetBar instance with information of a particular Budget post (BudgetItem), that is the name of the budget, it's progress bar and money left.
setData(Recipe) - Method in class no.ntnu.idatt1002.demo.controller.RecipeController
The setData method takes a Recipe object as parameter and sets the information of the view accordingly.
setData(Recipe) - Method in class no.ntnu.idatt1002.demo.controller.RecipeTileController
The setData method takes in a Recipe object and sets the labels of the Recipe tiles according to that recipe's name and number of missing ingredients.
setData(RecipeIngredient) - Method in class no.ntnu.idatt1002.demo.controller.IngredientTileController
The setData method takes an RecipeIngredient object as parameter and sets the text of the label contained in the simple pane to a formatted string following this pattern: "# Ingredient name XX.X YY" where XX.X is the amount of the ingredient in the recipe and YY is the unit of measure.
setDate(LocalDate) - Method in class no.ntnu.idatt1002.demo.data.economics.Item
Sets the date field of the Item object to a new LocalDate provided as an argument.
setDescription(String) - Method in class no.ntnu.idatt1002.demo.data.budget.SavingsGoal
Setting the description of the SavingsGoal.
setDescription(String) - Method in class no.ntnu.idatt1002.demo.data.economics.Item
The method sets the description of the Item object equal to the passed String.
setExpense(Expense) - Method in class no.ntnu.idatt1002.demo.controller.AddExpenseController
Binds the expense that is taken in as the argument with an expense declared in this class.
setFoodType(FoodItem) - Method in class no.ntnu.idatt1002.demo.data.recipes.Ingredient
The method takes in a value of the FoodItem enum and sets the ingredient's foodType field equal to this constant.
setIncome(Income) - Method in class no.ntnu.idatt1002.demo.controller.AddIncomeController
Binds the income that is taken in as the argument with an income declared in this class.
setInstructions(String) - Method in class no.ntnu.idatt1002.demo.data.recipes.Recipe
The method takes a String as a parameter to which the recipe instructions are set, provided that the String is not blank, in which case an IllegalArgumentException is thrown instead.
setName(String) - Method in class no.ntnu.idatt1002.demo.data.recipes.Recipe
The method takes in a String to which the name of the recipe is set.
setRecurring(boolean) - Method in class no.ntnu.idatt1002.demo.data.economics.Item
The method changes the boolean value of the 'recurring' field of the Item object.
setUnit(MeasuringUnit) - Method in class no.ntnu.idatt1002.demo.data.recipes.Ingredient
The method takes in a value of the MeasuringUnit enum class and sets the ingredient's unit equal to this value.
SHALLOT - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Shallot.
showConfirmationDialog(String, String, String) - Method in class no.ntnu.idatt1002.demo.controller.FinanceController
Returns an optional, which is a popup alert box, asking for confirmation for deleting an entry.
showConfirmationDialog(String, String, String) - Method in class no.ntnu.idatt1002.demo.controller.MainMenuController
Returns an optional, which is a popup alert box, asking for confirmation for deleting an entry.
showErrorDialogBox(String, String, String) - Method in class no.ntnu.idatt1002.demo.controller.FinanceController
Displays an error message dialog box with a customizable title, header and content.
showErrorDialogBox(String, String, String) - Method in class no.ntnu.idatt1002.demo.controller.MainMenuController
Displays an error message dialog box with a customizable title, header and content.
showErrorDialogBox(String, String, String) - Method in class no.ntnu.idatt1002.demo.controller.SelectBudgetController
Displays an error message dialog box with a customizable title, header and content.
SLICE - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.MeasuringUnit
Slice.
SNAP_PEA - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Snap pea.
SPAGHETTI - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Spaghetti.
SPINACH - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Spinach.
SPRING_ROLL - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Spring roll.
start(Stage) - Method in class no.ntnu.idatt1002.demo.view.MyApp
The start method which is where the application is opened.
STUDENT_LOAN - Enum constant in enum class no.ntnu.idatt1002.demo.data.economics.IncomeCategory
The monthly amount the user receives in student loan.
SUGAR - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Sugar.
SuggestRecipesController - Class in no.ntnu.idatt1002.demo.controller
The controller manages the view SuggestRecipes.fxml that displays a list of food types that the user has available, called 'fridge' and four tiles showing the four recipes that requires the lowest number of ingredients that are currently not at hand.
SuggestRecipesController() - Constructor for class no.ntnu.idatt1002.demo.controller.SuggestRecipesController
 
SUMMER_CUTLET - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Summer cutlet.
switchMainMenu(ActionEvent) - Method in class no.ntnu.idatt1002.demo.controller.FirstMenuController
Method that brings up a popup, allowing users to choose which budget to select.
switchScene(ActionEvent) - Method in class no.ntnu.idatt1002.demo.controller.BudgetController
Switches scene, by loading a new FXML file and setting the scene to this location.
switchScene(ActionEvent) - Method in class no.ntnu.idatt1002.demo.controller.IncomeExpenseController
Switches scenes back to main menu, by loading a new FXML file and setting the scene to this location.

T

TBS - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.MeasuringUnit
Tablespoon.
TOMATO - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Tomato.
TOMATO_PASTE - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Tomato paste.
toString() - Method in class no.ntnu.idatt1002.demo.data.budget.BudgetItem
 
toString() - Method in class no.ntnu.idatt1002.demo.data.budget.BudgetRegister
 
toString() - Method in class no.ntnu.idatt1002.demo.data.budget.GeneralBudget
 
toString() - Method in class no.ntnu.idatt1002.demo.data.economics.Expense
Returns a String that represents the Expense.
toString() - Method in class no.ntnu.idatt1002.demo.data.economics.Income
Returns a String that represents the Income.
toString() - Method in class no.ntnu.idatt1002.demo.data.economics.Item
Returns a String that represents the Item.
toString() - Method in class no.ntnu.idatt1002.demo.data.economics.ItemRegister
 
toString() - Method in class no.ntnu.idatt1002.demo.data.recipes.Ingredient
The method returns a String representation of an Ingredient object, listing its type, amount and unit.
toString() - Method in class no.ntnu.idatt1002.demo.data.recipes.Recipe
The method returns a String representation of the recipe, listing its name, ingredients and instructions.
toString() - Method in class no.ntnu.idatt1002.demo.data.recipes.RecipeIngredient
The method returns a String representation of a Recipe Ingredient object, listing its type, amount, unit and whether it is at hand or not.
totalSum() - Method in class no.ntnu.idatt1002.demo.data.budget.GeneralBudget
Returns the totalSum of all budgetItems in the generalBudget.
totalSumAndSavings() - Method in class no.ntnu.idatt1002.demo.data.budget.GeneralBudget
Method returns totalSum of budgetItems and totalSum of savings.
TSP - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.MeasuringUnit
Teaspoon.

U

updateBalance() - Method in class no.ntnu.idatt1002.demo.data.economics.Overview
Method for updating the total balance by taking the max amount of the budget minus the total sum of the expense register.
updateBudgetRegister(String) - Method in class no.ntnu.idatt1002.demo.controller.BudgetController
Updates the contents of the budget registers by adding a given budget name.
updateCurrentFile(String, String) - Method in class no.ntnu.idatt1002.demo.controller.CreateBudgetController
Method for updating the currently selected budget in the file that stores which budget is currently selected.
updateIngredientStatus(IngredientsAtHand) - Method in class no.ntnu.idatt1002.demo.data.recipes.Recipe
The method takes in an object of the IngredientsAtHand class which defines which foods the user has at hand.
updateSelectedBudget(String, String) - Static method in class no.ntnu.idatt1002.demo.data.budget.FileHandlingSelectedBudget
Writes the currently used budget name to file, essentially updating the file.

V

valueOf(String) - Static method in enum class no.ntnu.idatt1002.demo.data.economics.ExpenseCategory
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class no.ntnu.idatt1002.demo.data.economics.IncomeCategory
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class no.ntnu.idatt1002.demo.data.recipes.MeasuringUnit
Returns the enum constant of this class with the specified name.
values() - Static method in enum class no.ntnu.idatt1002.demo.data.economics.ExpenseCategory
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class no.ntnu.idatt1002.demo.data.economics.IncomeCategory
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class no.ntnu.idatt1002.demo.data.recipes.MeasuringUnit
Returns an array containing the constants of this enum class, in the order they are declared.
VINEGAR - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Vinegar.

W

WHEAT_FLOUR - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Wheat flour.
WHITE_BEANS - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
White bananas.
writeBudgetRegisterToArchive(BudgetRegister, String) - Static method in class no.ntnu.idatt1002.demo.data.budget.FileHandlingBudgetArchive
Method for writing (adding) a budget register to the archive.
writeGeneralBudgetToFile(String, GeneralBudget) - Static method in class no.ntnu.idatt1002.demo.data.budget.FileHandlingBudget
Method for writing (adding) a budget to a file.
writeIngredientsAtHand(IngredientsAtHand, String) - Static method in class no.ntnu.idatt1002.demo.data.recipes.FileHandler
The method takes in an IngredientsAtHand object and writes it to a .register-file with the provided String as title.
writeItemRegisterToFile(ItemRegister<T>, String) - Static method in class no.ntnu.idatt1002.demo.data.economics.FileHandling
Method for writing (adding) an ItemRegister to a file.
writeMaxAmountToFile(String, String) - Static method in class no.ntnu.idatt1002.demo.data.budget.FileHandlingBudget
Method for writing the disposable income, the "max amount" of the budget to file.
writeRegister(RecipeRegister, String) - Static method in class no.ntnu.idatt1002.demo.data.recipes.FileHandler
The method takes a RecipeRegister object and a String as parameters.

Y

YELLOW_CHEESE - Enum constant in enum class no.ntnu.idatt1002.demo.data.recipes.FoodItem
Yellow cheese.
A B C D E F G H I K L M N O P R S T U V W Y 
All Classes and Interfaces|All Packages