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
FieldsFields inherited from class io.jmix.flowui.screen.builder.EditorWindowBuilder
addFirst, container, editedEntity, entityClass, field, initializer, listDataComponent, mode, newEntity, parentDataContext, transformationFields inherited from class io.jmix.flowui.screen.builder.AbstractWindowBuilder
afterCloseListener, afterOpenListener, handler, origin, screenId -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEditorWindowClassBuilder(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, withScreenClassMethods inherited from class io.jmix.flowui.screen.builder.AbstractWindowBuilder
build, getAfterCloseListener, getAfterOpenListener, getOrigin, getScreenId, openMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.flowui.screen.builder.DialogWindowBuilder
getAfterCloseListener, getAfterOpenListener, getOrigin, getScreenId
-
Field Details
-
screenClass
-
-
Constructor Details
-
EditorWindowClassBuilder
-
EditorWindowClassBuilder
-
-
Method Details
-
newEntity
- Overrides:
newEntityin classEditorWindowBuilder<E,S extends Screen<?> & EditorScreen<E>>
-
newEntity
- Overrides:
newEntityin classEditorWindowBuilder<E,S extends Screen<?> & EditorScreen<E>>
-
editEntity
- Overrides:
editEntityin classEditorWindowBuilder<E,S extends Screen<?> & EditorScreen<E>>
-
withScreenId
- Overrides:
withScreenIdin classEditorWindowBuilder<E,S extends Screen<?> & EditorScreen<E>>
-
withInitializer
- Overrides:
withInitializerin classEditorWindowBuilder<E,S extends Screen<?> & EditorScreen<E>>
-
withTransformation
- Overrides:
withTransformationin classEditorWindowBuilder<E,S extends Screen<?> & EditorScreen<E>>
-
withContainer
- Overrides:
withContainerin classEditorWindowBuilder<E,S extends Screen<?> & EditorScreen<E>>
-
withParentDataContext
- Overrides:
withParentDataContextin classEditorWindowBuilder<E,S extends Screen<?> & EditorScreen<E>>
-
withListDataComponent
public EditorWindowClassBuilder<E,S> withListDataComponent(@Nullable ListDataComponent<E> listDataComponent) - Overrides:
withListDataComponentin classEditorWindowBuilder<E,S extends Screen<?> & EditorScreen<E>>
-
withField
public EditorWindowClassBuilder<E,S> withField(@Nullable com.vaadin.flow.component.HasValue<?, E> field) - Overrides:
withFieldin classEditorWindowBuilder<E,S extends Screen<?> & EditorScreen<E>>
-
withAddFirst
- Overrides:
withAddFirstin classEditorWindowBuilder<E,S extends Screen<?> & EditorScreen<E>>
-
withAfterOpenListener
public EditorWindowClassBuilder<E,S> withAfterOpenListener(@Nullable Consumer<DialogWindow.AfterOpenEvent<S>> listener) - Overrides:
withAfterOpenListenerin classEditorWindowBuilder<E,S extends Screen<?> & EditorScreen<E>>
-
withAfterCloseListener
public EditorWindowClassBuilder<E,S> withAfterCloseListener(@Nullable Consumer<DialogWindow.AfterCloseEvent<S>> listener) - Overrides:
withAfterCloseListenerin classEditorWindowBuilder<E,S extends Screen<?> & EditorScreen<E>>
-
getScreenClass
- Specified by:
getScreenClassin interfaceDialogWindowClassBuilder<E>
-