Package io.jmix.flowui.screen
Class StandardLookup<T>
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<T>
io.jmix.flowui.screen.Screen<ScreenLayout>
io.jmix.flowui.screen.StandardScreen
io.jmix.flowui.screen.StandardLookup<T>
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.router.AfterNavigationObserver,com.vaadin.flow.router.BeforeEnterObserver,com.vaadin.flow.router.BeforeLeaveObserver,com.vaadin.flow.router.internal.AfterNavigationHandler,com.vaadin.flow.router.internal.BeforeEnterHandler,com.vaadin.flow.router.internal.BeforeLeaveHandler,LookupScreen<T>,MultiSelectLookupScreen,Serializable
public class StandardLookup<T>
extends StandardScreen
implements LookupScreen<T>, MultiSelectLookupScreen
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.screen.Screen
Screen.AfterCloseEvent, Screen.AfterShowEvent, Screen.BeforeCloseEvent, Screen.BeforeShowEvent, Screen.InitEventNested classes/interfaces inherited from interface io.jmix.flowui.screen.LookupScreen
LookupScreen.ValidationContext<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected Consumer<Collection<T>>protected Predicate<LookupScreen.ValidationContext<T>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected OperationResultdoSelect(Collection<T> items) protected Optional<com.vaadin.flow.component.Component>voidsetLookupComponentMultiSelect(boolean multiSelect) Informs a screen that a lookup component should change its selection mode, if possible.voidsetSelectionHandler(Consumer<Collection<T>> selectionHandler) voidsetSelectionValidator(Predicate<LookupScreen.ValidationContext<T>> selectionValidator) protected voidprotected voidprotected OperationResultvalidateSelectedItems(Collection<T> items) Methods inherited from class io.jmix.flowui.screen.StandardScreen
initContentMethods inherited from class io.jmix.flowui.screen.Screen
addAfterCloseListener, addAfterShowListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, afterNavigation, beforeEnter, beforeLeave, close, close, closeWithDefaultAction, getApplicationContext, getId, getScreenActions, getScreenData, getScreenFacets, removeApplicationListeners, setApplicationContext, setId, setScreenActions, setScreenData, setScreenFacets, unregisterBackNavigation, updatePageTitleMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getEventBus, getLocale, getParent, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, scrollIntoView, set, setElement, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
-
Field Details
-
LOOKUP_ACTIONS_LAYOUT_DEFAULT_ID
- See Also:
-
SELECT_ACTION_DEFAULT_ID
- See Also:
-
DISCARD_ACTION_DEFAULT_ID
- See Also:
-
selectionHandler
-
selectionValidator
-
-
Constructor Details
-
StandardLookup
public StandardLookup()
-
-
Method Details
-
setupLookupComponent
protected void setupLookupComponent() -
setupCommitShortcut
protected void setupCommitShortcut() -
getSelectionHandler
- Specified by:
getSelectionHandlerin interfaceLookupScreen<T>
-
setSelectionHandler
- Specified by:
setSelectionHandlerin interfaceLookupScreen<T>
-
getLookupActionsLayout
-
getLookupComponent
- Specified by:
getLookupComponentin interfaceLookupScreen<T>
-
findLookupComponent
- Specified by:
findLookupComponentin interfaceLookupScreen<T>
-
getSelectionValidator
- Specified by:
getSelectionValidatorin interfaceLookupScreen<T>
-
setSelectionValidator
public void setSelectionValidator(@Nullable Predicate<LookupScreen.ValidationContext<T>> selectionValidator) - Specified by:
setSelectionValidatorin interfaceLookupScreen<T>
-
setLookupComponentMultiSelect
public void setLookupComponentMultiSelect(boolean multiSelect) Description copied from interface:MultiSelectLookupScreenInforms a screen that a lookup component should change its selection mode, if possible.- Specified by:
setLookupComponentMultiSelectin interfaceMultiSelectLookupScreen- Parameters:
multiSelect-trueto enable multiple selections,falseotherwise
-
handleSelection
- Specified by:
handleSelectionin interfaceLookupScreen<T>
-
validateSelectedItems
-
doSelect
-
closeWithDiscard
- Specified by:
closeWithDiscardin interfaceLookupScreen<T>
-
getSelectAction
-
getDiscardAction
-