Package io.jmix.ui.component.impl
Class LookupScreenFacetImpl<E,S extends Screen & LookupScreen<E>>
java.lang.Object
io.jmix.ui.component.impl.AbstractFacet
io.jmix.ui.component.impl.AbstractScreenFacet<S>
io.jmix.ui.component.impl.AbstractEntityAwareScreenFacet<E,S>
io.jmix.ui.component.impl.LookupScreenFacetImpl<E,S>
- All Implemented Interfaces:
EntityAwareScreenFacet<E>,Facet,LookupScreenFacet<E,,S> ScreenFacet<S>,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class LookupScreenFacetImpl<E,S extends Screen & LookupScreen<E>>
extends AbstractEntityAwareScreenFacet<E,S>
implements LookupScreenFacet<E,S>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Consumer<Collection<E>>protected Predicate<LookupScreen.ValidationContext<E>>protected Function<Collection<E>,Collection<E>> Fields inherited from class io.jmix.ui.component.impl.AbstractEntityAwareScreenFacet
container, entityClass, entityPicker, listComponentFields inherited from class io.jmix.ui.component.impl.AbstractScreenFacet
actionId, afterCloseListeners, afterShowListeners, applicationContext, buttonId, openMode, optionsProvider, properties, screen, screenClass, screenConfigurer, screenIdFields inherited from class io.jmix.ui.component.impl.AbstractFacet
id, owner -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()protected LookupBuilder<E>createLookupBuilder(Frame owner) protected ScreateScreen(LookupBuilder<E> builder) voidsetSelectHandler(Consumer<Collection<E>> selectHandler) Sets select handler for the lookup screen.voidsetSelectValidator(Predicate<LookupScreen.ValidationContext<E>> selectValidator) Sets select validator for the lookup screen.voidsetTransformation(Function<Collection<E>, Collection<E>> transformation) Sets code to transform entities after selection.show()Shows and returns screen.Methods inherited from class io.jmix.ui.component.impl.AbstractEntityAwareScreenFacet
getContainer, getEntityClass, getEntityPicker, getListComponent, setContainer, setEntityClass, setEntityPicker, setListComponentMethods inherited from class io.jmix.ui.component.impl.AbstractScreenFacet
addAfterCloseEventListener, addAfterShowEventListener, applyScreenConfigurer, getActionTarget, getButtonTarget, getOpenMode, getOptionsProvider, getProperties, getScreenClass, getScreenConfigurer, getScreenId, getScreenOptions, initScreenListeners, injectScreenProperties, internalRemoveAfterCloseEventListener, internalRemoveAfterShowEventListener, setActionTarget, setApplicationContext, setButtonTarget, setOpenMode, setOptionsProvider, setOwner, setProperties, setScreenClass, setScreenConfigurer, setScreenId, subscribe, subscribeOnAction, subscribeOnButtonMethods inherited from class io.jmix.ui.component.impl.AbstractFacet
getEventHub, getId, getOwner, hasSubscriptions, publish, setId, unsubscribeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContextMethods inherited from interface io.jmix.ui.component.EntityAwareScreenFacet
getContainer, getEntityClass, getEntityPicker, getListComponent, setContainer, setEntityClass, setEntityPicker, setListComponentMethods inherited from interface io.jmix.ui.component.ScreenFacet
addAfterCloseEventListener, addAfterShowEventListener, getActionTarget, getButtonTarget, getOpenMode, getOptionsProvider, getProperties, getScreenClass, getScreenConfigurer, getScreenId, setActionTarget, setButtonTarget, setOpenMode, setOptionsProvider, setProperties, setScreenClass, setScreenConfigurer, setScreenId
-
Field Details
-
selectHandler
-
selectValidator
-
transformation
-
-
Constructor Details
-
LookupScreenFacetImpl
public LookupScreenFacetImpl()
-
-
Method Details
-
setSelectHandler
Description copied from interface:LookupScreenFacetSets select handler for the lookup screen.- Specified by:
setSelectHandlerin interfaceLookupScreenFacet<E,S extends Screen & LookupScreen<E>>
-
getSelectHandler
- Specified by:
getSelectHandlerin interfaceLookupScreenFacet<E,S extends Screen & LookupScreen<E>> - Returns:
- lookup screen select handler
-
setSelectValidator
public void setSelectValidator(@Nullable Predicate<LookupScreen.ValidationContext<E>> selectValidator) Description copied from interface:LookupScreenFacetSets select validator for the lookup screen.- Specified by:
setSelectValidatorin interfaceLookupScreenFacet<E,S extends Screen & LookupScreen<E>>
-
getSelectValidator
- Specified by:
getSelectValidatorin interfaceLookupScreenFacet<E,S extends Screen & LookupScreen<E>> - Returns:
- lookup screen select validator
-
setTransformation
Description copied from interface:LookupScreenFacetSets code to transform entities after selection.Applied only if either field or container or listComponent is assigned.
- Specified by:
setTransformationin interfaceLookupScreenFacet<E,S extends Screen & LookupScreen<E>>
-
getTransformation
- Specified by:
getTransformationin interfaceLookupScreenFacet<E,S extends Screen & LookupScreen<E>> - Returns:
- selected entities transformation
-
create
- Specified by:
createin interfaceScreenFacet<E>- Returns:
- new screen instance
-
show
Description copied from interface:ScreenFacetShows and returns screen.- Specified by:
showin interfaceScreenFacet<E>
-
createScreen
-
createLookupBuilder
-