@StudioFacet(xmlElement="lookupScreen", caption="LookupScreen", description="Prepares and shows lookup screens", category="Facets", defaultProperty="screenId", icon="io/jmix/ui/icon/facet/screen.svg") public interface LookupScreenFacet<E,S extends Screen & LookupScreen<E>> extends ScreenFacet<S>, EntityAwareScreenFacet<E>
Modifier and Type | Method and Description |
---|---|
java.util.function.Consumer<java.util.Collection<E>> |
getSelectHandler() |
java.util.function.Predicate<LookupScreen.ValidationContext<E>> |
getSelectValidator() |
java.util.function.Function<java.util.Collection<E>,java.util.Collection<E>> |
getTransformation() |
void |
setSelectHandler(java.util.function.Consumer<java.util.Collection<E>> selectHandler)
Sets select handler for the lookup screen.
|
void |
setSelectValidator(java.util.function.Predicate<LookupScreen.ValidationContext<E>> selectValidator)
Sets select validator for the lookup screen.
|
void |
setTransformation(java.util.function.Function<java.util.Collection<E>,java.util.Collection<E>> transformation)
Sets code to transform entities after selection.
|
addAfterCloseEventListener, addAfterShowEventListener, create, getActionTarget, getButtonTarget, getOpenMode, getOptionsProvider, getProperties, getScreenClass, getScreenConfigurer, getScreenId, setActionTarget, setButtonTarget, setOpenMode, setOptionsProvider, setProperties, setScreenClass, setScreenConfigurer, setScreenId, show
setApplicationContext
getContainer, getEntityClass, getEntityPicker, getListComponent, setContainer, setEntityClass, setEntityPicker, setListComponent
void setSelectHandler(@Nullable java.util.function.Consumer<java.util.Collection<E>> selectHandler)
@Nullable java.util.function.Consumer<java.util.Collection<E>> getSelectHandler()
void setSelectValidator(@Nullable java.util.function.Predicate<LookupScreen.ValidationContext<E>> selectValidator)
@Nullable java.util.function.Predicate<LookupScreen.ValidationContext<E>> getSelectValidator()
void setTransformation(@Nullable java.util.function.Function<java.util.Collection<E>,java.util.Collection<E>> transformation)
Applied only if either field or container or listComponent is assigned.