Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- activate() - Method in class no.ntnu.idatt1002.demo.view.components.SearchBar
-
Activates the search bar.
- ADD_INGREDIENT - Enum constant in enum class no.ntnu.idatt1002.demo.view.components.RecipePopup.Page
- ADD_STEP - Enum constant in enum class no.ntnu.idatt1002.demo.view.components.RecipePopup.Page
- addButton - Variable in class no.ntnu.idatt1002.demo.view.components.ListHeader
- addButton - Variable in class no.ntnu.idatt1002.demo.view.scenes.Plan
- addCustomStyle(String) - Method in class no.ntnu.idatt1002.demo.view.components.PrimaryButton
- addEvent() - Method in class no.ntnu.idatt1002.demo.view.scenes.Plan
- addEvent(int, int) - Method in class no.ntnu.idatt1002.demo.repo.EventRegister
-
Adds an event to the database.
- addField(Field<T>) - Method in class no.ntnu.idatt1002.demo.view.components.AddPopup
-
Adds a new field to the popup.
- addIngredient(int, int, String, int) - Method in class no.ntnu.idatt1002.demo.repo.RecipeRegister
-
Adds an ingredient to the database.
- addIngredient(int, int, String, String, String, int, String, int) - Method in class no.ntnu.idatt1002.demo.data.Recipe
-
Adds an ingredient to the recipe.
- addIngredientBox - Variable in class no.ntnu.idatt1002.demo.view.components.RecipePopup
- addIngredientButton - Variable in class no.ntnu.idatt1002.demo.view.components.RecipePopup
- addInstruction(int, int, int, String) - Method in class no.ntnu.idatt1002.demo.data.Recipe
-
Adds an instruction to the recipe.
- addInstruction(int, int, String) - Method in class no.ntnu.idatt1002.demo.repo.RecipeRegister
-
This method adds an instruction to the database.
- addInventoryItem() - Method in class no.ntnu.idatt1002.demo.view.scenes.Inventory
- addInventoryItem(int, int, String, int) - Method in class no.ntnu.idatt1002.demo.repo.InventoryRegister
-
This method adds a new inventory item to the database.
- addItem() - Method in class no.ntnu.idatt1002.demo.view.components.AddPopup
-
Adds an item to the inventory.
- addItem() - Method in class no.ntnu.idatt1002.demo.view.scenes.CookBook
- addItem() - Method in class no.ntnu.idatt1002.demo.view.scenes.Inventory
- addItem() - Method in class no.ntnu.idatt1002.demo.view.scenes.ShoppingList
-
Method to add a new shoppingList item to the database and the shopping list.
- addItem(String, String, String) - Method in class no.ntnu.idatt1002.demo.repo.ItemRegister
-
This method adds a new item to the database.
- addItem(ItemPane) - Method in class no.ntnu.idatt1002.demo.view.components.ItemBanner
- AddPopup - Class in no.ntnu.idatt1002.demo.view.components
-
A popup for adding items to the inventory.
- AddPopup(String) - Constructor for class no.ntnu.idatt1002.demo.view.components.AddPopup
-
Constructor for the AddPopup.
- AddPopup.OnAdd - Interface in no.ntnu.idatt1002.demo.view.components
-
A callback for when the form is submitted.
- addQuantity(int) - Method in class no.ntnu.idatt1002.demo.data.QuantityUnit
-
Adds a quantity to the current quantity.
- addRecipe(String, String, int) - Method in class no.ntnu.idatt1002.demo.repo.RecipeRegister
-
This method adds a recipe to the database.
- addStepButton - Variable in class no.ntnu.idatt1002.demo.view.components.RecipePopup
- addToDatabase(Storable) - Method in class no.ntnu.idatt1002.demo.dao.DAO
-
This method adds a storable object to the database.
- addToShoppingList(int, int, String) - Method in class no.ntnu.idatt1002.demo.repo.ShoppingListItemRegister
-
Method for adding a shopping list item to the database.
- allergy - Variable in class no.ntnu.idatt1002.demo.data.Item
- angle - Variable in enum class no.ntnu.idatt1002.demo.view.components.ArrowButton.Direction
- animateIn() - Method in class no.ntnu.idatt1002.demo.view.components.ToastProvider
- animateOut() - Method in class no.ntnu.idatt1002.demo.view.components.Toast
-
Animates the toast out and closes it.
- animationCleanup(int) - Method in class no.ntnu.idatt1002.demo.view.components.ItemBanner
- App - Class in no.ntnu.idatt1002.demo.view
-
The main application class.
- App() - Constructor for class no.ntnu.idatt1002.demo.view.App
- ArrowButton - Class in no.ntnu.idatt1002.demo.view.components
-
A button with an arrow icon.
- ArrowButton() - Constructor for class no.ntnu.idatt1002.demo.view.components.ArrowButton
-
Constructor for the ArrowButton.
- ArrowButton(ArrowButton.Direction) - Constructor for class no.ntnu.idatt1002.demo.view.components.ArrowButton
-
Constructor for ArrowButton with a specified direction.
- ArrowButton.Direction - Enum Class in no.ntnu.idatt1002.demo.view.components
-
Enum for the different directions arrow directions.
- ARROWNAME - Static variable in class no.ntnu.idatt1002.demo.view.components.ArrowButton
B
- background - Variable in class no.ntnu.idatt1002.demo.view.components.RecipePopup
- bannerContainer - Variable in class no.ntnu.idatt1002.demo.view.components.ItemBanner
- bannerTitle - Variable in class no.ntnu.idatt1002.demo.view.components.ItemBanner
- blue - Static variable in class no.ntnu.idatt1002.demo.Logger
- bounds - Variable in class no.ntnu.idatt1002.demo.view.App
- buttonContainer - Variable in class no.ntnu.idatt1002.demo.view.scenes.Plan
- buttonHeight - Static variable in class no.ntnu.idatt1002.demo.view.components.Sidebar
- buttonWidth - Static variable in class no.ntnu.idatt1002.demo.view.components.Sidebar
C
- canSwitchLefProperty - Variable in class no.ntnu.idatt1002.demo.view.components.PageSwitcher
- canSwitchLeftProperty() - Method in class no.ntnu.idatt1002.demo.view.components.PageSwitcher
- canSwitchRightProperty - Variable in class no.ntnu.idatt1002.demo.view.components.PageSwitcher
- canSwitchRightProperty() - Method in class no.ntnu.idatt1002.demo.view.components.PageSwitcher
- category - Variable in class no.ntnu.idatt1002.demo.data.Event
- category - Variable in class no.ntnu.idatt1002.demo.data.Item
- category - Variable in class no.ntnu.idatt1002.demo.data.Recipe
- category - Variable in class no.ntnu.idatt1002.demo.view.components.ShoppingListItemPane
- categoryField - Variable in class no.ntnu.idatt1002.demo.view.components.RecipePopup
- cb - Variable in class no.ntnu.idatt1002.demo.view.Installer
- cb() - Method in interface no.ntnu.idatt1002.demo.view.components.ListHeader.OnAdd
- cb() - Method in interface no.ntnu.idatt1002.demo.view.components.RecipeIngredientField.onDelete
- cb() - Method in interface no.ntnu.idatt1002.demo.view.components.SearchBar.OnBlur
- cb() - Method in interface no.ntnu.idatt1002.demo.view.components.SearchBar.OnFocus
- cb() - Method in interface no.ntnu.idatt1002.demo.view.components.StepField.onDelete
- cb() - Method in interface no.ntnu.idatt1002.demo.view.Installer.onInstalled
- cb(int) - Method in interface no.ntnu.idatt1002.demo.view.components.EventPopup.OnDelete
- cb(int) - Method in interface no.ntnu.idatt1002.demo.view.components.RecipePopup.OnDelete
- cb(int) - Method in interface no.ntnu.idatt1002.demo.view.components.ShoppingListItemPopup.OnDelete
- cb(int, int) - Method in interface no.ntnu.idatt1002.demo.view.components.ItemPopup.OnDelete
- cb(int, int, String, String, String, String, int, int) - Method in interface no.ntnu.idatt1002.demo.view.components.ItemPopup.OnSave
- cb(int, String, String, int, Map<Integer, Pair<Integer, String>>, Map<Integer, Integer>, List<RecipeStep>, List<RecipeStep>) - Method in interface no.ntnu.idatt1002.demo.view.components.RecipePopup.OnSave
- cb(Object[]) - Method in interface no.ntnu.idatt1002.demo.view.components.AddPopup.OnAdd
- cb(Object[]) - Method in interface no.ntnu.idatt1002.demo.view.components.EventPopup.OnSave
- cb(Object[]) - Method in interface no.ntnu.idatt1002.demo.view.components.ShoppingListItemPopup.OnSave
- cb(String) - Method in interface no.ntnu.idatt1002.demo.view.components.InputField.OnChange
- cb(String) - Method in interface no.ntnu.idatt1002.demo.view.components.InputField.OnSubmit
- cb(String) - Method in interface no.ntnu.idatt1002.demo.view.components.ListHeader.onFilterChange
- cb(String) - Method in interface no.ntnu.idatt1002.demo.view.components.ListHeader.OnSearch
- cb(String) - Method in interface no.ntnu.idatt1002.demo.view.components.ListHeader.OnSearchQueryChange
- cb(String) - Method in interface no.ntnu.idatt1002.demo.view.components.ListHeader.OnSortChange
- cb(String) - Method in interface no.ntnu.idatt1002.demo.view.components.SearchBar.OnChange
- cb(String) - Method in interface no.ntnu.idatt1002.demo.view.components.SearchBar.OnSearch
- cb(ViewModeButton.ViewMode) - Method in interface no.ntnu.idatt1002.demo.view.components.ListHeader.OnViewModeChange
- checkBoxButton - Variable in class no.ntnu.idatt1002.demo.view.components.ShoppingListItemPane
- CheckBoxButton - Class in no.ntnu.idatt1002.demo.view.components
-
A custom button that acts as a checkbox.
- CheckBoxButton(Icon) - Constructor for class no.ntnu.idatt1002.demo.view.components.CheckBoxButton
-
Constructor for the CheckBoxButton class.
- checkForSelectedItems() - Method in class no.ntnu.idatt1002.demo.view.scenes.ShoppingList
-
Method to check for selected items.
- clearShoppingList() - Method in class no.ntnu.idatt1002.demo.repo.ShoppingListItemRegister
- close() - Method in class no.ntnu.idatt1002.demo.view.components.Toast
-
Triggers the close event.
- close() - Method in interface no.ntnu.idatt1002.demo.view.components.Toast.OnClose
- closeConnection(Connection) - Method in class no.ntnu.idatt1002.demo.dao.DBConnectionProvider
-
This method closes the connection to the database.
- closePreparedStatement(PreparedStatement) - Method in class no.ntnu.idatt1002.demo.dao.DBConnectionProvider
-
This method closes the PreparedStatement.
- closeResultSet(ResultSet) - Method in class no.ntnu.idatt1002.demo.dao.DBConnectionProvider
-
This method closes the ResultSet.
- ConfigLoader - Class in no.ntnu.idatt1002.demo
-
Class for loading properties from a config file.
- ConfigLoader() - Constructor for class no.ntnu.idatt1002.demo.ConfigLoader
- connectionProvider - Variable in class no.ntnu.idatt1002.demo.dao.DAO
- contentContainer - Variable in class no.ntnu.idatt1002.demo.view.scenes.Plan
- contentContainer - Variable in class no.ntnu.idatt1002.demo.view.scenes.ShoppingList
- convertQuantity(String, int) - Static method in class no.ntnu.idatt1002.demo.view.scenes.ShoppingList
- CookBook - Class in no.ntnu.idatt1002.demo.view.scenes
-
The inventory page.
- CookBook() - Constructor for class no.ntnu.idatt1002.demo.view.scenes.CookBook
-
The constructor for the inventory page.
- CookingMode - Class in no.ntnu.idatt1002.demo.view.scenes
-
The cooking mode page.
- CookingMode() - Constructor for class no.ntnu.idatt1002.demo.view.scenes.CookingMode
-
Constructor for the cooking mode.
- cookingTime - Variable in class no.ntnu.idatt1002.demo.data.Event
- cookingTime - Variable in class no.ntnu.idatt1002.demo.data.Recipe
- createCookSomethingBox() - Method in class no.ntnu.idatt1002.demo.view.scenes.CookingMode
- createField(InputField, String) - Method in class no.ntnu.idatt1002.demo.view.components.ItemPopup
-
Creates a field with a label.
- createImageView(int, String) - Method in class no.ntnu.idatt1002.demo.view.components.ItemPane
-
Method for creating an image view.
- createScene() - Method in interface no.ntnu.idatt1002.demo.UpdateableScene
-
Method for creating the scene.
- createScene() - Method in class no.ntnu.idatt1002.demo.view.scenes.CookBook
- createScene() - Method in class no.ntnu.idatt1002.demo.view.scenes.CookingMode
- createScene() - Method in class no.ntnu.idatt1002.demo.view.scenes.Inventory
- createScene() - Method in class no.ntnu.idatt1002.demo.view.scenes.Plan
- createScene() - Method in class no.ntnu.idatt1002.demo.view.scenes.Settings
- createScene() - Method in class no.ntnu.idatt1002.demo.view.scenes.ShoppingList
- CrossButton - Class in no.ntnu.idatt1002.demo.view.components
-
A button with an arrow icon.
- CrossButton() - Constructor for class no.ntnu.idatt1002.demo.view.components.CrossButton
-
Constructor for the CrossButton.
- CROSSNAME - Static variable in class no.ntnu.idatt1002.demo.view.components.CrossButton
- currenToast - Variable in class no.ntnu.idatt1002.demo.view.components.ToastProvider
- currentPage - Variable in class no.ntnu.idatt1002.demo.view.components.RecipePopup
- currentRecipe - Variable in class no.ntnu.idatt1002.demo.view.scenes.CookingMode
- currentStep - Variable in class no.ntnu.idatt1002.demo.view.scenes.CookingMode
D
- dao - Variable in class no.ntnu.idatt1002.demo.repo.EventRegister
- dao - Variable in class no.ntnu.idatt1002.demo.repo.InventoryRegister
- dao - Variable in class no.ntnu.idatt1002.demo.repo.ItemRegister
- dao - Variable in class no.ntnu.idatt1002.demo.repo.RecipeRegister
- dao - Variable in class no.ntnu.idatt1002.demo.repo.ShoppingListItemRegister
- DAO - Class in no.ntnu.idatt1002.demo.dao
-
This class provides methods for accessing all tables in the database.
- DAO(DBConnectionProvider) - Constructor for class no.ntnu.idatt1002.demo.dao.DAO
-
Constructor for the DAO class.
- databaseConnectionProvider - Static variable in class no.ntnu.idatt1002.demo.dao.DBConnectionProvider
- date - Variable in class no.ntnu.idatt1002.demo.data.Date
- date - Variable in class no.ntnu.idatt1002.demo.data.Event
- Date - Class in no.ntnu.idatt1002.demo.data
-
This class represents a date that can be stored in the database.
- Date() - Constructor for class no.ntnu.idatt1002.demo.data.Date
- Date(int) - Constructor for class no.ntnu.idatt1002.demo.data.Date
-
Constructs a date object with a given date number.
- Date(LocalDate) - Constructor for class no.ntnu.idatt1002.demo.data.Date
-
Constructs a date object with a given date.
- dayContainer - Variable in class no.ntnu.idatt1002.demo.view.scenes.Plan
- DB_PATH - Static variable in class no.ntnu.idatt1002.demo.dao.DBConnectionProvider
- DBConnectionProvider - Class in no.ntnu.idatt1002.demo.dao
-
This class provides a connection to the database.
- DBConnectionProvider() - Constructor for class no.ntnu.idatt1002.demo.dao.DBConnectionProvider
-
Constructor for the DBConnectionProvider class.
- deactivate() - Method in class no.ntnu.idatt1002.demo.view.components.SearchBar
-
Deactivates the search bar.
- debug(String) - Static method in class no.ntnu.idatt1002.demo.Logger
-
Logs a debug message.
- DEBUG - Enum constant in enum class no.ntnu.idatt1002.demo.Logger.Level
- DEFAULT - Enum constant in enum class no.ntnu.idatt1002.demo.view.components.Toast.ToastType
- DEFAULT_HEIGHT - Static variable in class no.ntnu.idatt1002.demo.view.components.ItemPane
- DEFAULT_HEIGHT - Static variable in class no.ntnu.idatt1002.demo.view.components.SearchBar
- DEFAULT_SIZE - Static variable in class no.ntnu.idatt1002.demo.view.components.Icon
- DEFAULT_WIDTH - Static variable in class no.ntnu.idatt1002.demo.view.components.ItemPane
- DEFAULT_WIDTH - Static variable in class no.ntnu.idatt1002.demo.view.components.SearchBar
- deleteButton - Variable in class no.ntnu.idatt1002.demo.view.components.RecipePopup
- deleteEvent(int) - Method in class no.ntnu.idatt1002.demo.repo.EventRegister
-
Deletes an event from the database.
- deleteEvent(int) - Method in class no.ntnu.idatt1002.demo.view.scenes.Plan
- deleteFromDatabase(Storable) - Method in class no.ntnu.idatt1002.demo.dao.DAO
-
This method deletes a stoable object from the database.
- deleteFromShoppingList(int) - Method in class no.ntnu.idatt1002.demo.repo.ShoppingListItemRegister
-
Method for deleting a shopping list item from the database.
- deleteIngredient(int) - Method in class no.ntnu.idatt1002.demo.repo.RecipeRegister
-
This method deletes an ingredient from the database.
- deleteInstruction(int) - Method in class no.ntnu.idatt1002.demo.repo.RecipeRegister
-
Deletes an instruction from the database.
- deleteInventoryItem(int) - Method in class no.ntnu.idatt1002.demo.repo.InventoryRegister
-
This method deletes an inventory item from the database.
- deleteItem(int) - Method in class no.ntnu.idatt1002.demo.repo.ItemRegister
-
This method deletes an item from the database.
- deleteItem(int) - Method in class no.ntnu.idatt1002.demo.view.scenes.CookBook
- deleteItem(int, int) - Method in class no.ntnu.idatt1002.demo.view.scenes.Inventory
- deleteRecipe(int) - Method in class no.ntnu.idatt1002.demo.repo.RecipeRegister
-
This method deletes a recipe from the database.
- deleteShoppingListItem(int) - Method in class no.ntnu.idatt1002.demo.view.scenes.ShoppingList
-
Method to delete a shopping list item.
- DELFAULT_TOAST_DURATION - Static variable in class no.ntnu.idatt1002.demo.view.components.Toast
- Direction(int) - Constructor for enum class no.ntnu.idatt1002.demo.view.components.ArrowButton.Direction
- displayNoSteps() - Method in class no.ntnu.idatt1002.demo.view.scenes.CookingMode
- distinctByKey(Function<? super T, Object>) - Static method in class no.ntnu.idatt1002.demo.view.components.EventPopup
- DOWN - Enum constant in enum class no.ntnu.idatt1002.demo.view.components.ArrowButton.Direction
- Dropdown - Class in no.ntnu.idatt1002.demo.view.components
-
A styled combo box.
- Dropdown(String, List<String>) - Constructor for class no.ntnu.idatt1002.demo.view.components.Dropdown
-
Constructor for the Dropdown.
- DropdownMultiselect - Class in no.ntnu.idatt1002.demo.view.components
-
A styled combo box.
- DropdownMultiselect(Map<Integer, ? extends Storable>) - Constructor for class no.ntnu.idatt1002.demo.view.components.DropdownMultiselect
-
Constructor for the multiselect dropdown.
- duration - Variable in class no.ntnu.idatt1002.demo.view.components.Toast
E
- enqueue(Toast) - Static method in class no.ntnu.idatt1002.demo.view.components.ToastProvider
-
Enqueues a toast.
- error(String) - Static method in class no.ntnu.idatt1002.demo.Logger
-
Logs an error message.
- ERROR - Enum constant in enum class no.ntnu.idatt1002.demo.Logger.Level
- ERROR - Enum constant in enum class no.ntnu.idatt1002.demo.view.components.Toast.ToastType
- Event - Class in no.ntnu.idatt1002.demo.data
-
This class represents an event with a recipe id and a date.
- Event(int, int) - Constructor for class no.ntnu.idatt1002.demo.data.Event
-
Constructor for the Event class.
- Event(int, int, int) - Constructor for class no.ntnu.idatt1002.demo.data.Event
-
Constructor for the Event class.
- Event(int, int, String, int, String, int) - Constructor for class no.ntnu.idatt1002.demo.data.Event
-
Constructor for the Event class.
- event_id - Variable in class no.ntnu.idatt1002.demo.view.components.EventPane
- eventContainer - Variable in class no.ntnu.idatt1002.demo.view.scenes.Plan
- eventId - Variable in class no.ntnu.idatt1002.demo.data.Event
- EventPane - Class in no.ntnu.idatt1002.demo.view.components
- EventPane(int, String) - Constructor for class no.ntnu.idatt1002.demo.view.components.EventPane
- EventPopup - Class in no.ntnu.idatt1002.demo.view.components
- EventPopup(Event) - Constructor for class no.ntnu.idatt1002.demo.view.components.EventPopup
-
Constructor for the AddPopup.
- EventPopup.OnDelete - Interface in no.ntnu.idatt1002.demo.view.components
-
Interface for when the user deletes the item.
- EventPopup.OnSave - Interface in no.ntnu.idatt1002.demo.view.components
-
Interface for when the user saves the form.
- EventRegister - Class in no.ntnu.idatt1002.demo.repo
-
This class represents a register for events.
- EventRegister(DAO) - Constructor for class no.ntnu.idatt1002.demo.repo.EventRegister
-
Constructor for the EventRegister class.
- events - Variable in class no.ntnu.idatt1002.demo.repo.EventRegister
- expirationDate - Variable in class no.ntnu.idatt1002.demo.data.InventoryItem
- extractDay(int) - Static method in class no.ntnu.idatt1002.demo.util.VerifyInput
-
Extracts the day from an int(date).
- extractMonth(int) - Static method in class no.ntnu.idatt1002.demo.util.VerifyInput
-
Extracts the month from an int(date).
- extractYear(int) - Static method in class no.ntnu.idatt1002.demo.util.VerifyInput
-
Extracts the year from an int(date).
F
- fatal(String) - Static method in class no.ntnu.idatt1002.demo.Logger
-
Logs a fatal message.
- FATAL - Enum constant in enum class no.ntnu.idatt1002.demo.Logger.Level
- Field<T> - Class in no.ntnu.idatt1002.demo.view.components
-
A field for a form.
- Field(Field.FieldType, String) - Constructor for class no.ntnu.idatt1002.demo.view.components.Field
- Field(Field.FieldType, String, List<? extends Storable>) - Constructor for class no.ntnu.idatt1002.demo.view.components.Field
- Field(Field.FieldType, String, Map<Integer, ? extends Storable>) - Constructor for class no.ntnu.idatt1002.demo.view.components.Field
- Field.FieldType - Enum Class in no.ntnu.idatt1002.demo.view.components
-
Enum for the different types of fields.
- fields - Variable in class no.ntnu.idatt1002.demo.view.components.AddPopup
- FieldType() - Constructor for enum class no.ntnu.idatt1002.demo.view.components.Field.FieldType
- filePath - Variable in class no.ntnu.idatt1002.demo.view.components.Icon
- filePath - Variable in class no.ntnu.idatt1002.demo.view.components.ItemPane
- filter - Variable in class no.ntnu.idatt1002.demo.view.components.ListHeader
- filterBy - Variable in class no.ntnu.idatt1002.demo.view.scenes.ShoppingList
- filterBy(String) - Method in class no.ntnu.idatt1002.demo.view.scenes.ShoppingList
-
Method to switch the filter by.
- filterFromTable(String, String, String, String, String) - Method in class no.ntnu.idatt1002.demo.dao.DAO
-
This method filters objects by a given column in the database.
- filterInventoryByCategory(String) - Method in class no.ntnu.idatt1002.demo.repo.InventoryRegister
-
This method retrieves filtered inventory items by category from the database.
- filterItemsByCategory(String) - Method in class no.ntnu.idatt1002.demo.repo.ItemRegister
-
Retrieves filtered items by category from the database.
- filterRecipesByCategory(String) - Method in class no.ntnu.idatt1002.demo.repo.RecipeRegister
-
This method retrieves filtered recipes by category from the database.
- fullSearch(String) - Method in class no.ntnu.idatt1002.demo.view.scenes.CookBook
- fullSearch(String) - Method in class no.ntnu.idatt1002.demo.view.scenes.Inventory
- fullSearch(String) - Method in class no.ntnu.idatt1002.demo.view.scenes.ShoppingList
-
Method to search for items in the shopping list.
G
- getAllergy() - Method in class no.ntnu.idatt1002.demo.data.Item
-
Returns the allergy of the item.
- getAllEvents() - Method in class no.ntnu.idatt1002.demo.repo.EventRegister
-
This method retrieves all events from the database.
- getAllFromTable(String, String, String) - Method in class no.ntnu.idatt1002.demo.dao.DAO
-
Returns all attributes from a table.
- getAllInventoryItems() - Method in class no.ntnu.idatt1002.demo.repo.InventoryRegister
-
This method retrieves all inventory items from the database.
- getAllItems() - Method in class no.ntnu.idatt1002.demo.repo.ItemRegister
-
This method retrieves all items from the database.
- getAllItems() - Method in class no.ntnu.idatt1002.demo.repo.ShoppingListItemRegister
-
Gets all shopping list items from the database and packages them into a list of shopping list items.
- getAllRecipes() - Method in class no.ntnu.idatt1002.demo.repo.RecipeRegister
-
This method retrieves all recipes from the database.
- getAttributeNames() - Method in class no.ntnu.idatt1002.demo.data.Date
- getAttributeNames() - Method in class no.ntnu.idatt1002.demo.data.Event
-
Returns the attribute names of the event.
- getAttributeNames() - Method in class no.ntnu.idatt1002.demo.data.InventoryItem
-
Returns the attribute names of the inventory item.
- getAttributeNames() - Method in class no.ntnu.idatt1002.demo.data.Item
-
Returns the attribute names of the item.
- getAttributeNames() - Method in class no.ntnu.idatt1002.demo.data.Recipe
-
Returns the attribute names of the recipe.
- getAttributeNames() - Method in class no.ntnu.idatt1002.demo.data.RecipeIngredient
-
Returns the attribute names of the recipe ingredient.
- getAttributeNames() - Method in class no.ntnu.idatt1002.demo.data.RecipeStep
-
Returns the attribute names of the recipe step.
- getAttributeNames() - Method in class no.ntnu.idatt1002.demo.data.ShoppingListItem
-
Returns the attribute names of the shopping list item.
- getAttributeNames() - Method in interface no.ntnu.idatt1002.demo.data.Storable
-
Returns the attribute names of the object.
- getAttributes() - Method in class no.ntnu.idatt1002.demo.data.Date
- getAttributes() - Method in class no.ntnu.idatt1002.demo.data.Event
-
Returns the attributes of the event.
- getAttributes() - Method in class no.ntnu.idatt1002.demo.data.InventoryItem
-
Returns the attributes of the inventory item.
- getAttributes() - Method in class no.ntnu.idatt1002.demo.data.Item
-
Returns the attributes of the item.
- getAttributes() - Method in class no.ntnu.idatt1002.demo.data.Recipe
-
Returns the attributes of the recipe.
- getAttributes() - Method in class no.ntnu.idatt1002.demo.data.RecipeIngredient
-
Returns the attributes of the recipe ingredient.
- getAttributes() - Method in class no.ntnu.idatt1002.demo.data.RecipeStep
-
Returns the attributes of the recipe step.
- getAttributes() - Method in class no.ntnu.idatt1002.demo.data.ShoppingListItem
-
Returns the attributes of the shopping list item as saved in the database.
- getAttributes() - Method in interface no.ntnu.idatt1002.demo.data.Storable
-
Returns the attributes of the object.
- getAttributes() - Method in class no.ntnu.idatt1002.demo.view.components.ListItem
- getCategory() - Method in class no.ntnu.idatt1002.demo.data.Item
-
Returns the category of the item.
- getCategory() - Method in class no.ntnu.idatt1002.demo.data.Recipe
-
Returns the category of the recipe.
- getCategory() - Method in class no.ntnu.idatt1002.demo.view.components.ShoppingListItemPane
- getColumnsFromTable(String) - Method in class no.ntnu.idatt1002.demo.dao.DAO
-
Returns all columns from a table.
- getConnection() - Method in class no.ntnu.idatt1002.demo.dao.DBConnectionProvider
-
Gets a connection to the database.
- getCookingTime() - Method in class no.ntnu.idatt1002.demo.data.Recipe
-
Returns the cooking time of the recipe.
- getDate() - Method in class no.ntnu.idatt1002.demo.data.Date
-
Returns the date.
- getDate() - Method in class no.ntnu.idatt1002.demo.data.Event
-
Getter method for the date of the event.
- getDateInt() - Method in class no.ntnu.idatt1002.demo.data.Date
-
Gets the date as an 8-digit integer.
- getDuration() - Method in class no.ntnu.idatt1002.demo.view.components.Toast
- getEventById(int) - Method in class no.ntnu.idatt1002.demo.repo.EventRegister
-
Gets the events by the recipe id.
- getEventId() - Method in class no.ntnu.idatt1002.demo.data.Event
-
Getter method for the event id.
- getEvents() - Method in class no.ntnu.idatt1002.demo.repo.EventRegister
-
Returns the events in the register.
- getEventsAsList() - Method in class no.ntnu.idatt1002.demo.repo.EventRegister
-
Returns the events in the register as a list.
- getEventsByDate(int) - Method in class no.ntnu.idatt1002.demo.repo.EventRegister
-
This method gets the events by the date.
- getExpirationDate() - Method in class no.ntnu.idatt1002.demo.data.InventoryItem
-
Getter method for the expiration date.
- getIcon() - Method in class no.ntnu.idatt1002.demo.view.components.PrimaryButton
- getIconName() - Method in class no.ntnu.idatt1002.demo.view.components.Icon
-
Get the name of the icon.
- getId() - Method in class no.ntnu.idatt1002.demo.data.Date
- getId() - Method in class no.ntnu.idatt1002.demo.data.Event
-
Returns the id of the event.
- getId() - Method in class no.ntnu.idatt1002.demo.data.InventoryItem
-
Returns the id of the inventory item.
- getId() - Method in class no.ntnu.idatt1002.demo.data.Item
-
Returns the id of the item.
- getId() - Method in class no.ntnu.idatt1002.demo.data.Recipe
-
Returns the id of the recipe.
- getId() - Method in class no.ntnu.idatt1002.demo.data.RecipeIngredient
-
Returns the id of the recipe ingredient.
- getId() - Method in class no.ntnu.idatt1002.demo.data.RecipeStep
-
Returns the id of the recipe step.
- getId() - Method in class no.ntnu.idatt1002.demo.data.ShoppingListItem
-
Returns the id of the shopping list item.
- getId() - Method in interface no.ntnu.idatt1002.demo.data.Storable
-
Returns the id of the object.
- getIdName() - Method in class no.ntnu.idatt1002.demo.data.Date
- getIdName() - Method in class no.ntnu.idatt1002.demo.data.Event
-
Returns the name of the id.
- getIdName() - Method in class no.ntnu.idatt1002.demo.data.InventoryItem
-
Returns the name of the id.
- getIdName() - Method in class no.ntnu.idatt1002.demo.data.Item
-
Returns the name of the id.
- getIdName() - Method in class no.ntnu.idatt1002.demo.data.Recipe
-
Returns the name of the id.
- getIdName() - Method in class no.ntnu.idatt1002.demo.data.RecipeIngredient
-
Returns the id name of the recipe ingredient.
- getIdName() - Method in class no.ntnu.idatt1002.demo.data.RecipeStep
-
Returns the name of the id.
- getIdName() - Method in class no.ntnu.idatt1002.demo.data.ShoppingListItem
-
Returns the name of the id.
- getIdName() - Method in interface no.ntnu.idatt1002.demo.data.Storable
-
Returns the name of the id.
- getIndexFromEvent(int) - Method in class no.ntnu.idatt1002.demo.repo.EventRegister
-
Returns the index of the event with the given id.
- getIndexFromId(int) - Method in class no.ntnu.idatt1002.demo.repo.InventoryRegister
-
This method retrieves the index of an inventory item by its id.
- getIndexFromId(int) - Method in class no.ntnu.idatt1002.demo.repo.ItemRegister
-
Returns the index of the item with the given id.
- getIndexFromId(int) - Method in class no.ntnu.idatt1002.demo.repo.ShoppingListItemRegister
-
Helper method to get the index of the shopping list item with the given id.
- getIngredientById(int) - Method in class no.ntnu.idatt1002.demo.data.Recipe
-
Returns the ingredient with the given id.
- getIngredients() - Method in class no.ntnu.idatt1002.demo.data.Recipe
-
Returns the ingredients of the recipe.
- getInstance() - Static method in class no.ntnu.idatt1002.demo.ConfigLoader
- getInstance() - Static method in class no.ntnu.idatt1002.demo.dao.DBConnectionProvider
-
Gets the instance of the DBConnectionProvider.
- getInstance() - Static method in class no.ntnu.idatt1002.demo.view.components.ToastProvider
-
Gets the current instance of the toast provider.
- getInstruction() - Method in class no.ntnu.idatt1002.demo.data.RecipeStep
-
Getter for the instruction.
- getInstructionById(int) - Method in class no.ntnu.idatt1002.demo.data.Recipe
-
Returns the instruction with the given id.
- getInstructions() - Method in class no.ntnu.idatt1002.demo.data.Recipe
-
Returns the instructions of the recipe.
- getInventoryId() - Method in class no.ntnu.idatt1002.demo.data.InventoryItem
-
Getter method for the inventory id.
- getInventoryItems() - Method in class no.ntnu.idatt1002.demo.repo.InventoryRegister
-
Returns the inventory items in the register in the form of lists.
- getItem() - Method in class no.ntnu.idatt1002.demo.view.components.ListItem
- getItemById(int) - Method in class no.ntnu.idatt1002.demo.repo.ItemRegister
- getItemId() - Method in class no.ntnu.idatt1002.demo.data.Item
-
Returns the id of the item.
- getItemListIndex() - Method in class no.ntnu.idatt1002.demo.view.components.ItemBanner
- getItems() - Method in class no.ntnu.idatt1002.demo.repo.ItemRegister
-
Returns the items in the register in the form of lists.
- getItems() - Method in class no.ntnu.idatt1002.demo.repo.ShoppingListItemRegister
-
Returns the items in the register in the form of lists.
- getItemsToAddToList() - Method in class no.ntnu.idatt1002.demo.view.scenes.ShoppingList
- getLevelSeverity() - Method in class no.ntnu.idatt1002.demo.Logger
- getLogger() - Static method in class no.ntnu.idatt1002.demo.Logger
-
Get the logger instance if it exists, otherwise create a new instance.
- getName() - Method in class no.ntnu.idatt1002.demo.data.Event
-
Getter method for the name of the event.
- getName() - Method in class no.ntnu.idatt1002.demo.data.Item
-
Returns the name of the item.
- getName() - Method in class no.ntnu.idatt1002.demo.data.Recipe
-
Returns the name of the recipe.
- getName() - Method in class no.ntnu.idatt1002.demo.view.components.EventPane
- getName() - Method in class no.ntnu.idatt1002.demo.view.components.ShoppingListItemPane
- getProperties() - Static method in class no.ntnu.idatt1002.demo.ConfigLoader
-
Returns the properties.
- getQuantity() - Method in class no.ntnu.idatt1002.demo.data.QuantityUnit
-
Returns the quantity.
- getQuantity() - Method in class no.ntnu.idatt1002.demo.data.ShoppingListItem
-
Getter method for the quantity of the shopping list item.
- getRecipeAmount() - Method in class no.ntnu.idatt1002.demo.view.components.RecipeIngredientField
- getRecipeId() - Method in class no.ntnu.idatt1002.demo.data.Event
-
Getter method for the recipe id of the event.
- getRecipeId() - Method in class no.ntnu.idatt1002.demo.data.Recipe
-
Returns the recipe id.
- getRecipeId() - Method in class no.ntnu.idatt1002.demo.data.RecipeIngredient
-
Returns the recipe id of the recipe ingredient.
- getRecipeId() - Method in class no.ntnu.idatt1002.demo.data.RecipeStep
-
Getter for the recipe id.
- getRecipeId() - Method in class no.ntnu.idatt1002.demo.view.components.RecipeIngredientField
- getRecipeIngredientId() - Method in class no.ntnu.idatt1002.demo.data.RecipeIngredient
-
Returns the recipe ingredient id.
- getRecipes() - Method in class no.ntnu.idatt1002.demo.repo.RecipeRegister
-
Returns the recipes in the register in the form of lists.
- getRecipesFromId(int) - Method in class no.ntnu.idatt1002.demo.repo.RecipeRegister
-
Retrieves the index of a recipe from the register by id.
- getRenderedField() - Method in class no.ntnu.idatt1002.demo.view.components.Field
- getSeverity() - Method in enum class no.ntnu.idatt1002.demo.Logger.Level
- getShoppingListItemById(int) - Method in class no.ntnu.idatt1002.demo.repo.ShoppingListItemRegister
- getShoppingListItemId() - Method in class no.ntnu.idatt1002.demo.data.ShoppingListItem
- getShoppingListItemId() - Method in class no.ntnu.idatt1002.demo.view.components.ShoppingListItemPane
- getSize() - Method in class no.ntnu.idatt1002.demo.view.components.Icon
-
Get the size of the icon.
- getStep() - Method in class no.ntnu.idatt1002.demo.view.components.StepField
-
Gets the step from the field.
- getStepId() - Method in class no.ntnu.idatt1002.demo.data.RecipeStep
-
Getter for the step id.
- getStepId() - Method in class no.ntnu.idatt1002.demo.view.components.StepField
- getStepNumber() - Method in class no.ntnu.idatt1002.demo.data.RecipeStep
-
Getter for the step number.
- getSvgCircle(String) - Method in class no.ntnu.idatt1002.demo.view.components.Icon
-
Splits the provided line from the SVG file and returns the Circle that the SVG is describing.
- getSvgPathString(String) - Method in class no.ntnu.idatt1002.demo.view.components.Icon
-
Splits the SVG content and returns the value of the attribute.
- getSvgRect(String) - Method in class no.ntnu.idatt1002.demo.view.components.Icon
-
Splits the provided line from the SVG file and returns the Rectangle that the SVG is describing.
- getType() - Method in class no.ntnu.idatt1002.demo.view.components.Field
- getType() - Method in class no.ntnu.idatt1002.demo.view.components.Toast
- getUnit() - Method in class no.ntnu.idatt1002.demo.data.QuantityUnit
-
Returns the unit.
- getUnit() - Method in class no.ntnu.idatt1002.demo.data.ShoppingListItem
-
Getter method for the unit of the shopping list item.
- getUnit() - Method in class no.ntnu.idatt1002.demo.view.components.RecipeIngredientField
- getUserAgentStylesheet(Class<?>, String) - Method in class no.ntnu.idatt1002.demo.view.components.DropdownMultiselect
- getValue() - Method in class no.ntnu.idatt1002.demo.view.components.Field
- getValue() - Method in class no.ntnu.idatt1002.demo.view.components.NumberField
-
Get the value of the number field.
- getViewMode() - Method in class no.ntnu.idatt1002.demo.view.components.ViewModeButton
- getX() - Method in class no.ntnu.idatt1002.demo.view.components.Icon
-
Get the x value of the icon.
- getY() - Method in class no.ntnu.idatt1002.demo.view.components.Icon
-
Get the y value of the icon.
- GRID - Enum constant in enum class no.ntnu.idatt1002.demo.view.components.ViewModeButton.ViewMode
- gridButton - Variable in class no.ntnu.idatt1002.demo.view.components.ListHeader
H
- HEIGHT - Static variable in class no.ntnu.idatt1002.demo.view.components.ListItem
- highlightWrongInput() - Method in class no.ntnu.idatt1002.demo.view.components.NumberField
-
When called, checks if the input is a valid number and highlights the input field if it is not.
I
- icon - Variable in class no.ntnu.idatt1002.demo.view.components.PrimaryButton
- Icon - Class in no.ntnu.idatt1002.demo.view.components
-
Icon class for the Application.
- Icon(String) - Constructor for class no.ntnu.idatt1002.demo.view.components.Icon
-
Constructor for the Icon class.
- Icon(String, int) - Constructor for class no.ntnu.idatt1002.demo.view.components.Icon
-
Constructor for the Icon class.
- iconName - Variable in class no.ntnu.idatt1002.demo.view.components.Icon
- image - Variable in class no.ntnu.idatt1002.demo.view.components.ItemPane
- imageButton - Variable in class no.ntnu.idatt1002.demo.view.components.RecipePopup
- info(String) - Static method in class no.ntnu.idatt1002.demo.Logger
-
Logs an info message.
- INFO - Enum constant in enum class no.ntnu.idatt1002.demo.Logger.Level
- ingredients - Variable in class no.ntnu.idatt1002.demo.data.Recipe
- ingredientsField - Variable in class no.ntnu.idatt1002.demo.view.components.RecipePopup
- innerContentContainer - Variable in class no.ntnu.idatt1002.demo.view.scenes.ShoppingList
- inputField - Variable in class no.ntnu.idatt1002.demo.view.components.SearchBar
- InputField - Class in no.ntnu.idatt1002.demo.view.components
-
A component for input fields.
- InputField() - Constructor for class no.ntnu.idatt1002.demo.view.components.InputField
- InputField(String) - Constructor for class no.ntnu.idatt1002.demo.view.components.InputField
- InputField.OnChange - Interface in no.ntnu.idatt1002.demo.view.components
-
A callback for when the value of the input field changes.
- InputField.OnSubmit - Interface in no.ntnu.idatt1002.demo.view.components
-
A callback for when the form is submitted.
- INSET_AMOUNT - Static variable in class no.ntnu.idatt1002.demo.view.components.ListHeader
- install() - Method in class no.ntnu.idatt1002.demo.view.Installer
- installationPath - Variable in class no.ntnu.idatt1002.demo.view.Installer
- Installer - Class in no.ntnu.idatt1002.demo.view
-
The installer page.
- Installer(Installer.onInstalled) - Constructor for class no.ntnu.idatt1002.demo.view.Installer
- Installer.onInstalled - Interface in no.ntnu.idatt1002.demo.view
- instance - Static variable in class no.ntnu.idatt1002.demo.ConfigLoader
- instance - Static variable in class no.ntnu.idatt1002.demo.Logger
- instance - Static variable in class no.ntnu.idatt1002.demo.view.components.ToastProvider
- instruction - Variable in class no.ntnu.idatt1002.demo.data.RecipeStep
- instructionNumbering(int, int, boolean) - Method in class no.ntnu.idatt1002.demo.repo.RecipeRegister
-
This method adjusts step numbers when an instruction is changed.
- instructions - Variable in class no.ntnu.idatt1002.demo.data.Recipe
- Inventory - Class in no.ntnu.idatt1002.demo.view.scenes
-
The inventory page.
- Inventory() - Constructor for class no.ntnu.idatt1002.demo.view.scenes.Inventory
-
The constructor for the inventory page.
- inventoryContainer - Variable in class no.ntnu.idatt1002.demo.view.scenes.CookBook
- inventoryContainer - Variable in class no.ntnu.idatt1002.demo.view.scenes.Inventory
- inventoryId - Variable in class no.ntnu.idatt1002.demo.data.InventoryItem
- InventoryItem - Class in no.ntnu.idatt1002.demo.data
-
This class is a simple bean for an inventory item.
- InventoryItem(int, int, String, String, String, int, String, int) - Constructor for class no.ntnu.idatt1002.demo.data.InventoryItem
-
Constructor for the InventoryItem class.
- InventoryItem(int, String, String, String, int, String, int) - Constructor for class no.ntnu.idatt1002.demo.data.InventoryItem
-
Constructor for the InventoryItem class.
- inventoryItems - Variable in class no.ntnu.idatt1002.demo.repo.InventoryRegister
- inventoryItems - Variable in class no.ntnu.idatt1002.demo.view.scenes.Inventory
- inventoryRegister - Variable in class no.ntnu.idatt1002.demo.view.scenes.Inventory
- InventoryRegister - Class in no.ntnu.idatt1002.demo.repo
-
This class represents a register for inventory items.
- InventoryRegister(DAO) - Constructor for class no.ntnu.idatt1002.demo.repo.InventoryRegister
-
Constructor for the Inventory class.
- isCooking - Variable in class no.ntnu.idatt1002.demo.view.scenes.CookingMode
- isLeapYear(int) - Static method in class no.ntnu.idatt1002.demo.util.VerifyInput
-
Checks if a year is a leap year.
- isNumber() - Method in class no.ntnu.idatt1002.demo.view.components.NumberField
-
Check if the input is a valid number.
- isSelected - Variable in class no.ntnu.idatt1002.demo.view.components.ShoppingListItemPane
- isSelected() - Method in class no.ntnu.idatt1002.demo.view.components.CheckBoxButton
- isSelected() - Method in class no.ntnu.idatt1002.demo.view.components.ShoppingListItemPane
- item - Variable in class no.ntnu.idatt1002.demo.view.components.ListItem
- Item - Class in no.ntnu.idatt1002.demo.data
-
This class is a simple bean for an item.
- Item(int, String, String, String) - Constructor for class no.ntnu.idatt1002.demo.data.Item
-
Constructor for the Item class.
- Item(String, String, String) - Constructor for class no.ntnu.idatt1002.demo.data.Item
-
Constructor for the Item class.
- ItemBanner - Class in no.ntnu.idatt1002.demo.view.components
-
A banner of items.
- ItemBanner() - Constructor for class no.ntnu.idatt1002.demo.view.components.ItemBanner
- ItemBanner(ItemPane) - Constructor for class no.ntnu.idatt1002.demo.view.components.ItemBanner
- ItemBanner(ItemPane[]) - Constructor for class no.ntnu.idatt1002.demo.view.components.ItemBanner
-
Constructor for the ItemBanner.
- itemId - Variable in class no.ntnu.idatt1002.demo.data.Item
- itemId - Variable in class no.ntnu.idatt1002.demo.view.components.ItemPane
- itemListIndex - Variable in class no.ntnu.idatt1002.demo.view.components.ItemBanner
- itemName - Variable in class no.ntnu.idatt1002.demo.view.components.ItemPane
- ItemPane - Class in no.ntnu.idatt1002.demo.view.components
-
ItemPane class.
- ItemPane(int, String, int, int, String) - Constructor for class no.ntnu.idatt1002.demo.view.components.ItemPane
-
Constructor for the ItemPane class.
- ItemPopup - Class in no.ntnu.idatt1002.demo.view.components
-
A popup for adding items to the inventory.
- ItemPopup(InventoryItem) - Constructor for class no.ntnu.idatt1002.demo.view.components.ItemPopup
-
Constructor for the AddPopup.
- ItemPopup.OnDelete - Interface in no.ntnu.idatt1002.demo.view.components
-
Interface for when the user deletes the item.
- ItemPopup.OnSave - Interface in no.ntnu.idatt1002.demo.view.components
-
Interface for when the user saves the form.
- ItemRegister - Class in no.ntnu.idatt1002.demo.repo
-
This class represents a register for items.
- ItemRegister(DAO) - Constructor for class no.ntnu.idatt1002.demo.repo.ItemRegister
-
Constructor for the ItemRegister class.
- items - Variable in class no.ntnu.idatt1002.demo.repo.ItemRegister
- items - Variable in class no.ntnu.idatt1002.demo.view.components.ItemBanner
- items - Variable in class no.ntnu.idatt1002.demo.view.scenes.ShoppingList
L
- labelContainer - Variable in class no.ntnu.idatt1002.demo.view.scenes.Plan
- lastValidValue - Variable in class no.ntnu.idatt1002.demo.view.components.NumberField
- LEFT - Enum constant in enum class no.ntnu.idatt1002.demo.view.components.ArrowButton.Direction
- leftArrowButton - Variable in class no.ntnu.idatt1002.demo.view.components.ItemBanner
- level - Variable in class no.ntnu.idatt1002.demo.Logger
- Level(int) - Constructor for enum class no.ntnu.idatt1002.demo.Logger.Level
- LIST - Enum constant in enum class no.ntnu.idatt1002.demo.view.components.Field.FieldType
- LIST - Enum constant in enum class no.ntnu.idatt1002.demo.view.components.ViewModeButton.ViewMode
- listButton - Variable in class no.ntnu.idatt1002.demo.view.components.ListHeader
- listener - Variable in class no.ntnu.idatt1002.demo.view.components.NumberField
- ListHeader - Class in no.ntnu.idatt1002.demo.view.components
-
A list header.
- ListHeader() - Constructor for class no.ntnu.idatt1002.demo.view.components.ListHeader
-
Constructor for the list header.
- ListHeader.OnAdd - Interface in no.ntnu.idatt1002.demo.view.components
-
Callback for adding items.
- ListHeader.onFilterChange - Interface in no.ntnu.idatt1002.demo.view.components
-
Callback for changing filter.
- ListHeader.OnSearch - Interface in no.ntnu.idatt1002.demo.view.components
-
Callback for searching.
- ListHeader.OnSearchQueryChange - Interface in no.ntnu.idatt1002.demo.view.components
-
Callback for when the seach query changes.
- ListHeader.OnSortChange - Interface in no.ntnu.idatt1002.demo.view.components
-
Callback for sorting.
- ListHeader.OnViewModeChange - Interface in no.ntnu.idatt1002.demo.view.components
-
Callback for changing view mode.
- ListItem<T> - Class in no.ntnu.idatt1002.demo.view.components
-
A list item that can display a storable item.
- ListItem(T) - Constructor for class no.ntnu.idatt1002.demo.view.components.ListItem
- load(String) - Static method in class no.ntnu.idatt1002.demo.ConfigLoader
-
Loads properties from the config file.
- loadCookBook(ViewModeButton.ViewMode) - Method in class no.ntnu.idatt1002.demo.view.scenes.CookBook
-
Loads the inventory based on the mode given.
- loadFonts() - Method in class no.ntnu.idatt1002.demo.view.App
-
Loads the fonts used in the application.
- loadInventory(ViewModeButton.ViewMode) - Method in class no.ntnu.idatt1002.demo.view.scenes.Inventory
-
Loads the inventory based on the mode given.
- loadPlaner() - Method in class no.ntnu.idatt1002.demo.view.scenes.Plan
-
Loads the planer.
- loadShoppingList() - Method in class no.ntnu.idatt1002.demo.view.scenes.ShoppingList
-
Method to update the page.
- Logger - Class in no.ntnu.idatt1002.demo
-
A singleton logger class for purchase planner
- Logger() - Constructor for class no.ntnu.idatt1002.demo.Logger
- Logger.Level - Enum Class in no.ntnu.idatt1002.demo
-
Enum for the different log levels.
M
- main(String[]) - Static method in class no.ntnu.idatt1002.demo.Main
-
Main method for the application.
- main(String[]) - Static method in class no.ntnu.idatt1002.demo.view.App
- Main - Class in no.ntnu.idatt1002.demo
-
Use this class to start the application.
- Main() - Constructor for class no.ntnu.idatt1002.demo.Main
- MAIN - Enum constant in enum class no.ntnu.idatt1002.demo.view.components.RecipePopup.Page
- make() - Method in class no.ntnu.idatt1002.demo.view.components.Toast
- MAP - Enum constant in enum class no.ntnu.idatt1002.demo.view.components.Field.FieldType
- mapOptions - Variable in class no.ntnu.idatt1002.demo.view.components.Field
- mediaPlayer - Variable in class no.ntnu.idatt1002.demo.view.components.PrimaryButton
- mediaPlayer - Variable in class no.ntnu.idatt1002.demo.view.components.ToastProvider
- message - Variable in class no.ntnu.idatt1002.demo.view.components.Toast
- mode - Variable in class no.ntnu.idatt1002.demo.view.scenes.CookBook
- mode - Variable in class no.ntnu.idatt1002.demo.view.scenes.Inventory
N
- name - Variable in class no.ntnu.idatt1002.demo.data.Event
- name - Variable in class no.ntnu.idatt1002.demo.data.Item
- name - Variable in class no.ntnu.idatt1002.demo.data.Recipe
- name - Variable in class no.ntnu.idatt1002.demo.view.components.EventPane
- name - Variable in class no.ntnu.idatt1002.demo.view.components.Field
- name - Variable in class no.ntnu.idatt1002.demo.view.components.ShoppingListItemPane
- name - Variable in enum class no.ntnu.idatt1002.demo.view.components.ViewModeButton.ViewMode
- nameField - Variable in class no.ntnu.idatt1002.demo.view.components.RecipePopup
- newIngredients - Variable in class no.ntnu.idatt1002.demo.view.components.RecipePopup
- newSteps - Variable in class no.ntnu.idatt1002.demo.view.components.RecipePopup
- next() - Method in class no.ntnu.idatt1002.demo.view.components.ToastProvider
- no.ntnu.idatt1002.demo - package no.ntnu.idatt1002.demo
- no.ntnu.idatt1002.demo.dao - package no.ntnu.idatt1002.demo.dao
- no.ntnu.idatt1002.demo.data - package no.ntnu.idatt1002.demo.data
- no.ntnu.idatt1002.demo.repo - package no.ntnu.idatt1002.demo.repo
- no.ntnu.idatt1002.demo.util - package no.ntnu.idatt1002.demo.util
- no.ntnu.idatt1002.demo.view - package no.ntnu.idatt1002.demo.view
- no.ntnu.idatt1002.demo.view.components - package no.ntnu.idatt1002.demo.view.components
- no.ntnu.idatt1002.demo.view.scenes - package no.ntnu.idatt1002.demo.view.scenes
- NUMBER - Enum constant in enum class no.ntnu.idatt1002.demo.view.components.Field.FieldType
- NumberField - Class in no.ntnu.idatt1002.demo.view.components
-
NumberField.
- NumberField() - Constructor for class no.ntnu.idatt1002.demo.view.components.NumberField
-
Constructor.
- NumberField(int) - Constructor for class no.ntnu.idatt1002.demo.view.components.NumberField
-
Constructor with default value.
- NumberField(int, IntConsumer) - Constructor for class no.ntnu.idatt1002.demo.view.components.NumberField
-
Constructor with default value and on change listener.
- NumberField(String, IntConsumer) - Constructor for class no.ntnu.idatt1002.demo.view.components.NumberField
- NumberField(IntConsumer) - Constructor for class no.ntnu.idatt1002.demo.view.components.NumberField
-
Constructor with on change listener.
O
- ofList(String, List<? extends Storable>) - Static method in class no.ntnu.idatt1002.demo.view.components.Field
-
Create a new field of type list.
- ofMap(String, Map<Integer, ? extends Storable>) - Static method in class no.ntnu.idatt1002.demo.view.components.Field
- ofNumber(String) - Static method in class no.ntnu.idatt1002.demo.view.components.Field
-
Create a new field of type number.
- ofString(String) - Static method in class no.ntnu.idatt1002.demo.view.components.Field
- onAdd - Variable in class no.ntnu.idatt1002.demo.view.components.AddPopup
- onAdd - Variable in class no.ntnu.idatt1002.demo.view.components.ListHeader
- onBlur - Variable in class no.ntnu.idatt1002.demo.view.components.SearchBar
- onChange - Variable in class no.ntnu.idatt1002.demo.view.components.SearchBar
- onClose - Variable in class no.ntnu.idatt1002.demo.view.components.Toast
- onDelete - Variable in class no.ntnu.idatt1002.demo.view.components.EventPopup
- onDelete - Variable in class no.ntnu.idatt1002.demo.view.components.ItemPopup
- onDelete - Variable in class no.ntnu.idatt1002.demo.view.components.RecipeIngredientField
- onDelete - Variable in class no.ntnu.idatt1002.demo.view.components.RecipePopup
- onDelete - Variable in class no.ntnu.idatt1002.demo.view.components.ShoppingListItemPopup
- onDelete - Variable in class no.ntnu.idatt1002.demo.view.components.StepField
- onFilterChange - Variable in class no.ntnu.idatt1002.demo.view.components.ListHeader
- onFocus - Variable in class no.ntnu.idatt1002.demo.view.components.SearchBar
- onSave - Variable in class no.ntnu.idatt1002.demo.view.components.EventPopup
- onSave - Variable in class no.ntnu.idatt1002.demo.view.components.ItemPopup
- onSave - Variable in class no.ntnu.idatt1002.demo.view.components.RecipePopup
- onSave - Variable in class no.ntnu.idatt1002.demo.view.components.ShoppingListItemPopup
- onSearch - Variable in class no.ntnu.idatt1002.demo.view.components.ListHeader
- onSearch - Variable in class no.ntnu.idatt1002.demo.view.components.SearchBar
- onSearchQueryChange - Variable in class no.ntnu.idatt1002.demo.view.components.ListHeader
- onSortChange - Variable in class no.ntnu.idatt1002.demo.view.components.ListHeader
- onSubmit(String) - Method in class no.ntnu.idatt1002.demo.view.components.NumberField
- onSwitch - Variable in class no.ntnu.idatt1002.demo.view.components.PageSwitcher
- onViewModeChange - Variable in class no.ntnu.idatt1002.demo.view.components.ListHeader
- options - Variable in class no.ntnu.idatt1002.demo.view.components.Field
P
- p - Variable in class no.ntnu.idatt1002.demo.view.App
- packageToEvent(List<List<String>>) - Method in class no.ntnu.idatt1002.demo.repo.EventRegister
-
Helper method to package the events into the Event class.
- packageToInventoryItems(List<List<String>>) - Method in class no.ntnu.idatt1002.demo.repo.InventoryRegister
-
This method packages lists of lists representing inventory items into InventoryItem objects.
- packageToItem(List<List<String>>) - Method in class no.ntnu.idatt1002.demo.repo.ItemRegister
-
This method packages the lists of strings into items.
- packagetoRecipe(List<List<String>>) - Method in class no.ntnu.idatt1002.demo.repo.RecipeRegister
-
This method packages the recipes into a list of recipes.
- packageToShoppingListItem(List<List<String>>) - Method in class no.ntnu.idatt1002.demo.repo.ShoppingListItemRegister
-
Helper method to package the shopping list items into a list of shopping list items.
- Page() - Constructor for enum class no.ntnu.idatt1002.demo.view.components.RecipePopup.Page
- pageSwitcher - Variable in class no.ntnu.idatt1002.demo.view.components.RecipePopup
- PageSwitcher - Class in no.ntnu.idatt1002.demo.view.components
-
A simple class for switching pages.
- PageSwitcher() - Constructor for class no.ntnu.idatt1002.demo.view.components.PageSwitcher
-
Constructor for the page switcher.
- pair - Variable in class no.ntnu.idatt1002.demo.view.components.RecipePopup
- path - Variable in class no.ntnu.idatt1002.demo.ConfigLoader
- placeholder - Variable in class no.ntnu.idatt1002.demo.view.components.Field
- Plan - Class in no.ntnu.idatt1002.demo.view.scenes
-
The planning page.
- Plan() - Constructor for class no.ntnu.idatt1002.demo.view.scenes.Plan
-
Constructor for the inventory page.
- positionX - Variable in class no.ntnu.idatt1002.demo.view.components.ItemPane
- positionY - Variable in class no.ntnu.idatt1002.demo.view.components.ItemPane
- PRIMARY - Enum constant in enum class no.ntnu.idatt1002.demo.view.components.PrimaryButton.Type
- PrimaryButton - Class in no.ntnu.idatt1002.demo.view.components
-
The main button for the application.
- PrimaryButton(String) - Constructor for class no.ntnu.idatt1002.demo.view.components.PrimaryButton
- PrimaryButton(String, Icon) - Constructor for class no.ntnu.idatt1002.demo.view.components.PrimaryButton
- PrimaryButton(String, PrimaryButton.Type) - Constructor for class no.ntnu.idatt1002.demo.view.components.PrimaryButton
- PrimaryButton(String, PrimaryButton.Type, Icon) - Constructor for class no.ntnu.idatt1002.demo.view.components.PrimaryButton
- PrimaryButton(Icon) - Constructor for class no.ntnu.idatt1002.demo.view.components.PrimaryButton
- PrimaryButton(PrimaryButton.Type, Icon) - Constructor for class no.ntnu.idatt1002.demo.view.components.PrimaryButton
- PrimaryButton.Type - Enum Class in no.ntnu.idatt1002.demo.view.components
-
Enum for the different types of primary buttons.
- properties - Variable in class no.ntnu.idatt1002.demo.ConfigLoader
Q
- quantity - Variable in class no.ntnu.idatt1002.demo.data.QuantityUnit
- quantity - Variable in class no.ntnu.idatt1002.demo.data.ShoppingListItem
- quantity - Variable in class no.ntnu.idatt1002.demo.view.components.ShoppingListItemPane
- QuantityUnit - Class in no.ntnu.idatt1002.demo.data
-
This class is a simple bean for a quantity unit.
- QuantityUnit(int, String) - Constructor for class no.ntnu.idatt1002.demo.data.QuantityUnit
-
Constructor for the QuantityUnit class.
R
- readSvgFromFile(String) - Method in class no.ntnu.idatt1002.demo.view.components.Icon
-
Reads the SVG file and returns the content as a string.
- Recipe - Class in no.ntnu.idatt1002.demo.data
-
This class represents a recipe with a name, category and cooking time.
- Recipe(int, String, int, String) - Constructor for class no.ntnu.idatt1002.demo.data.Recipe
-
Constructor for the Recipe class.
- Recipe(String, int, String) - Constructor for class no.ntnu.idatt1002.demo.data.Recipe
-
Constructor for the Recipe class.
- recipeAmount - Variable in class no.ntnu.idatt1002.demo.view.components.RecipeIngredientField
- recipeId - Variable in class no.ntnu.idatt1002.demo.data.Event
- recipeId - Variable in class no.ntnu.idatt1002.demo.data.Recipe
- recipeId - Variable in class no.ntnu.idatt1002.demo.data.RecipeIngredient
- recipeId - Variable in class no.ntnu.idatt1002.demo.data.RecipeStep
- recipeId - Variable in class no.ntnu.idatt1002.demo.view.components.RecipeIngredientField
- RecipeIngredient - Class in no.ntnu.idatt1002.demo.data
-
This class represents a recipe ingredient connected to a recipe.
- RecipeIngredient(int, int, String, String, String, int, String, int) - Constructor for class no.ntnu.idatt1002.demo.data.RecipeIngredient
-
Constructor for the RecipeIngredient class with recipe ingredient id.
- RecipeIngredient(int, String, String, String, int, String, int) - Constructor for class no.ntnu.idatt1002.demo.data.RecipeIngredient
-
Constructor for the RecipeIngredient class.
- RecipeIngredientField - Class in no.ntnu.idatt1002.demo.view.components
- RecipeIngredientField(RecipeIngredient) - Constructor for class no.ntnu.idatt1002.demo.view.components.RecipeIngredientField
- RecipeIngredientField.onDelete - Interface in no.ntnu.idatt1002.demo.view.components
- recipeIngredientId - Variable in class no.ntnu.idatt1002.demo.data.RecipeIngredient
- RecipePopup - Class in no.ntnu.idatt1002.demo.view.components
-
A popup for adding items to the inventory.
- RecipePopup(Recipe) - Constructor for class no.ntnu.idatt1002.demo.view.components.RecipePopup
-
Constructor for the AddPopup.
- RecipePopup.OnDelete - Interface in no.ntnu.idatt1002.demo.view.components
-
Interface for when the user deletes the item.
- RecipePopup.OnSave - Interface in no.ntnu.idatt1002.demo.view.components
-
Interface for when the user saves the form.
- RecipePopup.Page - Enum Class in no.ntnu.idatt1002.demo.view.components
- RecipeRegister - Class in no.ntnu.idatt1002.demo.repo
-
This class represents a register for recipes.
- RecipeRegister(DAO) - Constructor for class no.ntnu.idatt1002.demo.repo.RecipeRegister
-
Constructor for the RecipeRegister class.
- recipes - Variable in class no.ntnu.idatt1002.demo.repo.RecipeRegister
- recipes - Variable in class no.ntnu.idatt1002.demo.view.scenes.CookBook
- RecipeStep - Class in no.ntnu.idatt1002.demo.data
-
This class is representing an instruction for a recipe.
- RecipeStep(int, int, int, String) - Constructor for class no.ntnu.idatt1002.demo.data.RecipeStep
-
Constructor for the RecipeStep class.
- RecipeStep(int, int, String) - Constructor for class no.ntnu.idatt1002.demo.data.RecipeStep
-
Constructor for the RecipeStep class.
- red - Static variable in class no.ntnu.idatt1002.demo.Logger
- RED - Enum constant in enum class no.ntnu.idatt1002.demo.view.components.PrimaryButton.Type
- REGEX - Static variable in class no.ntnu.idatt1002.demo.view.components.NumberField
- render() - Method in class no.ntnu.idatt1002.demo.view.components.AddPopup
- render() - Method in class no.ntnu.idatt1002.demo.view.components.Field
- renderedField - Variable in class no.ntnu.idatt1002.demo.view.components.Field
- reset - Static variable in class no.ntnu.idatt1002.demo.Logger
- RIGHT - Enum constant in enum class no.ntnu.idatt1002.demo.view.components.ArrowButton.Direction
- rightArrowButton - Variable in class no.ntnu.idatt1002.demo.view.components.ItemBanner
- root - Variable in class no.ntnu.idatt1002.demo.view.App
S
- scale(double) - Method in class no.ntnu.idatt1002.demo.view.components.Icon
-
Scales the icon.
- SceneLoader - Class in no.ntnu.idatt1002.demo
-
The scene loader for the application.
- SceneLoader() - Constructor for class no.ntnu.idatt1002.demo.SceneLoader
-
Constructor for the scene loader.
- scenes - Variable in class no.ntnu.idatt1002.demo.SceneLoader
- scrollPane - Variable in class no.ntnu.idatt1002.demo.view.scenes.CookBook
- scrollPane - Variable in class no.ntnu.idatt1002.demo.view.scenes.Inventory
- search(String) - Method in class no.ntnu.idatt1002.demo.view.scenes.CookBook
- search(String) - Method in class no.ntnu.idatt1002.demo.view.scenes.Inventory
- search(String) - Method in class no.ntnu.idatt1002.demo.view.scenes.ShoppingList
-
Method to search for items in the shopping list updates search on query change.
- searchBar - Variable in class no.ntnu.idatt1002.demo.view.components.ListHeader
- SearchBar - Class in no.ntnu.idatt1002.demo.view.components
-
Searchbar class for the Application.
- SearchBar() - Constructor for class no.ntnu.idatt1002.demo.view.components.SearchBar
-
Constructor for the SearchBar class.
- SearchBar.OnBlur - Interface in no.ntnu.idatt1002.demo.view.components
-
Callback for when the search bar loses focus.
- SearchBar.OnChange - Interface in no.ntnu.idatt1002.demo.view.components
-
Callback for when the contents of the search bar changes.
- SearchBar.OnFocus - Interface in no.ntnu.idatt1002.demo.view.components
-
Callback for when the search bar gains focus.
- SearchBar.OnSearch - Interface in no.ntnu.idatt1002.demo.view.components
-
Callback for when the user presses enter in the search bar.
- searchFromTable(String, String, String, String) - Method in class no.ntnu.idatt1002.demo.dao.DAO
-
This method searches for objects by name in the database.
- searchIcon - Variable in class no.ntnu.idatt1002.demo.view.components.SearchBar
- searchInventoryByName(String) - Method in class no.ntnu.idatt1002.demo.repo.InventoryRegister
-
This method searches for inventory items by name and retrieves them from the database.
- searchItemsByName(String) - Method in class no.ntnu.idatt1002.demo.repo.ItemRegister
-
This method searches for items by name and retrieves them from the database.
- searchItemsByName(String) - Method in class no.ntnu.idatt1002.demo.repo.ShoppingListItemRegister
-
Method to search for items in the shopping list by name.
- searchRecipesByName(String) - Method in class no.ntnu.idatt1002.demo.repo.RecipeRegister
-
This method searches for recipes by name and retrieves them from the database.
- SECONDARY - Enum constant in enum class no.ntnu.idatt1002.demo.view.components.PrimaryButton.Type
- selected - Variable in class no.ntnu.idatt1002.demo.view.components.CheckBoxButton
- selectedButton - Variable in class no.ntnu.idatt1002.demo.view.components.Sidebar
- selectedItemsId - Variable in class no.ntnu.idatt1002.demo.view.scenes.ShoppingList
- selectMenu() - Method in class no.ntnu.idatt1002.demo.view.scenes.CookingMode
- setActiveColor() - Method in class no.ntnu.idatt1002.demo.view.components.ArrowButton
- setButtonType(PrimaryButton.Type) - Method in class no.ntnu.idatt1002.demo.view.components.PrimaryButton
-
Set the type of the button and clears all styles applied by the previous type.
- setCustomStyle(String) - Method in class no.ntnu.idatt1002.demo.view.components.PrimaryButton
- setCustomStyle(String[]) - Method in class no.ntnu.idatt1002.demo.view.components.PrimaryButton
- setDate(LocalDate) - Method in class no.ntnu.idatt1002.demo.data.Date
-
Sets the date.
- setDbPath(String) - Static method in class no.ntnu.idatt1002.demo.dao.DBConnectionProvider
-
Sets the path to the database.
- setFillColor(Color) - Method in class no.ntnu.idatt1002.demo.view.components.Icon
-
Set the fill color of the icon.
- setIcon(Icon) - Method in class no.ntnu.idatt1002.demo.view.components.PrimaryButton
- setInactiveColor() - Method in class no.ntnu.idatt1002.demo.view.components.ArrowButton
- setItemListIndex(int) - Method in class no.ntnu.idatt1002.demo.view.components.ItemBanner
- setItems(ItemPane[]) - Method in class no.ntnu.idatt1002.demo.view.components.ItemBanner
-
Set the items to be displayed in the banner.
- setLevel(int) - Static method in class no.ntnu.idatt1002.demo.Logger
-
Set the log level to the specified level.
- setLevel(Logger.Level) - Static method in class no.ntnu.idatt1002.demo.Logger
-
Sets the log level to the specified level.
- setOnAdd(AddPopup.OnAdd) - Method in class no.ntnu.idatt1002.demo.view.components.AddPopup
-
Set the callback for when the form is submitted.
- setOnAdd(ListHeader.OnAdd) - Method in class no.ntnu.idatt1002.demo.view.components.ListHeader
- setOnBlur(SearchBar.OnBlur) - Method in class no.ntnu.idatt1002.demo.view.components.SearchBar
-
Sets the on blur callback for the search bar.
- setOnChange(InputField.OnChange) - Method in class no.ntnu.idatt1002.demo.view.components.InputField
-
Set the callback for when the value of the input field changes (eg.
- setOnChange(SearchBar.OnChange) - Method in class no.ntnu.idatt1002.demo.view.components.SearchBar
-
Sets the on change callback for the search bar.
- setOnClose(Toast.OnClose) - Method in class no.ntnu.idatt1002.demo.view.components.Toast
- setOnDelete(EventPopup.OnDelete) - Method in class no.ntnu.idatt1002.demo.view.components.EventPopup
- setOnDelete(ItemPopup.OnDelete) - Method in class no.ntnu.idatt1002.demo.view.components.ItemPopup
- setOnDelete(RecipeIngredientField.onDelete) - Method in class no.ntnu.idatt1002.demo.view.components.RecipeIngredientField
- setOnDelete(RecipePopup.OnDelete) - Method in class no.ntnu.idatt1002.demo.view.components.RecipePopup
- setOnDelete(ShoppingListItemPopup.OnDelete) - Method in class no.ntnu.idatt1002.demo.view.components.ShoppingListItemPopup
- setOnDelete(StepField.onDelete) - Method in class no.ntnu.idatt1002.demo.view.components.StepField
- setOnFilterChange(ListHeader.onFilterChange) - Method in class no.ntnu.idatt1002.demo.view.components.ListHeader
-
Set the onFilterChange callback.
- setOnFocus(SearchBar.OnFocus) - Method in class no.ntnu.idatt1002.demo.view.components.SearchBar
-
Sets the on focus callback for the search bar.
- setOnSave(EventPopup.OnSave) - Method in class no.ntnu.idatt1002.demo.view.components.EventPopup
- setOnSave(ItemPopup.OnSave) - Method in class no.ntnu.idatt1002.demo.view.components.ItemPopup
- setOnSave(RecipePopup.OnSave) - Method in class no.ntnu.idatt1002.demo.view.components.RecipePopup
- setOnSave(ShoppingListItemPopup.OnSave) - Method in class no.ntnu.idatt1002.demo.view.components.ShoppingListItemPopup
- setOnSearch(ListHeader.OnSearch) - Method in class no.ntnu.idatt1002.demo.view.components.ListHeader
-
Set the onSearch callback.
- setOnSearch(SearchBar.OnSearch) - Method in class no.ntnu.idatt1002.demo.view.components.SearchBar
-
Sets the on search callback for the search bar.
- setOnSearchQueryChange(ListHeader.OnSearchQueryChange) - Method in class no.ntnu.idatt1002.demo.view.components.ListHeader
-
Set the onSearchQueryChange callback.
- setOnSortChange(ListHeader.OnSortChange) - Method in class no.ntnu.idatt1002.demo.view.components.ListHeader
-
Set the onSortChange callback.
- setOnSubmit(InputField.OnSubmit) - Method in class no.ntnu.idatt1002.demo.view.components.InputField
-
Set the callback for when the form is submitted.
- setOnSwitch(Consumer<Integer>) - Method in class no.ntnu.idatt1002.demo.view.components.PageSwitcher
- setOnViewModeChange(ListHeader.OnViewModeChange) - Method in class no.ntnu.idatt1002.demo.view.components.ListHeader
-
Set the onViewModeChange callback.
- setPosition(int, int) - Method in class no.ntnu.idatt1002.demo.view.components.Icon
-
Set the position of the icon.
- setPosition(int, int) - Method in class no.ntnu.idatt1002.demo.view.components.ItemPane
-
Set the x value of the item.
- setProperty(String, String) - Static method in class no.ntnu.idatt1002.demo.ConfigLoader
-
Sets a specified property.
- setScale(double, double) - Method in class no.ntnu.idatt1002.demo.view.components.ItemPane
-
Set the scale of the item.
- setSelected() - Method in class no.ntnu.idatt1002.demo.view.components.ShoppingListItemPane
- setSelected(boolean) - Method in class no.ntnu.idatt1002.demo.view.components.CheckBoxButton
- setSelectedButton(PrimaryButton) - Method in class no.ntnu.idatt1002.demo.view.components.Sidebar
-
Sets the selected button and updates the styling of the buttons.
- setSize(int) - Method in class no.ntnu.idatt1002.demo.view.components.Icon
-
Set the size of the icon.
- setSpecialPrompt(Text, Consumer<Void>) - Method in class no.ntnu.idatt1002.demo.view.components.AddPopup
-
Set a special prompt at the bottom of the popup.
- setStrokeColor(Color) - Method in class no.ntnu.idatt1002.demo.view.components.Icon
- Settings - Class in no.ntnu.idatt1002.demo.view.scenes
-
The inventory page.
- Settings() - Constructor for class no.ntnu.idatt1002.demo.view.scenes.Settings
- setTitle(String) - Method in class no.ntnu.idatt1002.demo.view.components.ItemBanner
-
Set the title of the banner.
- setValue(T) - Method in class no.ntnu.idatt1002.demo.view.components.Field
- setX(int) - Method in class no.ntnu.idatt1002.demo.view.components.Icon
-
Set the x value of the icon.
- setY(int) - Method in class no.ntnu.idatt1002.demo.view.components.Icon
-
Set the y value of the icon.
- severity - Variable in enum class no.ntnu.idatt1002.demo.Logger.Level
- ShoppingList - Class in no.ntnu.idatt1002.demo.view.scenes
-
The shopping list page
- ShoppingList() - Constructor for class no.ntnu.idatt1002.demo.view.scenes.ShoppingList
-
Constructor for the ShoppingList class.
- shoppingListContainer - Variable in class no.ntnu.idatt1002.demo.view.scenes.ShoppingList
- ShoppingListItem - Class in no.ntnu.idatt1002.demo.data
-
This class is a simple bean for a Shopping list item.
- ShoppingListItem(int, int, String, String, String, int, String) - Constructor for class no.ntnu.idatt1002.demo.data.ShoppingListItem
-
Constructor for the ShoppingListItem class.
- ShoppingListItem(int, String, String, String, int, String) - Constructor for class no.ntnu.idatt1002.demo.data.ShoppingListItem
-
Constructor for the ShoppingListItem class.
- shoppingListItemId - Variable in class no.ntnu.idatt1002.demo.data.ShoppingListItem
- shoppingListItemId - Variable in class no.ntnu.idatt1002.demo.view.components.ShoppingListItemPane
- ShoppingListItemPane - Class in no.ntnu.idatt1002.demo.view.components
- ShoppingListItemPane(int, String, String, int, String) - Constructor for class no.ntnu.idatt1002.demo.view.components.ShoppingListItemPane
- ShoppingListItemPane(ShoppingListItem) - Constructor for class no.ntnu.idatt1002.demo.view.components.ShoppingListItemPane
- ShoppingListItemPopup - Class in no.ntnu.idatt1002.demo.view.components
- ShoppingListItemPopup(ShoppingListItem) - Constructor for class no.ntnu.idatt1002.demo.view.components.ShoppingListItemPopup
-
Constructor for the ShoppingListItemPopup.
- ShoppingListItemPopup.OnDelete - Interface in no.ntnu.idatt1002.demo.view.components
- ShoppingListItemPopup.OnSave - Interface in no.ntnu.idatt1002.demo.view.components
- ShoppingListItemRegister - Class in no.ntnu.idatt1002.demo.repo
-
This class represents a register for shopping list items.
- ShoppingListItemRegister(DAO) - Constructor for class no.ntnu.idatt1002.demo.repo.ShoppingListItemRegister
-
Constructor for the ShoppingListItemRegister class.
- shoppingListItems - Variable in class no.ntnu.idatt1002.demo.repo.ShoppingListItemRegister
- shoppingListScrollPane - Variable in class no.ntnu.idatt1002.demo.view.scenes.ShoppingList
- showFolderSelection() - Method in class no.ntnu.idatt1002.demo.view.Installer
- Sidebar - Class in no.ntnu.idatt1002.demo.view.components
-
The sidebar for the application.
- Sidebar(SceneLoader) - Constructor for class no.ntnu.idatt1002.demo.view.components.Sidebar
-
Constructor for the sidebar.
- SIDEBAR_WIDTH - Static variable in class no.ntnu.idatt1002.demo.view.App
- size - Variable in class no.ntnu.idatt1002.demo.view.components.Icon
- sort - Variable in class no.ntnu.idatt1002.demo.view.components.ListHeader
- sortBy - Variable in class no.ntnu.idatt1002.demo.view.scenes.ShoppingList
- sortBy(String) - Method in class no.ntnu.idatt1002.demo.view.scenes.ShoppingList
- SPACING - Static variable in class no.ntnu.idatt1002.demo.view.components.ListItem
- specialPrompt - Variable in class no.ntnu.idatt1002.demo.view.components.AddPopup
- splitSvgContent(String, String) - Method in class no.ntnu.idatt1002.demo.view.components.Icon
-
Splits the SVG content and returns the value of the attribute.
- start(Stage) - Method in class no.ntnu.idatt1002.demo.view.App
- startCooking(Recipe) - Method in class no.ntnu.idatt1002.demo.view.scenes.CookingMode
- startInstallApp() - Method in class no.ntnu.idatt1002.demo.view.App
- startMainApp() - Method in class no.ntnu.idatt1002.demo.view.App
- startTransition(int, int) - Method in class no.ntnu.idatt1002.demo.view.components.ItemBanner
- staticListBottomBar - Variable in class no.ntnu.idatt1002.demo.view.scenes.ShoppingList
- staticListTopBar - Variable in class no.ntnu.idatt1002.demo.view.scenes.ShoppingList
- step - Variable in class no.ntnu.idatt1002.demo.view.components.StepField
- StepField - Class in no.ntnu.idatt1002.demo.view.components
- StepField(RecipeStep) - Constructor for class no.ntnu.idatt1002.demo.view.components.StepField
- StepField.onDelete - Interface in no.ntnu.idatt1002.demo.view.components
- stepId - Variable in class no.ntnu.idatt1002.demo.data.RecipeStep
- stepId - Variable in class no.ntnu.idatt1002.demo.view.components.StepField
- stepNumber - Variable in class no.ntnu.idatt1002.demo.data.RecipeStep
- stepsField - Variable in class no.ntnu.idatt1002.demo.view.components.RecipePopup
- stepText - Variable in class no.ntnu.idatt1002.demo.view.components.StepField
- Storable - Interface in no.ntnu.idatt1002.demo.data
-
This interface is used to store objects in the database.
- STRING - Enum constant in enum class no.ntnu.idatt1002.demo.view.components.Field.FieldType
- strokeWidth - Variable in class no.ntnu.idatt1002.demo.view.components.Icon
- submitButton - Variable in class no.ntnu.idatt1002.demo.view.components.RecipePopup
- SUCCESS - Enum constant in enum class no.ntnu.idatt1002.demo.view.components.Toast.ToastType
- svgPath - Variable in class no.ntnu.idatt1002.demo.view.components.Icon
- switchIcon() - Method in class no.ntnu.idatt1002.demo.view.components.ShoppingListItemPane
- switchPopupPage(RecipePopup.Page) - Method in class no.ntnu.idatt1002.demo.view.components.RecipePopup
- switchScene(String) - Method in class no.ntnu.idatt1002.demo.SceneLoader
-
Switches the scene to the given scene.
T
- TABLE_NAME - Static variable in class no.ntnu.idatt1002.demo.repo.InventoryRegister
- timefield - Variable in class no.ntnu.idatt1002.demo.view.components.RecipePopup
- title - Variable in class no.ntnu.idatt1002.demo.view.components.RecipePopup
- title - Variable in class no.ntnu.idatt1002.demo.view.components.Toast
- Toast - Class in no.ntnu.idatt1002.demo.view.components
- Toast(String, String) - Constructor for class no.ntnu.idatt1002.demo.view.components.Toast
- Toast(String, String, Toast.ToastType) - Constructor for class no.ntnu.idatt1002.demo.view.components.Toast
- Toast.OnClose - Interface in no.ntnu.idatt1002.demo.view.components
-
Interface for the onClose event.
- Toast.ToastType - Enum Class in no.ntnu.idatt1002.demo.view.components
-
Different types of toasts.
- ToastProvider - Class in no.ntnu.idatt1002.demo.view.components
-
A provider for toasts.
- ToastProvider() - Constructor for class no.ntnu.idatt1002.demo.view.components.ToastProvider
- toastQueue - Variable in class no.ntnu.idatt1002.demo.view.components.ToastProvider
- ToastType() - Constructor for enum class no.ntnu.idatt1002.demo.view.components.Toast.ToastType
- toString() - Method in class no.ntnu.idatt1002.demo.data.Date
- toString() - Method in class no.ntnu.idatt1002.demo.data.Event
- toString() - Method in class no.ntnu.idatt1002.demo.data.Item
-
Returns a string representation of the item.
- toString() - Method in class no.ntnu.idatt1002.demo.data.QuantityUnit
- toString() - Method in class no.ntnu.idatt1002.demo.data.Recipe
-
Returns the recipe as a string representation.
- toString() - Method in class no.ntnu.idatt1002.demo.repo.EventRegister
-
Returns a string representation of the events.
- toString() - Method in class no.ntnu.idatt1002.demo.repo.ItemRegister
-
Returns a string representation of the item register.
- toString() - Method in class no.ntnu.idatt1002.demo.repo.RecipeRegister
-
Returns a string representation of the recipe register.
- transitionTo(int) - Method in class no.ntnu.idatt1002.demo.view.components.ItemBanner
-
Starts a transition to the specified item index.
- TRANSPARENT - Enum constant in enum class no.ntnu.idatt1002.demo.view.components.PrimaryButton.Type
- type - Variable in class no.ntnu.idatt1002.demo.view.components.AddPopup
- type - Variable in class no.ntnu.idatt1002.demo.view.components.Field
- type - Variable in class no.ntnu.idatt1002.demo.view.components.Toast
- Type() - Constructor for enum class no.ntnu.idatt1002.demo.view.components.PrimaryButton.Type
U
- unit - Variable in class no.ntnu.idatt1002.demo.data.QuantityUnit
- unit - Variable in class no.ntnu.idatt1002.demo.data.ShoppingListItem
- unit - Variable in class no.ntnu.idatt1002.demo.view.components.RecipeIngredientField
- unit - Variable in class no.ntnu.idatt1002.demo.view.components.ShoppingListItemPane
- UP - Enum constant in enum class no.ntnu.idatt1002.demo.view.components.ArrowButton.Direction
- update() - Method in class no.ntnu.idatt1002.demo.view.components.ItemBanner
-
Updates the banner with the current items and index.
- update(ShoppingListItem) - Method in class no.ntnu.idatt1002.demo.view.components.ShoppingListItemPane
- UpdateableScene - Interface in no.ntnu.idatt1002.demo
- updateDatabase(Storable) - Method in class no.ntnu.idatt1002.demo.dao.DAO
-
This method updates a storable object in the database.
- updateEvent(int, int, int) - Method in class no.ntnu.idatt1002.demo.repo.EventRegister
-
This method updates an event in the database.
- updateEvent(Object[]) - Method in class no.ntnu.idatt1002.demo.view.scenes.Plan
- updateIngredient(int, int, int, String) - Method in class no.ntnu.idatt1002.demo.repo.RecipeRegister
-
This method updates an ingredient in the database.
- updateInstrucution(int, int, String) - Method in class no.ntnu.idatt1002.demo.repo.RecipeRegister
-
This method updates an instruction in the database.
- updateInventoryItem(int, int, int, String, int) - Method in class no.ntnu.idatt1002.demo.repo.InventoryRegister
-
This method updates an inventory item in the database.
- updateItem(int, int, String, String, String, String, int, int) - Method in class no.ntnu.idatt1002.demo.view.scenes.Inventory
- updateItem(int, String, String, Integer, Map<Integer, Pair<Integer, String>>, Map<Integer, Integer>, List<RecipeStep>, List<RecipeStep>) - Method in class no.ntnu.idatt1002.demo.view.scenes.CookBook
- updateItem(int, String, String, String) - Method in class no.ntnu.idatt1002.demo.repo.ItemRegister
-
Updates an item in the database.
- updateRecipe(int, String, int, String) - Method in class no.ntnu.idatt1002.demo.repo.RecipeRegister
-
This method updates a recipe in the database.
- updateScene() - Method in interface no.ntnu.idatt1002.demo.UpdateableScene
-
Method for updating the scene.
- updateScene() - Method in class no.ntnu.idatt1002.demo.view.scenes.CookBook
- updateScene() - Method in class no.ntnu.idatt1002.demo.view.scenes.CookingMode
-
Updates the scene.
- updateScene() - Method in class no.ntnu.idatt1002.demo.view.scenes.Inventory
- updateScene() - Method in class no.ntnu.idatt1002.demo.view.scenes.Plan
- updateScene() - Method in class no.ntnu.idatt1002.demo.view.scenes.Settings
- updateScene() - Method in class no.ntnu.idatt1002.demo.view.scenes.ShoppingList
- updateShoppingListItem(int, int, int, String) - Method in class no.ntnu.idatt1002.demo.repo.ShoppingListItemRegister
-
Method for updating a shopping list item in the database.
- updateShoppingListItem(Object[]) - Method in class no.ntnu.idatt1002.demo.view.scenes.ShoppingList
-
Method to update a shopping list item.
- url - Variable in class no.ntnu.idatt1002.demo.dao.DBConnectionProvider
V
- value - Variable in class no.ntnu.idatt1002.demo.view.components.Field
- valueOf(String) - Static method in enum class no.ntnu.idatt1002.demo.Logger.Level
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class no.ntnu.idatt1002.demo.view.components.ArrowButton.Direction
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class no.ntnu.idatt1002.demo.view.components.Field.FieldType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class no.ntnu.idatt1002.demo.view.components.PrimaryButton.Type
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class no.ntnu.idatt1002.demo.view.components.RecipePopup.Page
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class no.ntnu.idatt1002.demo.view.components.Toast.ToastType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class no.ntnu.idatt1002.demo.view.components.ViewModeButton.ViewMode
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class no.ntnu.idatt1002.demo.Logger.Level
-
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.view.components.ArrowButton.Direction
-
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.view.components.Field.FieldType
-
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.view.components.PrimaryButton.Type
-
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.view.components.RecipePopup.Page
-
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.view.components.Toast.ToastType
-
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.view.components.ViewModeButton.ViewMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- verifyDateDay(int, String) - Static method in class no.ntnu.idatt1002.demo.util.VerifyInput
-
Checks if the day in an int(date) is between 01 and 31.
- verifyDateLength(int, String) - Static method in class no.ntnu.idatt1002.demo.util.VerifyInput
-
Checks if an int(date) has the correct length of six figures.
- verifyDateMonth(int, String) - Static method in class no.ntnu.idatt1002.demo.util.VerifyInput
-
Checks if the month in an int(date) is between 01 and 12.
- verifyDateZeroAndMinusOneAccepted(int, String) - Static method in class no.ntnu.idatt1002.demo.util.VerifyInput
-
Checks if an int(date) has the correct length of eight figures or is zero or minus one.
- verifyDayForFebruary(int, int, String) - Static method in class no.ntnu.idatt1002.demo.util.VerifyInput
-
Checks if the day in an int(date) is between 01 and 29 or 01 and 28 depending on if it is a leap year.
- verifyIndex(int, int) - Method in class no.ntnu.idatt1002.demo.view.components.ItemBanner
- VerifyInput - Class in no.ntnu.idatt1002.demo.util
-
Class for verifying input in the data package.
- VerifyInput() - Constructor for class no.ntnu.idatt1002.demo.util.VerifyInput
- verifyNotEmpty(String, String) - Static method in class no.ntnu.idatt1002.demo.util.VerifyInput
-
Checks if a string is null or empty.
- verifyNotNull(Object, String) - Static method in class no.ntnu.idatt1002.demo.util.VerifyInput
-
Checks if an object is null.
- verifyPositiveNumberMinusOneAccepted(int, String) - Static method in class no.ntnu.idatt1002.demo.util.VerifyInput
-
Checks if an int is a positive number or minus one.
- verifyPositiveNumberMinusOneNotAccepted(int, String) - Static method in class no.ntnu.idatt1002.demo.util.VerifyInput
-
Checks if an int is a positive number.
- verifyPositiveNumberZeroNotAccepted(int, String) - Static method in class no.ntnu.idatt1002.demo.util.VerifyInput
-
Checks if an int is a positive number equal to or greater than 1.
- viewMode - Variable in class no.ntnu.idatt1002.demo.view.components.ViewModeButton
- ViewMode(String) - Constructor for enum class no.ntnu.idatt1002.demo.view.components.ViewModeButton.ViewMode
- ViewModeButton - Class in no.ntnu.idatt1002.demo.view.components
-
A button for changing the view mode of the application.
- ViewModeButton(ViewModeButton.ViewMode) - Constructor for class no.ntnu.idatt1002.demo.view.components.ViewModeButton
- ViewModeButton.ViewMode - Enum Class in no.ntnu.idatt1002.demo.view.components
-
Enum for the different view modes.
W
- warning(String) - Static method in class no.ntnu.idatt1002.demo.Logger
-
Logs a warning message.
- WARNING - Enum constant in enum class no.ntnu.idatt1002.demo.Logger.Level
- WHITE - Enum constant in enum class no.ntnu.idatt1002.demo.view.components.PrimaryButton.Type
X
Y
- y - Variable in class no.ntnu.idatt1002.demo.view.components.Icon
- yellow - Static variable in class no.ntnu.idatt1002.demo.Logger
All Classes and Interfaces|All Packages|Constant Field Values