Class MaterialenecessarioView
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.VerticalLayout>
it.uniupo.simnova.views.creation.risorse.MaterialenecessarioView
- 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="materialeNecessario",
       layout=MainLayout.class)
public class MaterialenecessarioView
extends com.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.VerticalLayout>
implements com.vaadin.flow.router.HasUrlParameter<String>
Vista per la gestione del ***materiale necessario** per l'allestimento dello scenario di simulazione.
 Permette di selezionare materiali da una lista esistente, aggiungere nuovi materiali
 e rimuovere materiali dalla lista selezionata o dal database.
- Version:
- 2.0
- Author:
- Alessandro Zappatore
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionMaterialenecessarioView(ScenarioService scenarioService, MaterialeService materialeService, FileStorageService fileStorageService) Costruttore della vistaMaterialenecessarioView.
- 
Method SummaryModifier and TypeMethodDescriptionvoidsetParameter(com.vaadin.flow.router.BeforeEvent event, String parameter) Gestisce il parametro dell'URL, che può includere l'ID dello scenario e la modalità (edit/create).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- 
MaterialenecessarioViewpublic MaterialenecessarioView(ScenarioService scenarioService, MaterialeService materialeService, FileStorageService fileStorageService) Costruttore della vistaMaterialenecessarioView. Inizializza i servizi e configura la struttura base dell'interfaccia utente, incluse le griglie per i materiali disponibili e selezionati.- Parameters:
- scenarioService- Il servizio per la gestione degli scenari.
- materialeService- Il servizio per la gestione dei materiali.
- fileStorageService- Il servizio per la gestione dei file, utilizzato per l'AppHeader.
 
 
- 
- 
Method Details- 
setParameterpublic void setParameter(com.vaadin.flow.router.BeforeEvent event, @WildcardParameter String parameter) Gestisce il parametro dell'URL, che può includere l'ID dello scenario e la modalità (edit/create). Carica i dati esistenti se in modalità "edit".- Specified by:
- setParameterin interface- com.vaadin.flow.router.HasUrlParameter<String>
- Parameters:
- event- L'evento di navigazione.
- parameter- La stringa del parametro URL (es. "123/edit").
- Throws:
- com.vaadin.flow.router.NotFoundException- Se l'ID dello scenario non è valido o mancante.
 
 
-