Package io.jmix.flowui.screen.builder
Class EditorWindowClassBuilder<E,S extends Screen<?> & EditorScreen<E>>
java.lang.Object
io.jmix.flowui.screen.builder.AbstractWindowBuilder<S>
io.jmix.flowui.screen.builder.EditorWindowBuilder<E,S>
io.jmix.flowui.screen.builder.EditorWindowClassBuilder<E,S>
- All Implemented Interfaces:
DialogWindowBuilder<S>
,DialogWindowClassBuilder<S>
public class EditorWindowClassBuilder<E,S extends Screen<?> & EditorScreen<E>>
extends EditorWindowBuilder<E,S>
implements DialogWindowClassBuilder<S>
-
Field Summary
Fields inherited from class io.jmix.flowui.screen.builder.EditorWindowBuilder
addFirst, container, editedEntity, entityClass, field, initializer, listDataComponent, mode, newEntity, parentDataContext, transformation
Fields inherited from class io.jmix.flowui.screen.builder.AbstractWindowBuilder
afterCloseListener, afterOpenListener, handler, origin, screenId
-
Constructor Summary
ModifierConstructorDescriptionprotected
EditorWindowClassBuilder
(EditorWindowBuilder<E, S> builder, Class<S> screenClass) EditorWindowClassBuilder
(Screen<?> origin, Class<E> entityClass, Class<S> screenClass, Function<? extends EditorWindowClassBuilder<E, S>, DialogWindow<S>> handler) -
Method Summary
Modifier and TypeMethodDescriptioneditEntity
(E entity) 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) withScreenId
(String screenId) withTransformation
(Function<E, E> transformation) Methods inherited from class io.jmix.flowui.screen.builder.EditorWindowBuilder
getAddFirst, getContainer, getEditedEntity, getEntityClass, getField, getInitializer, getListDataComponent, getMode, getNewEntity, getParentDataContext, getTransformation, withScreenClass
Methods inherited from class io.jmix.flowui.screen.builder.AbstractWindowBuilder
build, getAfterCloseListener, getAfterOpenListener, getOrigin, getScreenId, open
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.flowui.screen.builder.DialogWindowBuilder
getAfterCloseListener, getAfterOpenListener, getOrigin, getScreenId
-
Field Details
-
screenClass
-
-
Constructor Details
-
EditorWindowClassBuilder
-
EditorWindowClassBuilder
-
-
Method Details
-
newEntity
- Overrides:
newEntity
in classEditorWindowBuilder<E,
S extends Screen<?> & EditorScreen<E>>
-
newEntity
- Overrides:
newEntity
in classEditorWindowBuilder<E,
S extends Screen<?> & EditorScreen<E>>
-
editEntity
- Overrides:
editEntity
in classEditorWindowBuilder<E,
S extends Screen<?> & EditorScreen<E>>
-
withScreenId
- Overrides:
withScreenId
in classEditorWindowBuilder<E,
S extends Screen<?> & EditorScreen<E>>
-
withInitializer
- Overrides:
withInitializer
in classEditorWindowBuilder<E,
S extends Screen<?> & EditorScreen<E>>
-
withTransformation
- Overrides:
withTransformation
in classEditorWindowBuilder<E,
S extends Screen<?> & EditorScreen<E>>
-
withContainer
- Overrides:
withContainer
in classEditorWindowBuilder<E,
S extends Screen<?> & EditorScreen<E>>
-
withParentDataContext
- Overrides:
withParentDataContext
in classEditorWindowBuilder<E,
S extends Screen<?> & EditorScreen<E>>
-
withListDataComponent
public EditorWindowClassBuilder<E,S> withListDataComponent(@Nullable ListDataComponent<E> listDataComponent) - Overrides:
withListDataComponent
in classEditorWindowBuilder<E,
S extends Screen<?> & EditorScreen<E>>
-
withField
public EditorWindowClassBuilder<E,S> withField(@Nullable com.vaadin.flow.component.HasValue<?, E> field) - Overrides:
withField
in classEditorWindowBuilder<E,
S extends Screen<?> & EditorScreen<E>>
-
withAddFirst
- Overrides:
withAddFirst
in classEditorWindowBuilder<E,
S extends Screen<?> & EditorScreen<E>>
-
withAfterOpenListener
public EditorWindowClassBuilder<E,S> withAfterOpenListener(@Nullable Consumer<DialogWindow.AfterOpenEvent<S>> listener) - Overrides:
withAfterOpenListener
in classEditorWindowBuilder<E,
S extends Screen<?> & EditorScreen<E>>
-
withAfterCloseListener
public EditorWindowClassBuilder<E,S> withAfterCloseListener(@Nullable Consumer<DialogWindow.AfterCloseEvent<S>> listener) - Overrides:
withAfterCloseListener
in classEditorWindowBuilder<E,
S extends Screen<?> & EditorScreen<E>>
-
getScreenClass
- Specified by:
getScreenClass
in interfaceDialogWindowClassBuilder<E>
-