Package io.jmix.flowui.view.builder
Class DetailWindowBuilderProcessor
java.lang.Object
io.jmix.flowui.view.builder.AbstractWindowBuilderProcessor
io.jmix.flowui.view.builder.DetailWindowBuilderProcessor
@Component("flowui_DetailWindowBuilderProcessor")
public class DetailWindowBuilderProcessor
extends AbstractWindowBuilderProcessor
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<EditedEntityTransformer>
protected ExtendedEntities
protected Metadata
protected UiViewProperties
Fields inherited from class io.jmix.flowui.view.builder.AbstractWindowBuilderProcessor
applicationContext, uiAccessChecker, viewRegistry, views
-
Constructor Summary
ConstructorDescriptionDetailWindowBuilderProcessor
(org.springframework.context.ApplicationContext applicationContext, Views views, ViewRegistry viewRegistry, Metadata metadata, ExtendedEntities extendedEntities, UiViewProperties viewProperties, UiAccessChecker uiAccessChecker, List<EditedEntityTransformer> editedEntityTransformers) -
Method Summary
Modifier and TypeMethodDescription<E,
V extends View<?>>
DialogWindow<V>build
(DetailWindowBuilder<E, V> builder) protected void
checkDataContext
(View<?> view, DataContext dataContext) protected <E,
V extends View<?>>
Consumer<DialogWindow.AfterCloseEvent<V>>createAfterCloseListener
(com.vaadin.flow.component.HasValue<?, E> field, DetailWindowBuilder<E, V> builder, DetailView<E> detailView) protected <E> CollectionContainer<E>
findContainer
(DetailWindowBuilder<E, ?> builder) protected <E> E
getSavedEntity
(DetailView<E> detailView, DataContext parentDataContext) inferViewClass
(DialogWindowBuilder<V> builder) protected <E> E
initEditedEntity
(DetailWindowBuilder<E, ?> builder) protected <E> E
initEntity
(DetailWindowBuilder<E, ?> builder, CollectionContainer<E> container) protected <E> void
initializeNestedEntity
(E entity, Nested container) protected <E> E
initNewEntity
(DetailWindowBuilder<E, ?> builder, CollectionContainer<E> container, EntityValueSource<?, ?> entityValueSource, boolean oneToOneComposition) protected boolean
isCompositionProperty
(EntityValueSource<?, ?> entityValueSource) protected <E> E
merge
(E entity, View<?> origin, DataContext parentDataContext) protected <E,
V extends View<?>>
voidsetupField
(DetailWindowBuilder<E, V> builder, V view, DialogWindow<V> dialog) protected <E,
V extends View<?>>
voidsetupListDataComponent
(DetailWindowBuilder<E, V> builder, DetailView<E> detailView, DialogWindow<V> dialog, CollectionContainer<E> container, DataContext parentDataContext) protected <E,
V extends View<?>>
DataContextsetupParentDataContext
(DetailWindowBuilder<E, V> builder, V view, CollectionContainer<E> container) protected <E,
V extends View<?>>
DataContextsetupViewDataContext
(com.vaadin.flow.component.HasValue<?, E> field, View<?> origin, V view) protected <E> E
transform
(E entity, DetailWindowBuilder<E, ?> builder) protected <E> E
transformForCollectionContainer
(E entity, CollectionContainer<E> container) protected <E> E
transformForField
(E entity, com.vaadin.flow.component.HasValue<?, E> field) Methods inherited from class io.jmix.flowui.view.builder.AbstractWindowBuilderProcessor
createDialog, createView, getViewClass, initDialog
-
Field Details
-
metadata
-
extendedEntities
-
editedEntityTransformers
-
viewProperties
-
-
Constructor Details
-
DetailWindowBuilderProcessor
public DetailWindowBuilderProcessor(org.springframework.context.ApplicationContext applicationContext, Views views, ViewRegistry viewRegistry, Metadata metadata, ExtendedEntities extendedEntities, UiViewProperties viewProperties, UiAccessChecker uiAccessChecker, @Nullable List<EditedEntityTransformer> editedEntityTransformers)
-
-
Method Details
-
build
-
setupListDataComponent
protected <E,V extends View<?>> void setupListDataComponent(DetailWindowBuilder<E, V> builder, DetailView<E> detailView, DialogWindow<V> dialog, @Nullable CollectionContainer<E> container, @Nullable DataContext parentDataContext) -
setupField
protected <E,V extends View<?>> void setupField(DetailWindowBuilder<E, V> builder, V view, DialogWindow<V> dialog) -
createAfterCloseListener
protected <E,V extends View<?>> Consumer<DialogWindow.AfterCloseEvent<V>> createAfterCloseListener(com.vaadin.flow.component.HasValue<?, E> field, DetailWindowBuilder<E, V> builder, DetailView<E> detailView) -
setupViewDataContext
@Nullable protected <E,V extends View<?>> DataContext setupViewDataContext(@Nullable com.vaadin.flow.component.HasValue<?, E> field, View<?> origin, V view) -
inferViewClass
- Specified by:
inferViewClass
in classAbstractWindowBuilderProcessor
-
setupParentDataContext
@Nullable protected <E,V extends View<?>> DataContext setupParentDataContext(DetailWindowBuilder<E, V> builder, V view, @Nullable CollectionContainer<E> container) -
checkDataContext
-
findContainer
-
initEntity
protected <E> E initEntity(DetailWindowBuilder<E, ?> builder, @Nullable CollectionContainer<E> container) -
initNewEntity
protected <E> E initNewEntity(DetailWindowBuilder<E, ?> builder, @Nullable CollectionContainer<E> container, @Nullable EntityValueSource<?, ?> entityValueSource, boolean oneToOneComposition) -
initializeNestedEntity
-
initEditedEntity
-
isCompositionProperty
-
transform
-
transformForCollectionContainer
-
transformForField
protected <E> E transformForField(E entity, com.vaadin.flow.component.HasValue<?, E> field) -
getSavedEntity
-
merge
-