public abstract class AbstractAppRouterLayout extends Object implements RouterLayout
configure method.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAppRouterLayout() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
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.
|
AppLayout |
getAppLayout() |
AppLayoutMenu |
getAppLayoutMenu() |
Element |
getElement()
Gets the element associated with this instance.
|
void |
showRouterLayoutContent(HasElement content)
Shows the content of the layout which is the router target component
annotated with a
@Route. |
protected abstract void configure(AppLayout appLayout, AppLayoutMenu appLayoutMenu)
appLayout - AppLayout parent layoutappLayoutMenu - AppLayoutMenu to configure.protected void beforeNavigate(String route, HasElement content)
route - route that is being navigated tocontent - HasElement the content component being addedprotected void afterNavigate(String route, HasElement content)
route - route navigated tocontent - HasElement the content component addedpublic void showRouterLayoutContent(HasElement content)
RouterLayout@Route.
Note implementors should not care about old
@Route content, because Router automatically removes
it before calling the method.
showRouterLayoutContent in interface RouterLayoutcontent - the content component or null if the layout content is to be cleared.public Element getElement()
HasElementgetElement in interface HasElementpublic AppLayoutMenu getAppLayoutMenu()
AppLayoutMenu which will be updated on navigation.Copyright © 2019. All rights reserved.