public abstract class EntityView<T,ID extends Serializable> extends com.vaadin.flow.component.orderedlayout.VerticalLayout implements com.vaadin.flow.router.HasUrlParameter<String>
| Modifier and Type | Class and Description |
|---|---|
class |
EntityView.EntityViewViewChangeListener |
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.context.ApplicationContext |
appContext |
protected EntityForm<T,ID> |
entityForm |
protected Class<? extends EntityForm<T,ID>> |
entityFormClass |
protected ID |
entityId |
protected String |
entityIdString |
static String |
ID_PARAM |
protected com.vaadin.flow.shared.Registration |
leaveRegistration |
static org.slf4j.Logger |
LOGGER |
protected Class<? extends com.vaadin.flow.component.Component> |
parentView |
| Constructor and Description |
|---|
EntityView(Class<? extends EntityForm<T,ID>> formClass) |
EntityView(Class<? extends EntityForm<T,ID>> formClass,
Class<? extends com.vaadin.flow.component.Component> parentView) |
| Modifier and Type | Method and Description |
|---|---|
protected EntityForm<T,ID> |
createEntityForm() |
protected ID |
createEntityId(String s) |
EntityForm<T,ID> |
getEntityForm() |
protected void |
leave() |
void |
postConstruct() |
void |
setParameter(com.vaadin.flow.router.BeforeEvent event,
String parameter) |
addAndExpand, getAlignItems, getAlignSelf, getDefaultHorizontalComponentAlignment, getHorizontalComponentAlignment, setAlignItems, setAlignSelf, setDefaultHorizontalComponentAlignment, setHorizontalComponentAlignment, setPadding, setSpacingaddListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBoxSizing, getThemeList, isMargin, isPadding, isSpacing, setBoxSizing, setMarginexpand, getFlexGrow, getJustifyContentMode, replace, setFlexGrow, setJustifyContentModegetChildren, getComponentAt, getComponentCount, indexOfadd, add, addComponentAsFirst, addComponentAtIndex, remove, removeAlladdClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNamegetCssSize, getHeight, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullpublic static final org.slf4j.Logger LOGGER
public static final String ID_PARAM
@Autowired protected org.springframework.context.ApplicationContext appContext
protected String entityIdString
protected ID extends Serializable entityId
protected Class<? extends EntityForm<T,ID extends Serializable>> entityFormClass
protected Class<? extends com.vaadin.flow.component.Component> parentView
protected EntityForm<T,ID extends Serializable> entityForm
protected com.vaadin.flow.shared.Registration leaveRegistration
public EntityView(Class<? extends EntityForm<T,ID>> formClass)
public EntityView(Class<? extends EntityForm<T,ID>> formClass, Class<? extends com.vaadin.flow.component.Component> parentView)
public void setParameter(com.vaadin.flow.router.BeforeEvent event,
@OptionalParameter
String parameter)
setParameter in interface com.vaadin.flow.router.HasUrlParameter<String>protected EntityForm<T,ID> createEntityForm()
public EntityForm<T,ID> getEntityForm()
@PostConstruct public void postConstruct()
protected void leave()
Copyright © 2021. All rights reserved.