Package io.jmix.flowui.screen.builder
Class EditorWindowBuilderProcessor
java.lang.Object
io.jmix.flowui.screen.builder.AbstractWindowBuilderProcessor
io.jmix.flowui.screen.builder.EditorWindowBuilderProcessor
@Component("flowui_EditorWindowBuilderProcessor")
public class EditorWindowBuilderProcessor
extends AbstractWindowBuilderProcessor
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<EditedEntityTransformer>
protected ExtendedEntities
protected Metadata
protected FlowUiScreenProperties
Fields inherited from class io.jmix.flowui.screen.builder.AbstractWindowBuilderProcessor
applicationContext, screenRegistry, screens
-
Constructor Summary
ConstructorDescriptionEditorWindowBuilderProcessor
(org.springframework.context.ApplicationContext applicationContext, Screens screens, ScreenRegistry screenRegistry, Metadata metadata, ExtendedEntities extendedEntities, FlowUiScreenProperties screenProperties, List<EditedEntityTransformer> editedEntityTransformers) -
Method Summary
Modifier and TypeMethodDescription<E,
S extends Screen<?>>
DialogWindow<S>buildScreen
(EditorWindowBuilder<E, S> builder) protected void
checkDataContext
(Screen<?> screen, DataContext dataContext) protected <E,
S extends Screen<?>>
Consumer<DialogWindow.AfterCloseEvent<S>>createAfterCloseListener
(com.vaadin.flow.component.HasValue<?, E> field, EditorWindowBuilder<E, S> builder, EditorScreen<E> editorScreen) protected <E> CollectionContainer<E>
findContainer
(EditorWindowBuilder<E, ?> builder) protected <E> E
getCommittedEntity
(EditorScreen<E> editorScreen, DataContext parentDataContext) inferScreenClass
(DialogWindowBuilder<S> builder) protected <E> E
initEditedEntity
(EditorWindowBuilder<E, ?> builder) protected <E> E
initEntity
(EditorWindowBuilder<E, ?> builder, CollectionContainer<E> container) protected <E> void
initializeNestedEntity
(E entity, Nested container) protected <E> E
initNewEntity
(EditorWindowBuilder<E, ?> builder, CollectionContainer<E> container, EntityValueSource<?, ?> entityValueSource, boolean oneToOneComposition) protected boolean
isCompositionProperty
(EntityValueSource<?, ?> entityValueSource) protected <E> E
merge
(E entity, Screen<?> origin, DataContext parentDataContext) protected <E,
S extends Screen<?>>
voidsetupField
(EditorWindowBuilder<E, S> builder, S screen, DialogWindow<S> dialog, DataContext parentDataContext) protected <E,
S extends Screen<?>>
voidsetupListDataComponent
(EditorWindowBuilder<E, S> builder, EditorScreen<E> editorScreen, DialogWindow<S> dialog, CollectionContainer<E> container, DataContext parentDataContext) protected <E,
S extends Screen<?>>
DataContextsetupParentDataContext
(EditorWindowBuilder<E, S> builder, S screen, CollectionContainer<E> container) protected <E,
S extends Screen<?>>
voidsetupScreenDatContext
(com.vaadin.flow.component.HasValue<?, E> field, Screen<?> origin, S screen, DataContext parentDataContext) protected <E> E
transform
(E entity, EditorWindowBuilder<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.screen.builder.AbstractWindowBuilderProcessor
createDialog, createScreen, getScreenClass, initDialog
-
Field Details
-
metadata
-
extendedEntities
-
editedEntityTransformers
-
screenProperties
-
-
Constructor Details
-
EditorWindowBuilderProcessor
public EditorWindowBuilderProcessor(org.springframework.context.ApplicationContext applicationContext, Screens screens, ScreenRegistry screenRegistry, Metadata metadata, ExtendedEntities extendedEntities, FlowUiScreenProperties screenProperties, @Nullable List<EditedEntityTransformer> editedEntityTransformers)
-
-
Method Details
-
buildScreen
-
setupListDataComponent
protected <E,S extends Screen<?>> void setupListDataComponent(EditorWindowBuilder<E, S> builder, EditorScreen<E> editorScreen, DialogWindow<S> dialog, @Nullable CollectionContainer<E> container, @Nullable DataContext parentDataContext) -
setupField
protected <E,S extends Screen<?>> void setupField(EditorWindowBuilder<E, S> builder, S screen, DialogWindow<S> dialog, @Nullable DataContext parentDataContext) -
createAfterCloseListener
protected <E,S extends Screen<?>> Consumer<DialogWindow.AfterCloseEvent<S>> createAfterCloseListener(com.vaadin.flow.component.HasValue<?, E> field, EditorWindowBuilder<E, S> builder, EditorScreen<E> editorScreen) -
setupScreenDatContext
protected <E,S extends Screen<?>> void setupScreenDatContext(com.vaadin.flow.component.HasValue<?, E> field, Screen<?> origin, S screen, @Nullable DataContext parentDataContext) -
inferScreenClass
- Specified by:
inferScreenClass
in classAbstractWindowBuilderProcessor
-
setupParentDataContext
@Nullable protected <E,S extends Screen<?>> DataContext setupParentDataContext(EditorWindowBuilder<E, S> builder, S screen, @Nullable CollectionContainer<E> container) -
checkDataContext
-
findContainer
-
initEntity
protected <E> E initEntity(EditorWindowBuilder<E, ?> builder, @Nullable CollectionContainer<E> container) -
initNewEntity
protected <E> E initNewEntity(EditorWindowBuilder<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) -
getCommittedEntity
protected <E> E getCommittedEntity(EditorScreen<E> editorScreen, @Nullable DataContext parentDataContext) -
merge
-