Class GenitoriView

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.VerticalLayout>
it.uniupo.simnova.views.creation.paziente.GenitoriView
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.HasUrlParameter<String>, Serializable

@Route(value="infoGenitori", layout=MainLayout.class) public class GenitoriView extends com.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.VerticalLayout> implements com.vaadin.flow.router.HasUrlParameter<String>
Vista per la gestione delle ***informazioni per i genitori** nello scenario di simulazione pediatrica. Permette di definire il testo informativo che verrà presentato ai genitori o tutori prima dell'inizio della simulazione. Questa vista è parte del flusso di creazione dello scenario.
Version:
1.0
Author:
Alessandro Zappatore
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    GenitoriView(ScenarioService scenarioService, FileStorageService fileStorageService)
    Costruttore della vista GenitoriView.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setParameter(com.vaadin.flow.router.BeforeEvent event, String parameter)
    Gestisce il parametro dell'URL (ID dello scenario).

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

    getChildren, getContent, getElement, initContent

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

    addListener, findAncestor, fireEvent, from, get, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, 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.HasStyle

    addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
  • Constructor Details

    • GenitoriView

      public GenitoriView(ScenarioService scenarioService, FileStorageService fileStorageService)
      Costruttore della vista GenitoriView. Inizializza i servizi e configura la struttura base dell'interfaccia utente.
      Parameters:
      scenarioService - Il servizio per la gestione degli scenari.
      fileStorageService - Il servizio per la gestione dei file, utilizzato per l'AppHeader.
  • Method Details

    • setParameter

      public void setParameter(com.vaadin.flow.router.BeforeEvent event, @OptionalParameter String parameter)
      Gestisce il parametro dell'URL (ID dello scenario). Verifica la validità dell'ID, la sua esistenza e se lo scenario è di tipo pediatrico. Se lo scenario non è pediatrico, reindirizza direttamente alla vista successiva (`pattoaula`).
      Specified by:
      setParameter in interface com.vaadin.flow.router.HasUrlParameter<String>
      Parameters:
      event - L'evento di navigazione.
      parameter - L'ID dello scenario come stringa.
      Throws:
      com.vaadin.flow.router.NotFoundException - Se l'ID dello scenario non è valido o lo scenario non esiste.