public class RecipeSelectionController extends SelectionController
Modifier and Type | Field and Description |
---|---|
private RecipeDB |
recipeDB |
private static java.lang.String |
TITLE
The title that needs to be passed to the selectionView
|
view
master
Constructor and Description |
---|
RecipeSelectionController(ControllerMaster master) |
Modifier and Type | Method and Description |
---|---|
protected void |
onCreateItem(java.lang.String newRecipeName)
Creates the new recipe, adds it to the DB and then shows the "Edit
Recipe" screen with the newly created (empty) recipe.
|
protected void |
onDelete(java.lang.String recipeName)
Deletes a recipe from the database
|
void |
onSelection(java.lang.String recipeName)
Shows the selected recipe.
|
createNewItem, deleteItem, getItemNames, getView, initializeView, setItemNames
onHelpViewStatusChanged, onLogout, onShowAllGroceryLists, onShowAllRecipes, onShowEditProfile, onShowHelp, onShowMap, setView
isHelpOpen
private static final java.lang.String TITLE
private RecipeDB recipeDB
public RecipeSelectionController(ControllerMaster master)
protected void onCreateItem(java.lang.String newRecipeName) throws ItemCreationException
onCreateItem
in class SelectionController
ItemCreationException
protected void onDelete(java.lang.String recipeName) throws DatabaseException
onDelete
in class SelectionController
recipeName
- DatabaseException
public void onSelection(java.lang.String recipeName)
onSelection
in class SelectionController
recipeName
-