Class TempoView

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.VerticalLayout>
it.uniupo.simnova.views.creation.scenario.TempoView
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="tempi", layout=MainLayout.class) public class TempoView extends com.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.VerticalLayout> implements com.vaadin.flow.router.HasUrlParameter<String>
Vista per la creazione e gestione dei "tempi" in uno scenario avanzato di simulazione.

Questa vista consente di definire una sequenza di stati (tempi) del paziente, specificando per ognuno i parametri vitali, le azioni che i discenti devono intraprendere per progredire e le possibili transizioni. Permette anche di aggiungere parametri vitali e metriche personalizzate.

Version:
1.1
Author:
Alessandro Zappatore
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    TempoView(ScenarioService scenarioService, FileStorageService fileStorageService, AdvancedScenarioService advancedScenarioService, PazienteT0Service pazienteT0Service)
    Costruisce una nuova istanza di TempoView.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setParameter(com.vaadin.flow.router.BeforeEvent event, String parameter)
    Implementazione del metodo HasUrlParameter.setParameter(BeforeEvent, Object).

    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

    • TempoView

      public TempoView(ScenarioService scenarioService, FileStorageService fileStorageService, AdvancedScenarioService advancedScenarioService, PazienteT0Service pazienteT0Service)
      Costruisce una nuova istanza di TempoView. Inizializza l'interfaccia utente, inclusi l'header, il corpo centrale con il contenitore dei tempi e il footer con i bottoni di navigazione.
      Parameters:
      scenarioService - Il servizio per la gestione degli scenari.
      fileStorageService - Il servizio per la gestione dei file, utilizzato per l'intestazione dell'applicazione.
      advancedScenarioService - Il servizio specifico per gli scenari avanzati.
      pazienteT0Service - Il servizio per la gestione dei dati del paziente T0.
  • Method Details

    • setParameter

      public void setParameter(com.vaadin.flow.router.BeforeEvent event, @WildcardParameter String parameter)
      Implementazione del metodo HasUrlParameter.setParameter(BeforeEvent, Object). Questo metodo viene chiamato da Vaadin quando la vista viene navigata con un parametro URL. Gestisce l'estrazione dell'ID dello scenario e della modalità ("create" o "edit") dall'URL.
      Specified by:
      setParameter in interface com.vaadin.flow.router.HasUrlParameter<String>
      Parameters:
      event - L'evento di navigazione.
      parameter - Il parametro URL, che può contenere l'ID dello scenario e opzionalmente la modalità "edit" (es. "123" o "123/edit").
      Throws:
      com.vaadin.flow.router.NotFoundException - Se il parametro è nullo, vuoto, non un numero valido, non positivo, o se lo scenario non esiste.