src/main/java/edu/kit/informatik/pcc/webinterface/gui/navigation/Menu.java
/**
     * This method takes caption and a view so you can add it to the menu.
     *
     * @param caption caption
     * @param viewID  the view to which the menu button will lead
     */
This method takes caption and a view so you can add it to the menu.
@param caption caption
@param viewID  the view to which the menu button will lead
This method takes caption and a view so you can add it to the menu . @param caption caption @param viewID the view to which the menu button will lead
public void addMenuItem(String caption, String viewID) {
        Button button = new Button(caption,
                (Button.ClickListener) clickEvent -> ui.getNavigator().navigateTo(viewID));
        button.setPrimaryStyleName("valo-menu-item");
        menuItemsLayout.addComponent(button);
    }
public void addMenuItem ( String caption , String viewID ) { Button button = new Button ( caption , ( Button . ClickListener ) clickEvent -> ui . getNavigator ( ) . navigateTo ( viewID ) ) ; button . setPrimaryStyleName ( "valo-menu-item" ) ; menuItemsLayout . addComponent ( button ) ; }
This method takes caption and a view so you can add it to the menu.
This method takes caption and a view so you can add it to the menu .