public abstract class ControllerWithMenu extends Controller
Modifier and Type | Field and Description |
---|---|
private HelpPage |
helpPage |
private ViewWithMenu |
viewWithMenu |
master
Constructor and Description |
---|
ControllerWithMenu() |
ControllerWithMenu(HelpPage helpPage) |
Modifier and Type | Method and Description |
---|---|
void |
onHelpViewStatusChanged(boolean isHelpOpen)
Whenever the help window is opened or closed the help button must be disabled or enabled accordingly.
|
void |
onLogout()
Logout
|
void |
onShowAllGroceryLists()
Shows all the grocery lists of the logged in user
|
void |
onShowAllRecipes()
Shows all the recipes of the logged in user
|
void |
onShowEditProfile()
Shows the Edit profile view
|
void |
onShowHelp()
Shows the Help View
|
void |
onShowMap()
Shows the map
|
void |
setView(ViewWithMenu viewWithMenu)
Sets a viewWithMenu as the displayed view
|
isHelpOpen
private final HelpPage helpPage
private ViewWithMenu viewWithMenu
public ControllerWithMenu()
public ControllerWithMenu(HelpPage helpPage)
public void onLogout()
public void onShowMap()
public void onShowEditProfile()
public void onShowAllGroceryLists()
public void onShowAllRecipes()
public void onShowHelp()
public void onHelpViewStatusChanged(boolean isHelpOpen)
onHelpViewStatusChanged
in class Controller
isHelpOpen
- boolean to know if the help is open.public void setView(ViewWithMenu viewWithMenu)
viewWithMenu
-