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
,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
,StartProcessView
,TenantListView
,UserGroupListView
,UserSessionsView
,WebdavDocumentListView
,WebdavDocumentVersionsLookupView
public class StandardListView<E>
extends StandardView
implements LookupView<E>, MultiSelectLookupView
Base class of entity list views.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.view.View
View.AfterCloseEvent, View.BeforeCloseEvent, View.BeforeShowEvent, View.InitEvent, View.QueryParametersChangeEvent, View.ReadyEvent
Nested classes/interfaces inherited from interface io.jmix.flowui.view.LookupView
LookupView.ValidationContext<E>
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected static final String
protected static final String
protected Consumer<Collection<E>>
protected Predicate<LookupView.ValidationContext<E>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionClose the view without selection.protected OperationResult
doSelect
(Collection<E> items) protected Optional<com.vaadin.flow.component.Component>
Handle selected entities.protected void
lookupEnterPress
(SupportsEnterPress.EnterPressEvent<?> enterPressEvent) void
setLookupComponentMultiSelect
(boolean multiSelect) Informs the view that a lookup component should change its selection mode, if possible.void
setSelectionHandler
(Consumer<Collection<E>> selectionHandler) Sets selection handler for screen.void
setSelectionValidator
(Predicate<LookupView.ValidationContext<E>> selectionValidator) Sets selection validator.protected void
protected void
protected OperationResult
validateSelectedItems
(Collection<E> items) Methods inherited from class io.jmix.flowui.view.StandardView
initContent
Methods inherited from class io.jmix.flowui.view.View
addAfterCloseListener, 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, setMeterRegistry, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacets
Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement
Methods inherited from class com.vaadin.flow.component.Component
addListener, 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, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, 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
-
StandardListView
public StandardListView()
-
-
Method Details
-
setupLookupComponent
protected void setupLookupComponent() -
lookupEnterPress
-
setupSaveShortcut
protected void setupSaveShortcut() -
getSelectionHandler
- Specified by:
getSelectionHandler
in interfaceLookupView<E>
- Returns:
- selection handler
-
setSelectionHandler
Description copied from interface:LookupView
Sets selection handler for screen.- Specified by:
setSelectionHandler
in interfaceLookupView<E>
- Parameters:
selectionHandler
- selection handler
-
getLookupActionsLayout
-
getLookupComponent
- Specified by:
getLookupComponent
in interfaceLookupView<E>
- Returns:
- a component that is used to select entities of this view
-
findLookupComponent
- Specified by:
findLookupComponent
in interfaceLookupView<E>
- Returns:
- an optional component that is used to select entities of this view
-
getSelectionValidator
- Specified by:
getSelectionValidator
in interfaceLookupView<E>
- Returns:
- selection validator
-
setSelectionValidator
public void setSelectionValidator(@Nullable Predicate<LookupView.ValidationContext<E>> selectionValidator) Description copied from interface:LookupView
Sets selection validator.- Specified by:
setSelectionValidator
in interfaceLookupView<E>
- Parameters:
selectionValidator
- selection validator
-
setLookupComponentMultiSelect
public void setLookupComponentMultiSelect(boolean multiSelect) Description copied from interface:MultiSelectLookupView
Informs the view that a lookup component should change its selection mode, if possible.- Specified by:
setLookupComponentMultiSelect
in interfaceMultiSelectLookupView
- Parameters:
multiSelect
-true
to enable multiple selections,false
otherwise
-
handleSelection
Description copied from interface:LookupView
Handle selected entities.- Specified by:
handleSelection
in interfaceLookupView<E>
-
validateSelectedItems
-
doSelect
-
closeWithDiscard
Description copied from interface:LookupView
Close the view without selection.- Specified by:
closeWithDiscard
in interfaceLookupView<E>
-
getSelectAction
-
getDiscardAction
-