Package io.jmix.flowui.screen.builder
Class EditorWindowBuilder<E,S extends Screen<?>>
java.lang.Object
io.jmix.flowui.screen.builder.AbstractWindowBuilder<S>
io.jmix.flowui.screen.builder.EditorWindowBuilder<E,S>
- All Implemented Interfaces:
DialogWindowBuilder<S>
- Direct Known Subclasses:
EditorWindowClassBuilder
-
Field Summary
Modifier and TypeFieldDescriptionprotected Boolean
protected CollectionContainer<E>
protected E
protected com.vaadin.flow.component.HasValue<?,
E> protected ListDataComponent<E>
protected EditMode
protected E
protected DataContext
Fields inherited from class io.jmix.flowui.screen.builder.AbstractWindowBuilder
afterCloseListener, afterOpenListener, handler, origin, screenId
-
Constructor Summary
ModifierConstructorDescriptionprotected
EditorWindowBuilder
(EditorWindowBuilder<E, S> builder) EditorWindowBuilder
(Screen<?> origin, Class<E> entityClass, Function<? extends EditorWindowBuilder<E, S>, DialogWindow<S>> handler) -
Method Summary
Modifier and TypeMethodDescriptioneditEntity
(E entity) getField()
getMode()
withAddFirst
(Boolean addFirst) withAfterCloseListener
(Consumer<DialogWindow.AfterCloseEvent<S>> listener) withAfterOpenListener
(Consumer<DialogWindow.AfterOpenEvent<S>> listener) withContainer
(CollectionContainer<E> container) withInitializer
(Consumer<E> initializer) withListDataComponent
(ListDataComponent<E> listDataComponent) withParentDataContext
(DataContext parentDataContext) <T extends Screen<?> & EditorScreen<E>>
EditorWindowClassBuilder<E,T> withScreenClass
(Class<T> screenClass) withScreenId
(String screenId) withTransformation
(Function<E, E> transformation) Methods inherited from class io.jmix.flowui.screen.builder.AbstractWindowBuilder
build, getAfterCloseListener, getAfterOpenListener, getOrigin, getScreenId, open
-
Field Details
-
entityClass
-
newEntity
-
editedEntity
-
initializer
-
transformation
-
container
-
parentDataContext
-
listDataComponent
-
field
-
addFirst
-
mode
-
-
Constructor Details
-
EditorWindowBuilder
-
EditorWindowBuilder
public EditorWindowBuilder(Screen<?> origin, Class<E> entityClass, Function<? extends EditorWindowBuilder<E, S>, DialogWindow<S>> handler)
-
-
Method Details
-
newEntity
-
newEntity
-
editEntity
-
withScreenClass
public <T extends Screen<?> & EditorScreen<E>> EditorWindowClassBuilder<E,T> withScreenClass(Class<T> screenClass) -
withScreenId
-
withInitializer
-
withTransformation
-
withContainer
-
withParentDataContext
-
withListDataComponent
public EditorWindowBuilder<E,S> withListDataComponent(@Nullable ListDataComponent<E> listDataComponent) -
withField
-
withAddFirst
-
withAfterOpenListener
public EditorWindowBuilder<E,S> withAfterOpenListener(@Nullable Consumer<DialogWindow.AfterOpenEvent<S>> listener) - Overrides:
withAfterOpenListener
in classAbstractWindowBuilder<S extends Screen<?>>
-
withAfterCloseListener
public EditorWindowBuilder<E,S> withAfterCloseListener(@Nullable Consumer<DialogWindow.AfterCloseEvent<S>> listener) - Overrides:
withAfterCloseListener
in classAbstractWindowBuilder<S extends Screen<?>>
-
getEntityClass
-
getNewEntity
-
getEditedEntity
-
getInitializer
-
getTransformation
-
getContainer
-
getParentDataContext
-
getListDataComponent
-
getField
-
getAddFirst
-
getMode
-