@Component
@Scope(value="prototype")
public abstract class EntityDialog<T,ID extends Serializable>
extends com.vaadin.flow.component.dialog.Dialog
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.context.ApplicationContext |
appContext |
protected T |
entity |
protected EntityForm<T,ID> |
entityForm |
protected Class<? extends EntityForm<T,ID>> |
entityFormClass |
static org.slf4j.Logger |
LOGGER |
| Constructor and Description |
|---|
EntityDialog(Class<? extends EntityForm<T,ID>> formClass,
T entity) |
| Modifier and Type | Method and Description |
|---|---|
protected EntityForm<T,ID> |
createEntityForm() |
T |
getEntity() |
EntityForm<T,ID> |
getEntityForm() |
void |
postConstruct() |
add, addAttachListener, addComponentAtIndex, addDetachListener, addDialogCloseActionListener, addOpenedChangeListener, addResizeListener, close, getChildren, getHeight, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, isCloseOnEsc, isCloseOnOutsideClick, isDraggable, isModal, isOpened, isResizable, open, remove, removeAll, setCloseOnEsc, setCloseOnOutsideClick, setDraggable, setHeight, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setModal, setOpened, setResizable, setWidthgetAriaLabelString, isOpenedBoolean, setAriaLabeladdListener, fireEvent, from, get, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisiblepublic static final org.slf4j.Logger LOGGER
@Autowired protected org.springframework.context.ApplicationContext appContext
protected Class<? extends EntityForm<T,ID extends Serializable>> entityFormClass
protected EntityForm<T,ID extends Serializable> entityForm
protected T entity
public EntityDialog(Class<? extends EntityForm<T,ID>> formClass, T entity)
@PostConstruct public void postConstruct()
protected EntityForm<T,ID> createEntityForm()
public EntityForm<T,ID> getEntityForm()
public T getEntity()
Copyright © 2021. All rights reserved.