Package io.jmix.flowui.view
Class StandardListView<E>
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<T>
io.jmix.flowui.view.View<ViewLayout>
io.jmix.flowui.view.StandardView
io.jmix.flowui.view.StandardListView<E>
- Type Parameters:
- E- entity class
- All Implemented Interfaces:
- com.vaadin.flow.component.AttachNotifier,- com.vaadin.flow.component.DetachNotifier,- com.vaadin.flow.component.HasElement,- com.vaadin.flow.component.HasStyle,- com.vaadin.flow.router.AfterNavigationObserver,- com.vaadin.flow.router.BeforeEnterObserver,- com.vaadin.flow.router.BeforeLeaveObserver,- com.vaadin.flow.router.HasDynamicTitle,- com.vaadin.flow.router.internal.AfterNavigationHandler,- com.vaadin.flow.router.internal.BeforeEnterHandler,- com.vaadin.flow.router.internal.BeforeLeaveHandler,- LookupView<E>,- MultiSelectLookupView,- Serializable
- Direct Known Subclasses:
- AddConditionView,- AllTasksView,- BusinessCalendarListView,- ContentStorageListView,- EmailAttachmentFragment,- EntityAttributesFragment,- EntityInspectorListView,- EntityLogView,- EntityTreeNodeListView,- ExecutionListenersFragment,- ExtensionPropertiesFragment,- FormFieldLookup,- JobModelListView,- JpqlParametersFragment,- MultiValueSelectDialog,- MyTasksListView,- ProcessInstanceListView,- ReportExecutionDialog,- ReportExecutionListView,- ReportGroupListView,- ReportListView,- ReportRunView,- ResourceRoleModelListView,- ResourceRoleModelLookupView,- RowLevelRoleModelListView,- RowLevelRoleModelLookupView,- SendingMessageAttachmentsListView,- StartProcessView,- TenantListView,- UserGroupListView,- UserSessionsView
public class StandardListView<E>
extends StandardView
implements LookupView<E>, MultiSelectLookupView
Base class of entity list views.
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class io.jmix.flowui.view.ViewView.AfterCloseEvent, View.BeforeCloseEvent, View.BeforeShowEvent, View.InitEvent, View.QueryParametersChangeEvent, View.ReadyEventNested classes/interfaces inherited from interface io.jmix.flowui.view.LookupViewLookupView.ValidationContext<E>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected Consumer<Collection<E>>protected Predicate<LookupView.ValidationContext<E>>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionClose the view without selection.protected OperationResultdoSelect(Collection<E> items) protected Optional<com.vaadin.flow.component.Component>Handle selected entities.voidsetLookupComponentMultiSelect(boolean multiSelect) Informs the view that a lookup component should change its selection mode, if possible.voidsetSelectionHandler(Consumer<Collection<E>> selectionHandler) Sets selection handler for screen.voidsetSelectionValidator(Predicate<LookupView.ValidationContext<E>> selectionValidator) Sets selection validator.protected voidprotected voidprotected OperationResultvalidateSelectedItems(Collection<E> items) Methods inherited from class io.jmix.flowui.view.StandardViewinitContentMethods inherited from class io.jmix.flowui.view.ViewaddAfterCloseListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addQueryParametersChangeListener, addReadyListener, afterNavigation, beforeEnter, beforeLeave, close, close, closeWithDefaultAction, getApplicationContext, getId, getPageTitle, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, isPreventBrowserTabClosing, onAttach, onDetach, setApplicationContext, setId, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacetsMethods inherited from class com.vaadin.flow.component.CompositegetChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.ComponentaddListener, findAncestor, fireEvent, from, get, getEventBus, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setVisibleMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifieraddAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifieraddDetachListenerMethods inherited from interface com.vaadin.flow.component.HasStyleaddClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
- 
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- 
StandardListViewpublic StandardListView()
 
- 
- 
Method Details- 
setupLookupComponentprotected void setupLookupComponent()
- 
setupSaveShortcutprotected void setupSaveShortcut()
- 
getSelectionHandler- Specified by:
- getSelectionHandlerin interface- LookupView<E>
- Returns:
- selection handler
 
- 
setSelectionHandlerDescription copied from interface:LookupViewSets selection handler for screen.- Specified by:
- setSelectionHandlerin interface- LookupView<E>
- Parameters:
- selectionHandler- selection handler
 
- 
getLookupActionsLayout
- 
getLookupComponent- Specified by:
- getLookupComponentin interface- LookupView<E>
- Returns:
- a component that is used to select entities of this view
 
- 
findLookupComponent- Specified by:
- findLookupComponentin interface- LookupView<E>
- Returns:
- an optional component that is used to select entities of this view
 
- 
getSelectionValidator- Specified by:
- getSelectionValidatorin interface- LookupView<E>
- Returns:
- selection validator
 
- 
setSelectionValidatorpublic void setSelectionValidator(@Nullable Predicate<LookupView.ValidationContext<E>> selectionValidator) Description copied from interface:LookupViewSets selection validator.- Specified by:
- setSelectionValidatorin interface- LookupView<E>
- Parameters:
- selectionValidator- selection validator
 
- 
setLookupComponentMultiSelectpublic void setLookupComponentMultiSelect(boolean multiSelect) Description copied from interface:MultiSelectLookupViewInforms the view that a lookup component should change its selection mode, if possible.- Specified by:
- setLookupComponentMultiSelectin interface- MultiSelectLookupView
- Parameters:
- multiSelect-- trueto enable multiple selections,- falseotherwise
 
- 
handleSelectionDescription copied from interface:LookupViewHandle selected entities.- Specified by:
- handleSelectionin interface- LookupView<E>
 
- 
validateSelectedItems
- 
doSelect
- 
closeWithDiscardDescription copied from interface:LookupViewClose the view without selection.- Specified by:
- closeWithDiscardin interface- LookupView<E>
 
- 
getSelectAction
- 
getDiscardAction
 
-