Class MainLayout

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.applayout.AppLayout
it.uniupo.simnova.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
Layout principale dell'applicazione che gestisce le notifiche e l'interfaccia utente. Estende AppLayout per fornire una struttura di layout comune.
Version:
1.0
Author:
Alessandro Zappatore
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
  • Constructor Summary

    Constructors
    Constructor
    Description
    MainLayout(NotifierService notifierService, ActiveNotifierManager activeNotifierManager)
    Costruttore che inizializza il layout principale con i servizi necessari.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    onAttach(com.vaadin.flow.component.AttachEvent attachEvent)
    Metodo chiamato quando il layout viene allegato all'interfaccia utente.
    protected void
    onDetach(com.vaadin.flow.component.DetachEvent detachEvent)
    Metodo chiamato quando il layout viene staccato dall'interfaccia utente.

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

    addToDrawer, addToNavbar, addToNavbar, afterNavigation, getContent, getI18n, getPrimarySection, isDrawerOpened, isOverlay, 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, 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
  • Constructor Details

    • MainLayout

      public MainLayout(NotifierService notifierService, ActiveNotifierManager activeNotifierManager)
      Costruttore che inizializza il layout principale con i servizi necessari.
      Parameters:
      notifierService - il servizio per la gestione delle notifiche
      activeNotifierManager - il gestore delle notifiche attive
  • Method Details

    • onAttach

      protected void onAttach(com.vaadin.flow.component.AttachEvent attachEvent)
      Metodo chiamato quando il layout viene allegato all'interfaccia utente. Registra il servizio di notifica per ricevere aggiornamenti e gestire le notifiche.
      Overrides:
      onAttach in class com.vaadin.flow.component.applayout.AppLayout
      Parameters:
      attachEvent - l'evento di allegamento dell'interfaccia utente
    • onDetach

      protected void onDetach(com.vaadin.flow.component.DetachEvent detachEvent)
      Metodo chiamato quando il layout viene staccato dall'interfaccia utente.
      Overrides:
      onDetach in class com.vaadin.flow.component.Component
      Parameters:
      detachEvent - l'evento di distacco dell'interfaccia utente