com.vaadin.flow.component.applayout.

Class AbstractAppRouterLayout

    • Constructor Detail

      • AbstractAppRouterLayout

        protected AbstractAppRouterLayout()
    • Method Detail

      • configure

        protected abstract void configure(AppLayout appLayout,
                                          AppLayoutMenu appLayoutMenu)

        This hook is called when this router layout is being constructed and provides an opportunity to configure the AppLayout in use.

        Parameters:

        appLayout - AppLayout parent layout

        appLayoutMenu - AppLayoutMenu to configure.

      • beforeNavigate

        protected void beforeNavigate(String route,
                                      HasElement content)

        This hook is called before a navigation is being made into a route which has this router layout as its parent layout.

        Parameters:

        route - route that is being navigated to

        content - HasElement the content component being added

      • afterNavigate

        protected void afterNavigate(String route,
                                     HasElement content)

        This hook is called after a navigation is made into a route which has this router layout as its parent layout.

        Parameters:

        route - route navigated to

        content - HasElement the content component added

      • showRouterLayoutContent

        public void showRouterLayoutContent(HasElement content)

        Description copied from interface: RouterLayout

        Shows the content of the layout which is the router target component annotated with a @Route.

        Note implementors should not care about old @Route content, because Router automatically removes it before calling the method.

        Specified by:

        showRouterLayoutContent in interface RouterLayout

        Parameters:

        content - the content component or null if the layout content is to be cleared.

      • getElement

        public Element getElement()

        Description copied from interface: HasElement

        Gets the element associated with this instance.

        Specified by:

        getElement in interface HasElement

        Returns:

        the element associated with this instance