Package io.jmix.tabbedmode.builder
Class LookupViewBuilder<E,V extends View<?>>
java.lang.Object
io.jmix.tabbedmode.builder.AbstractViewBuilder<V,LookupViewBuilder<E,V>>
io.jmix.tabbedmode.builder.LookupViewBuilder<E,V>
- Direct Known Subclasses:
LookupViewBuilderAdapter
public class LookupViewBuilder<E,V extends View<?>>
extends AbstractViewBuilder<V,LookupViewBuilder<E,V>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CollectionContainer<E>
protected com.vaadin.flow.component.HasValue<?,
?> protected boolean
protected ListDataComponent<E>
protected boolean
protected Consumer<Collection<E>>
protected Predicate<LookupView.ValidationContext<E>>
protected Function<Collection<E>,
Collection<E>> Fields inherited from class io.jmix.tabbedmode.builder.AbstractViewBuilder
afterCloseListener, buildHandler, openHandler, openMode, origin, readyListener, viewClass, viewConfigurer, viewId
-
Constructor Summary
ConstructorsConstructorDescriptionLookupViewBuilder
(View<?> origin, Class<E> entityClass, Class<V> viewClass, Function<LookupViewBuilder<E, V>, V> buildHandler, Consumer<ViewOpeningContext> openHandler) LookupViewBuilder
(View<?> origin, Class<E> entityClass, String viewId, Function<LookupViewBuilder<E, V>, V> buildHandler, Consumer<ViewOpeningContext> openHandler) LookupViewBuilder
(View<?> origin, Class<E> entityClass, Function<LookupViewBuilder<E, V>, V> buildHandler, Consumer<ViewOpeningContext> openHandler) -
Method Summary
Modifier and TypeMethodDescriptionOptional<com.vaadin.flow.component.HasValue<?,
?>> getField()
boolean
boolean
withContainer
(CollectionContainer<E> container) <T extends com.vaadin.flow.component.HasValue<?,
E>>
LookupViewBuilder<E,V> withField
(T field) withListDataComponent
(ListDataComponent<E> listDataComponent) withLookupComponentMultiSelect
(boolean lookupComponentMultiSelect) <T extends com.vaadin.flow.component.HasValue<?,
Collection<E>>>
LookupViewBuilder<E,V> withMultiValueField
(T field) withSelectHandler
(Consumer<Collection<E>> selectHandler) withSelectValidator
(Predicate<LookupView.ValidationContext<E>> selectValidator) withTransformation
(Function<Collection<E>, Collection<E>> transformation) Methods inherited from class io.jmix.tabbedmode.builder.AbstractViewBuilder
build, getAfterCloseListener, getOpenMode, getOrigin, getReadyListener, getViewClass, getViewConfigurer, getViewId, open, withAfterCloseListener, withOpenMode, withReadyListener, withViewConfigurer
-
Field Details
-
entityClass
-
selectHandler
-
selectValidator
-
transformation
-
container
-
listDataComponent
-
field
protected com.vaadin.flow.component.HasValue<?,?> field -
lookupComponentMultiSelect
protected boolean lookupComponentMultiSelect -
fieldCollectionValue
protected boolean fieldCollectionValue
-
-
Constructor Details
-
LookupViewBuilder
public LookupViewBuilder(View<?> origin, Class<E> entityClass, Function<LookupViewBuilder<E, V>, V> buildHandler, Consumer<ViewOpeningContext> openHandler) -
LookupViewBuilder
-
LookupViewBuilder
-
-
Method Details
-
getEntityClass
-
getSelectHandler
-
getSelectValidator
-
getTransformation
-
getContainer
-
getListDataComponent
-
getField
-
isLookupComponentMultiSelect
public boolean isLookupComponentMultiSelect() -
isFieldCollectionValue
public boolean isFieldCollectionValue() -
withSelectHandler
-
withSelectValidator
public LookupViewBuilder<E,V> withSelectValidator(@Nullable Predicate<LookupView.ValidationContext<E>> selectValidator) -
withTransformation
public LookupViewBuilder<E,V> withTransformation(@Nullable Function<Collection<E>, Collection<E>> transformation) -
withContainer
-
withListDataComponent
public LookupViewBuilder<E,V> withListDataComponent(@Nullable ListDataComponent<E> listDataComponent) -
withField
public <T extends com.vaadin.flow.component.HasValue<?,E>> LookupViewBuilder<E,V> withField(@Nullable T field) -
withMultiValueField
public <T extends com.vaadin.flow.component.HasValue<?,Collection<E>>> LookupViewBuilder<E,V> withMultiValueField(@Nullable T field) -
withLookupComponentMultiSelect
-