Class MainLayout

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.applayout.AppLayout
hu.rts.mike.example.dev.crm.view.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.i18n.LocaleChangeObserver, com.vaadin.flow.router.RouterLayout, Serializable
Direct Known Subclasses:
HeaderLayout

public class MainLayout extends com.vaadin.flow.component.applayout.AppLayout implements com.vaadin.flow.i18n.LocaleChangeObserver
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 final com.vaadin.flow.spring.security.AuthenticationContext
     
     
    protected Locale
     
    protected Locale
     
    protected com.vaadin.flow.component.contextmenu.MenuItem
     
    protected final TranslationProvider
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
     
    private com.vaadin.flow.component.html.Footer
     
    private com.vaadin.flow.component.html.Header
     
    private com.vaadin.flow.component.sidenav.SideNav
     
    protected String
     
    protected com.vaadin.flow.component.menubar.MenuBar
     
    void
    localeChange(com.vaadin.flow.i18n.LocaleChangeEvent localeChangeEvent)
     
    protected void
    Stores the users locale preference by creating a 'locale' cookie.
    protected void
     
    private void
     

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

    addToDrawer, addToNavbar, addToNavbar, afterNavigation, 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

    • authInfoDetailsService

      private final AuthInfoDetailsService authInfoDetailsService
    • authenticationContext

      private final com.vaadin.flow.spring.security.AuthenticationContext authenticationContext
    • translationProvider

      protected final TranslationProvider translationProvider
    • toggleThemeItem

      protected com.vaadin.flow.component.contextmenu.MenuItem toggleThemeItem
    • huHU

      protected Locale huHU
    • enUS

      protected Locale enUS
  • Constructor Details

    • MainLayout

      public MainLayout()
  • Method Details

    • addHeaderContent

      protected void addHeaderContent()
    • addDrawerContent

      protected void addDrawerContent()
    • createDrawerHeader

      private com.vaadin.flow.component.html.Header createDrawerHeader()
    • createDrawerFooter

      private com.vaadin.flow.component.html.Footer createDrawerFooter()
    • createNavigation

      private com.vaadin.flow.component.sidenav.SideNav createNavigation()
    • initActionButton

      protected com.vaadin.flow.component.menubar.MenuBar initActionButton()
    • toggleTheme

      protected void toggleTheme()
    • updateThemeItemText

      private void updateThemeItemText()
    • getThemeText

      protected String getThemeText()
    • saveLocalePreference

      protected void saveLocalePreference(Locale locale)
      Stores the users locale preference by creating a 'locale' cookie. This cookie will be read on app initialization by the class LocaleManager.
    • localeChange

      public void localeChange(com.vaadin.flow.i18n.LocaleChangeEvent localeChangeEvent)
      Specified by:
      localeChange in interface com.vaadin.flow.i18n.LocaleChangeObserver