Package com.decs.application.views
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
FieldsModifier and TypeFieldDescriptionprivate com.vaadin.flow.server.auth.AccessAnnotationCheckerprivate AuthenticatedUserprivate com.vaadin.flow.component.html.H2 -
Constructor Summary
ConstructorsConstructorDescriptionMainLayout(AuthenticatedUser authenticatedUser, com.vaadin.flow.server.auth.AccessAnnotationChecker accessChecker, SlaveManager slaveManager, ObjectListDatabase objectListDatabase) Class Constructor -
Method Summary
Modifier and TypeMethodDescriptionprivate voidBuilds the drawer contentprivate voidBuilds the header section of the layoutprotected voidprivate com.vaadin.flow.component.html.FooterBuilds the footer of the layoutprivate com.vaadin.flow.component.sidenav.SideNav[]Builds the navigation menuprivate StringMethods inherited from class com.vaadin.flow.component.applayout.AppLayout
addToDrawer, addToNavbar, addToNavbar, 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
-
viewTitle
private com.vaadin.flow.component.html.H2 viewTitle -
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 objectaccessChecker- Access Check objectslaveManager- Slave manager instanceobjectListDatabase- 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 -
getCurrentPageTitle
-