public class MenuComponent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private javafx.scene.control.MenuItem |
helpButton |
private static java.lang.String |
MENU_FXML
The fxml resource for the menu
|
private ViewWithMenu |
parent |
Constructor and Description |
---|
MenuComponent(ViewWithMenu parent,
javafx.scene.layout.HBox placeHolder)
Adds the menu button to the correct place in the view.
|
Modifier and Type | Method and Description |
---|---|
void |
disableHelpButton() |
void |
enableHelpButton() |
javafx.scene.control.MenuItem |
getHelpButton() |
void |
onEditProfileClick() |
void |
onHelpClick() |
void |
onLogoutClick() |
void |
onMyGroceryListsClick() |
void |
onMyRecipesClick() |
void |
onShowMapClick() |
private static final java.lang.String MENU_FXML
private javafx.scene.control.MenuItem helpButton
private ViewWithMenu parent
public MenuComponent(ViewWithMenu parent, javafx.scene.layout.HBox placeHolder)
parent
- ViewWithMenuplaceHolder
- public void onMyGroceryListsClick()
public void onMyRecipesClick()
public void onEditProfileClick()
public void onHelpClick()
public void onLogoutClick()
public void onShowMapClick()
public void enableHelpButton()
public void disableHelpButton()
public javafx.scene.control.MenuItem getHelpButton()