Class SceneggiaturaView

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.SceneggiaturaView
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="sceneggiatura", layout=MainLayout.class) public class SceneggiaturaView extends com.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.VerticalLayout> implements com.vaadin.flow.router.HasUrlParameter<String>
Vista per la gestione della sceneggiatura di uno scenario di simulazione.

Questa vista consente all'utente di inserire o modificare la sceneggiatura dettagliata dello scenario corrente, inclusi azioni, dialoghi ed eventi chiave. È specificamente progettata per gli scenari di tipo "Patient Simulated Scenario".

Implementa HasUrlParameter per ricevere l'ID dello scenario come parametro nell'URL.

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

    Constructors
    Constructor
    Description
    SceneggiaturaView(ScenarioService scenarioService, FileStorageService fileStorageService, PatientSimulatedScenarioService patientSimulatedScenarioService)
    Costruisce una nuova istanza di SceneggiaturaView.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setParameter(com.vaadin.flow.router.BeforeEvent event, String parameter)
    Implementazione del metodo HasUrlParameter.setParameter(BeforeEvent, Object) per gestire l'ID dello scenario passato tramite l'URL.

    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

    • SceneggiaturaView

      public SceneggiaturaView(ScenarioService scenarioService, FileStorageService fileStorageService, PatientSimulatedScenarioService patientSimulatedScenarioService)
      Costruisce una nuova istanza di SceneggiaturaView. Inizializza l'interfaccia utente, inclusi l'header, il corpo centrale con l'editor di testo 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.
      patientSimulatedScenarioService - Il servizio per la gestione degli scenari di tipo "Patient Simulated Scenario".
  • Method Details

    • setParameter

      public void setParameter(com.vaadin.flow.router.BeforeEvent event, @OptionalParameter String parameter)
      Implementazione del metodo HasUrlParameter.setParameter(BeforeEvent, Object) per gestire l'ID dello scenario passato tramite l'URL. Questo metodo è invocato automaticamente da Vaadin all'apertura della vista.
      Specified by:
      setParameter in interface com.vaadin.flow.router.HasUrlParameter<String>
      Parameters:
      event - L'evento di navigazione.
      parameter - L'ID dello scenario come String. Se null o non valido, la navigazione verrà reindirizzata a una pagina di errore. Inoltre, verifica che lo scenario sia effettivamente di tipo "Patient Simulated Scenario".