Package io.jmix.flowui.view
Interface LookupView<E>
- Type Parameters:
- E- entity class
- All Known Implementing Classes:
- AddConditionView,- AllTasksView,- BusinessCalendarListView,- CategoryListView,- ContentStorageListView,- DmnDecisionTableListView,- DmnDecisionTableLookupView,- EmailAttachmentFragment,- EntityAttributesFragment,- EntityInspectorListView,- EntityLogView,- EntityTreeNodeListView,- ExecutionListenersFragment,- ExtensionPropertiesFragment,- FormFieldLookup,- InAppNotificationListView,- JobModelListView,- JpqlParametersFragment,- MultiValueSelectDialog,- MyTasksListView,- ProcessDefinitionLookupView,- ProcessInstanceListView,- ReportExecutionDialog,- ReportExecutionListView,- ReportGroupListView,- ReportListView,- ReportRunView,- ResourceRoleModelListView,- ResourceRoleModelLookupView,- RowLevelRoleModelListView,- RowLevelRoleModelLookupView,- SendingMessageAttachmentsListView,- StandardListView,- StartProcessView,- TenantListView,- UserGroupListView,- UserSessionsView,- WebdavDocumentListView,- WebdavDocumentVersionsLookupView
public interface LookupView<E>
Interface of views that display a list of entities and can return instances selected by the user.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic classContext object which is passed to the selection validator set bysetSelectionValidator(Predicate).
- 
Method SummaryModifier and TypeMethodDescriptionClose the view without selection.Handle selected entities.voidsetSelectionHandler(Consumer<Collection<E>> selectionHandler) Sets selection handler for screen.voidsetSelectionValidator(Predicate<LookupView.ValidationContext<E>> selectionValidator) Sets selection validator.
- 
Method Details- 
handleSelectionOperationResult handleSelection()Handle selected entities.
- 
closeWithDiscardOperationResult closeWithDiscard()Close the view without selection.
- 
getLookupComponentLookupComponent<E> getLookupComponent()- Returns:
- a component that is used to select entities of this view
- Throws:
- IllegalStateException- if such a component is not defined
 
- 
findLookupComponentOptional<LookupComponent<E>> findLookupComponent()- Returns:
- an optional component that is used to select entities of this view
 
- 
getSelectionHandlerOptional<Consumer<Collection<E>>> getSelectionHandler()- Returns:
- selection handler
 
- 
setSelectionHandlerSets selection handler for screen.- Parameters:
- selectionHandler- selection handler
 
- 
getSelectionValidatorOptional<Predicate<LookupView.ValidationContext<E>>> getSelectionValidator()- Returns:
- selection validator
 
- 
setSelectionValidatorSets selection validator.- Parameters:
- selectionValidator- selection validator
 
 
-