Class ScenariosListView
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.VerticalLayout>
it.uniupo.simnova.views.creation.ScenariosListView
- All Implemented Interfaces:
- com.vaadin.flow.component.AttachNotifier,- com.vaadin.flow.component.DetachNotifier,- com.vaadin.flow.component.HasElement,- com.vaadin.flow.component.HasStyle,- Serializable
@Route(value="scenari",
       layout=MainLayout.class)
public class ScenariosListView
extends com.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.VerticalLayout>
Vista per la gestione e visualizzazione della lista degli scenari.
 Permette di filtrare, cercare, esportare (PDF, ZIP) ed eliminare scenari.
 Utilizza Vaadin per la creazione dell'interfaccia utente.
- Version:
- 1.2
- Author:
- Alessandro Zappatore
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionfinal AtomicBooleanIndica se la vista è stata distaccata dall'UI.
- 
Constructor SummaryConstructorsConstructorDescriptionScenariosListView(ScenarioService scenarioService, ZipExportService zipExportService, FileStorageService fileStorageService, ScenarioImportService scenarioImportService, AzioneChiaveService azioneChiaveService, PazienteT0Service pazienteT0Service, EsameFisicoService esameFisicoService, EsameRefertoService esameRefertoService, AdvancedScenarioService advancedScenarioService, PatientSimulatedScenarioService patientSimulatedScenarioService, ScenarioDeletionService scenarioDeletionService, MaterialeService materialeService) Costruttore privato per evitare la creazione di istanze senza iniezione dei servizi.
- 
Method SummaryModifier and TypeMethodDescriptionvoidloadData()Carica i dati degli scenari in modo asincrono, mostrando una barra di progresso e aggiornando la griglia e i filtri all'occorrenza.protected voidonAttach(com.vaadin.flow.component.AttachEvent attachEvent) Eseguito quando la vista viene collegata all'interfaccia utente.protected voidonDetach(com.vaadin.flow.component.DetachEvent detachEvent) Eseguito quando la vista viene distaccata dall'UI.Methods inherited from class com.vaadin.flow.component.CompositegetChildren, getContent, getElement, initContentMethods inherited from class com.vaadin.flow.component.ComponentaddListener, findAncestor, fireEvent, from, get, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifieraddAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifieraddDetachListenerMethods inherited from interface com.vaadin.flow.component.HasStyleaddClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
- 
Field Details- 
detachedIndica se la vista è stata distaccata dall'UI. Utilizzato per evitare operazioni su UI distaccate.
 
- 
- 
Constructor Details- 
ScenariosListView@Autowired public ScenariosListView(ScenarioService scenarioService, ZipExportService zipExportService, FileStorageService fileStorageService, ScenarioImportService scenarioImportService, AzioneChiaveService azioneChiaveService, PazienteT0Service pazienteT0Service, EsameFisicoService esameFisicoService, EsameRefertoService esameRefertoService, AdvancedScenarioService advancedScenarioService, PatientSimulatedScenarioService patientSimulatedScenarioService, ScenarioDeletionService scenarioDeletionService, MaterialeService materialeService) Costruttore privato per evitare la creazione di istanze senza iniezione dei servizi.- Parameters:
- scenarioService- servizio per la gestione degli scenari
- zipExportService- servizio per l'esportazione in formato ZIP
- fileStorageService- servizio per la gestione dei file
- scenarioImportService- servizio per l'importazione degli scenari
- azioneChiaveService- servizio per la gestione delle azioni chiave
- pazienteT0Service- servizio per la gestione dei pazienti T0
- esameFisicoService- servizio per la gestione degli esami fisici
- esameRefertoService- servizio per la gestione degli esami e referti
- advancedScenarioService- servizio per la gestione degli scenari avanzati
- patientSimulatedScenarioService- servizio per la gestione degli scenari simulati per pazienti
- scenarioDeletionService- servizio per la cancellazione degli scenari
- materialeService- servizio per la gestione del materiale necessario
 
 
- 
- 
Method Details- 
onAttachprotected void onAttach(com.vaadin.flow.component.AttachEvent attachEvent) Eseguito quando la vista viene collegata all'interfaccia utente. Questo è il punto corretto per avviare operazioni di caricamento dati asincrone.- Overrides:
- onAttachin class- com.vaadin.flow.component.Component
- Parameters:
- attachEvent- l'evento di collegamento
 
- 
onDetachprotected void onDetach(com.vaadin.flow.component.DetachEvent detachEvent) Eseguito quando la vista viene distaccata dall'UI. Imposta il flagdetachedsu true e spegne l'ExecutorService.- Overrides:
- onDetachin class- com.vaadin.flow.component.Component
- Parameters:
- detachEvent- L'evento di distacco.
 
- 
loadDatapublic void loadData()Carica i dati degli scenari in modo asincrono, mostrando una barra di progresso e aggiornando la griglia e i filtri all'occorrenza.
 
-