com.vaadin.flow.component.applayout.

Class AppLayout

    • Constructor Detail

      • AppLayout

        public AppLayout()
    • Method Detail

      • setBranding

        public void setBranding(Component branding)

        Sets the component into branding area

        Parameters:

        branding - Component to set into branding area

      • setBranding

        public void setBranding(Element branding)

        Sets the element into branding area

        Parameters:

        branding - Element to set into branding area

      • removeBranding

        public void removeBranding()

        Clears the branding area

      • setContent

        public void setContent(Component content)

        Sets the displayed content.

        Parameters:

        content - Component to display in the content area

      • setContent

        public void setContent(Element content)

        Sets the displayed content.

        Parameters:

        content - Element to display in the content area

      • removeContent

        public void removeContent()

        Removes the displayed content.

      • getMenu

        public Element getMenu()

        Returns:

        Element displayed at the content area.

      • setMenu

        public void setMenu(HasElement menu)

        Sets the component to be placed in the menu slot.

        Parameters:

        menu - HasElement to placed in the menu slot.

      • setMenu

        public void setMenu(Element menu)

        Sets the element to be placed in the menu slot.

        Parameters:

        menu - Element to placed in the menu slot.

      • createMenu

        public AppLayoutMenu createMenu()

        Creates a new empty AppLayoutMenu and sets it as the menu for this AppLayout instance.

        Returns:

        AppLayoutMenu created.

      • removeMenu

        public void removeMenu()

        Remove the menu.