Package hu.rts.mike.example.dev.crm.view
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
FieldsModifier and TypeFieldDescriptionprivate final com.vaadin.flow.spring.security.AuthenticationContextprivate final AuthInfoDetailsServiceprotected Localeprotected Localeprotected com.vaadin.flow.component.contextmenu.MenuItemprotected final TranslationProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprivate com.vaadin.flow.component.html.Footerprivate com.vaadin.flow.component.html.Headerprivate com.vaadin.flow.component.sidenav.SideNavprotected Stringprotected com.vaadin.flow.component.menubar.MenuBarvoidlocaleChange(com.vaadin.flow.i18n.LocaleChangeEvent localeChangeEvent) protected voidsaveLocalePreference(Locale locale) Stores the users locale preference by creating a 'locale' cookie.protected voidprivate voidMethods inherited from class com.vaadin.flow.component.applayout.AppLayout
addToDrawer, addToNavbar, addToNavbar, afterNavigation, getContent, getI18n, getPrimarySection, isDrawerOpened, isOverlay, onAttach, remove, setContent, setDrawerOpened, setI18n, setPrimarySection, showRouterLayoutContentMethods 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, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods inherited from interface com.vaadin.flow.router.RouterLayout
removeRouterLayoutContent
-
Field Details
-
authInfoDetailsService
-
authenticationContext
private final com.vaadin.flow.spring.security.AuthenticationContext authenticationContext -
translationProvider
-
toggleThemeItem
protected com.vaadin.flow.component.contextmenu.MenuItem toggleThemeItem -
huHU
-
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() -
initActionButton
protected com.vaadin.flow.component.menubar.MenuBar initActionButton() -
toggleTheme
protected void toggleTheme() -
updateThemeItemText
private void updateThemeItemText() -
getThemeText
-
saveLocalePreference
Stores the users locale preference by creating a 'locale' cookie. This cookie will be read on app initialization by the classLocaleManager. -
localeChange
public void localeChange(com.vaadin.flow.i18n.LocaleChangeEvent localeChangeEvent) - Specified by:
localeChangein interfacecom.vaadin.flow.i18n.LocaleChangeObserver
-