Class ModuleLayout

    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.vaadin.flow.component.orderedlayout.FlexLayout

        com.vaadin.flow.component.orderedlayout.FlexLayout.ContentAlignment, com.vaadin.flow.component.orderedlayout.FlexLayout.FlexDirection, com.vaadin.flow.component.orderedlayout.FlexLayout.FlexWrap, com.vaadin.flow.component.orderedlayout.FlexLayout.WrapMode
      • Nested classes/interfaces inherited from interface com.vaadin.flow.component.orderedlayout.FlexComponent

        com.vaadin.flow.component.orderedlayout.FlexComponent.Alignment, com.vaadin.flow.component.orderedlayout.FlexComponent.JustifyContentMode
    • Constructor Summary

      Constructors 
      Constructor Description
      ModuleLayout()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.vaadin.flow.component.Component buildExtendedHeader​(Session session)
      Builds a header where the items are not grouped in menus.
      void buildHeader​(Session session)  
      void buildSideMenu​(Session session)
      Builds a side menu with the options organized in categories (each category a top-level menu).
      void onAttach​(com.vaadin.flow.component.AttachEvent ev)  
      void showRouterLayoutContent​(com.vaadin.flow.component.HasElement content)  
      • Methods inherited from class com.vaadin.flow.component.orderedlayout.FlexLayout

        getAlignContent, getFlexBasis, getFlexDirection, getFlexShrink, getFlexWrap, getOrder, getWrapMode, setAlignContent, setFlexBasis, setFlexDirection, setFlexShrink, setFlexWrap, setOrder, setWrapMode
      • Methods inherited from class com.vaadin.flow.component.Component

        addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
      • Methods inherited from interface com.vaadin.flow.component.AttachNotifier

        addAttachListener
      • Methods inherited from interface com.vaadin.flow.component.ClickNotifier

        addClickListener, addClickShortcut
      • Methods inherited from interface com.vaadin.flow.component.DetachNotifier

        addDetachListener
      • Methods inherited from interface com.vaadin.flow.component.orderedlayout.FlexComponent

        expand, getAlignItems, getAlignSelf, getFlexGrow, getJustifyContentMode, replace, setAlignItems, setAlignSelf, setFlexGrow, setJustifyContentMode
      • Methods inherited from interface com.vaadin.flow.component.HasComponents

        add, add, addComponentAsFirst, addComponentAtIndex, remove, removeAll
      • Methods inherited from interface com.vaadin.flow.component.HasElement

        getElement
      • Methods inherited from interface com.vaadin.flow.component.HasEnabled

        isEnabled, setEnabled
      • Methods inherited from interface com.vaadin.flow.component.HasOrderedComponents

        getChildren, getComponentAt, getComponentCount, indexOf
      • Methods inherited from interface com.vaadin.flow.component.HasSize

        getHeight, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, setHeight, setHeightFull, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidthFull
      • Methods inherited from interface com.vaadin.flow.component.HasStyle

        addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
      • Methods inherited from interface com.vaadin.flow.router.RouterLayout

        removeRouterLayoutContent
    • Field Detail

      • aem

        @Autowired
        protected ApplicationEntityManager aem
        Reference to the Application Entity Manager so we can check if the Vaadin session is still valid.
      • moduleRegistry

        @Autowired
        protected ModuleRegistry moduleRegistry
        Reference to the module registry.
    • Constructor Detail

      • ModuleLayout

        public ModuleLayout()
    • Method Detail

      • buildHeader

        public void buildHeader​(Session session)
      • buildSideMenu

        public void buildSideMenu​(Session session)
        Builds a side menu with the options organized in categories (each category a top-level menu).
        Parameters:
        session - The session object. This object is used to validate the sections available according to the user privileges.
      • buildExtendedHeader

        public com.vaadin.flow.component.Component buildExtendedHeader​(Session session)
        Builds a header where the items are not grouped in menus.
        Parameters:
        session - The current session.
        Returns:
        A component, most likely an horizontal layout with the items arranged in a single line.
      • onAttach

        public void onAttach​(com.vaadin.flow.component.AttachEvent ev)
        Overrides:
        onAttach in class com.vaadin.flow.component.Component
      • showRouterLayoutContent

        public void showRouterLayoutContent​(com.vaadin.flow.component.HasElement content)
        Specified by:
        showRouterLayoutContent in interface com.vaadin.flow.router.RouterLayout