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