Package io.jmix.flowui.screen.builder
Class LookupWindowClassBuilder<E,S extends Screen<?> & LookupScreen<E>>
java.lang.Object
io.jmix.flowui.screen.builder.AbstractWindowBuilder<S>
io.jmix.flowui.screen.builder.LookupWindowBuilder<E,S>
io.jmix.flowui.screen.builder.LookupWindowClassBuilder<E,S>
- All Implemented Interfaces:
DialogWindowBuilder<S>
,DialogWindowClassBuilder<S>
public class LookupWindowClassBuilder<E,S extends Screen<?> & LookupScreen<E>>
extends LookupWindowBuilder<E,S>
implements DialogWindowClassBuilder<S>
-
Field Summary
Fields inherited from class io.jmix.flowui.screen.builder.LookupWindowBuilder
container, entityClass, field, fieldCollectionValue, listDataComponent, selectHandler, selectValidator, transformation
Fields inherited from class io.jmix.flowui.screen.builder.AbstractWindowBuilder
afterCloseListener, afterOpenListener, handler, origin, screenId
-
Constructor Summary
ModifierConstructorDescriptionprotected
LookupWindowClassBuilder
(LookupWindowBuilder<E, S> builder, Class<S> screenClass) LookupWindowClassBuilder
(Screen<?> origin, Class<E> entityClass, Class<S> screenClass, Function<? extends LookupWindowClassBuilder<E, S>, DialogWindow<S>> handler) -
Method Summary
Modifier and TypeMethodDescriptionwithAfterCloseListener
(Consumer<DialogWindow.AfterCloseEvent<S>> listener) withAfterOpenListener
(Consumer<DialogWindow.AfterOpenEvent<S>> listener) withContainer
(CollectionContainer<E> container) <T extends com.vaadin.flow.component.HasValue<?,
E>>
LookupWindowClassBuilder<E,S> withField
(T field) withListDataComponent
(ListDataComponent<E> listDataComponent) withScreenId
(String screenId) withSelectHandler
(Consumer<Collection<E>> selectHandler) withSelectValidator
(Predicate<LookupScreen.ValidationContext<E>> selectValidator) withTransformation
(Function<Collection<E>, Collection<E>> transformation) <T extends com.vaadin.flow.component.HasValue<?,
Collection<E>>>
LookupWindowClassBuilder<E,S> withValuesField
(T field) Methods inherited from class io.jmix.flowui.screen.builder.LookupWindowBuilder
getContainer, getEntityClass, getField, getListDataComponent, getOrigin, getSelectHandler, getSelectValidator, getTransformation, isFieldCollectionValue, withScreenClass
Methods inherited from class io.jmix.flowui.screen.builder.AbstractWindowBuilder
build, getAfterCloseListener, getAfterOpenListener, 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
-
LookupWindowClassBuilder
-
LookupWindowClassBuilder
-
-
Method Details
-
withScreenId
- Overrides:
withScreenId
in classLookupWindowBuilder<E,
S extends Screen<?> & LookupScreen<E>>
-
withSelectHandler
- Overrides:
withSelectHandler
in classLookupWindowBuilder<E,
S extends Screen<?> & LookupScreen<E>>
-
withSelectValidator
public LookupWindowClassBuilder<E,S> withSelectValidator(Predicate<LookupScreen.ValidationContext<E>> selectValidator) - Overrides:
withSelectValidator
in classLookupWindowBuilder<E,
S extends Screen<?> & LookupScreen<E>>
-
withTransformation
public LookupWindowClassBuilder<E,S> withTransformation(@Nullable Function<Collection<E>, Collection<E>> transformation) - Overrides:
withTransformation
in classLookupWindowBuilder<E,
S extends Screen<?> & LookupScreen<E>>
-
withContainer
- Overrides:
withContainer
in classLookupWindowBuilder<E,
S extends Screen<?> & LookupScreen<E>>
-
withListDataComponent
public LookupWindowClassBuilder<E,S> withListDataComponent(@Nullable ListDataComponent<E> listDataComponent) - Overrides:
withListDataComponent
in classLookupWindowBuilder<E,
S extends Screen<?> & LookupScreen<E>>
-
withField
public <T extends com.vaadin.flow.component.HasValue<?,E>> LookupWindowClassBuilder<E,S> withField(@Nullable T field) - Overrides:
withField
in classLookupWindowBuilder<E,
S extends Screen<?> & LookupScreen<E>>
-
withValuesField
public <T extends com.vaadin.flow.component.HasValue<?,Collection<E>>> LookupWindowClassBuilder<E,S> withValuesField(@Nullable T field) - Overrides:
withValuesField
in classLookupWindowBuilder<E,
S extends Screen<?> & LookupScreen<E>>
-
withAfterOpenListener
public LookupWindowClassBuilder<E,S> withAfterOpenListener(@Nullable Consumer<DialogWindow.AfterOpenEvent<S>> listener) - Overrides:
withAfterOpenListener
in classLookupWindowBuilder<E,
S extends Screen<?> & LookupScreen<E>>
-
withAfterCloseListener
public LookupWindowClassBuilder<E,S> withAfterCloseListener(@Nullable Consumer<DialogWindow.AfterCloseEvent<S>> listener) - Overrides:
withAfterCloseListener
in classLookupWindowBuilder<E,
S extends Screen<?> & LookupScreen<E>>
-
getScreenClass
- Specified by:
getScreenClass
in interfaceDialogWindowClassBuilder<E>
-