Uses of Enum Class
no.ntnu.idatt1002.demo.data.economics.ExpenseCategory
Packages that use ExpenseCategory
Package
Description
-
Uses of ExpenseCategory in no.ntnu.idatt1002.demo.controller
Methods in no.ntnu.idatt1002.demo.controller that return ExpenseCategoryModifier and TypeMethodDescriptionAddBudgetController.getCategory()
Gets the category value from the category combo box.AddExpenseController.getCategory()
Gets the value of the category box. -
Uses of ExpenseCategory in no.ntnu.idatt1002.demo.data.budget
Methods in no.ntnu.idatt1002.demo.data.budget that return ExpenseCategoryMethods in no.ntnu.idatt1002.demo.data.budget that return types with arguments of type ExpenseCategoryModifier and TypeMethodDescriptionjavafx.beans.property.ObjectProperty<ExpenseCategory>
BudgetItem.getCategoryProperty()
Gets the category property of its corresponding category value.GeneralBudget.getChosenBudgetCategories()
Method that gets the chosen budget categories.Methods in no.ntnu.idatt1002.demo.data.budget with parameters of type ExpenseCategoryModifier and TypeMethodDescriptionvoid
GeneralBudget.addToBudget
(double budgetAmount, String description, ExpenseCategory category) This method takes in a double budgetAmount, String description and a String category to create.void
GeneralBudget.deleteItemFromBudget
(ExpenseCategory category) This method deletes a budgetItem from the list in the GeneralBudget.GeneralBudget.getBudgetItem
(ExpenseCategory expenseCategory) Method for getting a Specific BudgetItem from budgetItems.boolean
GeneralBudget.hasBudgetCategory
(ExpenseCategory category) This method checks if the list in the generalBudget already contains a budgetItem with a specified category.void
BudgetItem.setBudgetCategory
(ExpenseCategory category) Sets the budget category to the value of the argument.Constructors in no.ntnu.idatt1002.demo.data.budget with parameters of type ExpenseCategoryModifierConstructorDescriptionBudgetItem
(double budgetAmount, String description, ExpenseCategory category) The constructor of a new Budgetitem. -
Uses of ExpenseCategory in no.ntnu.idatt1002.demo.data.economics
Methods in no.ntnu.idatt1002.demo.data.economics that return ExpenseCategoryModifier and TypeMethodDescriptionExpense.getCategory()
The method returns the category to which the Expense belongs as a value of the ExpenseCategory enum class.static ExpenseCategory
Returns the enum constant of this class with the specified name.static ExpenseCategory[]
ExpenseCategory.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in no.ntnu.idatt1002.demo.data.economics that return types with arguments of type ExpenseCategoryModifier and TypeMethodDescriptionjavafx.beans.property.ObjectProperty<ExpenseCategory>
Expense.expenseCategoryObjectProperty()
Gets an Object Property of the Expense Category.Methods in no.ntnu.idatt1002.demo.data.economics with parameters of type ExpenseCategoryModifier and TypeMethodDescriptiondouble
Overview.getBudgetItemMinusExpense
(ExpenseCategory category) Method for getting Expense subtracted from a BudgetItem for a specific ExpenseCategory.ExpenseRegister.getExpenseByCategory
(ExpenseCategory category) Method for getting every Expense in a given ExpenseCategory.boolean
Overview.hasUsedUpBudgetItem
(ExpenseCategory category) Method for checking if you have used up a specific BudgetItem.void
Expense.setCategory
(ExpenseCategory expenseCategory) The method sets the category of an expense to a value of the ExpenseCategory enum class.Constructors in no.ntnu.idatt1002.demo.data.economics with parameters of type ExpenseCategoryModifierConstructorDescriptionExpense
(double amount, boolean recurring, ExpenseCategory category, LocalDate date) This constructor uses the super constructor to set the fields for 'amount' and 'recurring' and then sets the category.Expense
(String description, double amount, boolean recurring, ExpenseCategory category, LocalDate date) This constructor uses the super constructor to set the fields for 'amount', 'description' and 'recurring' and then sets the category.