Class TargetView
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.TargetView
- 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="target",
       layout=MainLayout.class)
public class TargetView
extends com.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.VerticalLayout>
implements com.vaadin.flow.router.HasUrlParameter<String>
Vista per la selezione del target e dei gruppi di apprendimento per uno scenario di simulazione.
 
Questa vista permette di specificare a quale categoria di professionisti sanitari o studenti è destinato lo scenario. Offre opzioni per diverse specializzazioni e anni di corso, con campi condizionali che appaiono in base alla selezione.
- Version:
- 1.0
- Author:
- Alessandro Zappatore
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionTargetView(ScenarioService scenarioService, FileStorageService fileStorageService) Costruisce una nuova istanza diTargetView.
- 
Method SummaryModifier and TypeMethodDescriptionvoidsetParameter(com.vaadin.flow.router.BeforeEvent event, String parameter) Implementazione del metodoHasUrlParameter.setParameter(BeforeEvent, Object).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, onAttach, onDetach, 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
- 
Constructor Details- 
TargetViewCostruisce una nuova istanza diTargetView. Inizializza l'interfaccia utente, inclusi l'header, il corpo centrale con le opzioni di selezione target 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.
 
 
- 
- 
Method Details- 
setParameterpublic void setParameter(com.vaadin.flow.router.BeforeEvent event, @WildcardParameter String parameter) Implementazione del metodoHasUrlParameter.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à (creazione o modifica) dall'URL.- Specified by:
- setParameterin 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.
 
 
-