Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Layout with menu + some static & switchable content

bob block
5 years ago Aug 28, 2016 12:13pm
Alejandro Duarte
5 years ago Aug 29, 2016 9:45am

Hi,

One way to do that is by wrapping all the components on the right side in a Panel:

public class ValoMenuLayout extends HorizontalLayout {
    ...
    public ValoMenuLayout() {
        ...
        Panel rightPanel = new Panel(ver);
        rightPanel.setStyleName(ValoTheme.PANEL_WELL);
        rightPanel.setSizeFull();

        addComponents(menuArea, rightPanel);
        setExpandRatio(rightPanel, 1);
    }
    ...
}

bob block
5 years ago Aug 29, 2016 5:07pm