Class MainLayout

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.applayout.AppLayout
com.decs.application.views.MainLayout
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, com.vaadin.flow.router.RouterLayout, Serializable

public class MainLayout extends com.vaadin.flow.component.applayout.AppLayout
Main Layout Class

This class implements the main layout of the web application. It represents the higher level in the structure of the application's visual layouts.

Version:
1.0
Author:
Bruno Guiomar
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.vaadin.flow.component.applayout.AppLayout

    com.vaadin.flow.component.applayout.AppLayout.AppLayoutI18n, com.vaadin.flow.component.applayout.AppLayout.Section
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private com.vaadin.flow.server.auth.AccessAnnotationChecker
     
     
    private com.vaadin.flow.component.html.H2
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    MainLayout(AuthenticatedUser authenticatedUser, com.vaadin.flow.server.auth.AccessAnnotationChecker accessChecker, SlaveManager slaveManager, ObjectListDatabase objectListDatabase)
    Class Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    private void
    Builds the drawer content
    private void
    Builds the header section of the layout
    protected void
     
    private com.vaadin.flow.component.html.Footer
    Builds the footer of the layout
    private com.vaadin.flow.component.sidenav.SideNav[]
    Builds the navigation menu
    private String
     

    Methods inherited from class com.vaadin.flow.component.applayout.AppLayout

    addToDrawer, addToNavbar, addToNavbar, getContent, getI18n, getPrimarySection, isDrawerOpened, isOverlay, onAttach, remove, setContent, setDrawerOpened, setI18n, setPrimarySection, showRouterLayoutContent

    Methods inherited from class com.vaadin.flow.component.Component

    addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisible

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.component.AttachNotifier

    addAttachListener

    Methods inherited from interface com.vaadin.flow.component.DetachNotifier

    addDetachListener

    Methods inherited from interface com.vaadin.flow.component.HasElement

    getElement

    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 Details

    • viewTitle

      private com.vaadin.flow.component.html.H2 viewTitle
    • authenticatedUser

      private AuthenticatedUser authenticatedUser
    • accessChecker

      private com.vaadin.flow.server.auth.AccessAnnotationChecker accessChecker
  • Constructor Details

    • MainLayout

      public MainLayout(AuthenticatedUser authenticatedUser, com.vaadin.flow.server.auth.AccessAnnotationChecker accessChecker, SlaveManager slaveManager, ObjectListDatabase objectListDatabase)
      Class Constructor
      Parameters:
      authenticatedUser - Authenticated user object
      accessChecker - Access Check object
      slaveManager - Slave manager instance
      objectListDatabase - Object list Database instance
  • Method Details

    • addHeaderContent

      private void addHeaderContent()
      Builds the header section of the layout
    • addDrawerContent

      private void addDrawerContent()
      Builds the drawer content
    • createNavigation

      private com.vaadin.flow.component.sidenav.SideNav[] createNavigation()
      Builds the navigation menu
      Returns:
      Side navigation object
    • createFooter

      private com.vaadin.flow.component.html.Footer createFooter()
      Builds the footer of the layout
      Returns:
      Footer object
    • afterNavigation

      protected void afterNavigation()
      Overrides:
      afterNavigation in class com.vaadin.flow.component.applayout.AppLayout
    • getCurrentPageTitle

      private String getCurrentPageTitle()