Class MultiValueSelectDialog<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>
io.jmix.flowui.app.multivaluepicker.MultiValueSelectDialog<E>
- 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,MultiValueSelectView<E>,FragmentOwner,LookupView<E>,MultiSelectLookupView,Serializable
@ViewController("multiValueSelectDialog")
@ViewDescriptor("multi-value-select-dialog.xml")
@DialogMode(height="30em",
minWidth="25em",
resizable=true)
public class MultiValueSelectDialog<E>
extends StandardListView<E>
implements MultiValueSelectView<E>
- 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.PostReadyEvent, View.QueryParametersChangeEvent, View.ReadyEvent, View.RestoreComponentsStateEventNested classes/interfaces inherited from interface io.jmix.flowui.view.LookupView
LookupView.ValidationContext<E>Nested classes/interfaces inherited from interface io.jmix.flowui.app.multivaluepicker.MultiValueSelectView
MultiValueSelectView.MultiValueSelectContext<E> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.vaadin.flow.component.orderedlayout.HorizontalLayoutprotected MultiValueSelectView.MultiValueSelectContext<E>protected CurrentAuthenticationprotected DatatypeRegistryprotected DialogWindowsprotected Messagesprotected MetadataToolsprotected com.vaadin.flow.component.orderedlayout.VerticalLayoutprotected JmixButtonprotected UiComponentsprotected UiComponentsGeneratorFields inherited from class io.jmix.flowui.view.StandardListView
DISCARD_ACTION_DEFAULT_ID, LOOKUP_ACTIONS_LAYOUT_DEFAULT_ID, SELECT_ACTION_DEFAULT_ID, selectionHandler, selectionValidator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddValueInternal(com.vaadin.flow.component.HasValue<?, E> component) protected voidaddValueInternal(com.vaadin.flow.component.HasValue<?, E> component, Collection<E> itemsToAdd) protected voidaddValuesToLayout(Collection<E> items) protected voidaddValueToLayout(E value) protected StringgetGeneratedLabel(E value) getValue()Returns the selected values in the current multi-value select component.protected voidprotected voidprotected booleanisValid(SupportsValidation<E> component) protected voidvoidonCancel(ActionPerformedEvent event) voidonSelect(ActionPerformedEvent event) voidSets the context for generating multi-value select components.protected booleanvalueExists(E value) Methods inherited from class io.jmix.flowui.view.StandardListView
closeWithDiscard, doSelect, findLookupComponent, getDiscardAction, getLookupActionsLayout, getLookupComponent, getSelectAction, getSelectionHandler, getSelectionValidator, handleSelection, lookupEnterPress, setLookupComponentMultiSelect, setSelectionHandler, setSelectionValidator, setupLookupComponent, setupSaveShortcut, validateSelectedItemsMethods inherited from class io.jmix.flowui.view.StandardView
initContentMethods inherited from class io.jmix.flowui.view.View
addAfterCloseListener, addApplicationListeners, addBeforeCloseListener, addBeforeShowListener, addInitListener, addQueryParametersChangeListener, addReadyListener, addRestoreComponentsStateEventListener, afterNavigation, beforeEnter, beforeLeave, close, close, closeWithDefaultAction, configureDialogWindowFooter, configureDialogWindowHeader, getApplicationContext, getEventBus, getId, getPageTitle, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, isPreventBrowserTabClosing, onAttach, onAttachInternal, onDetach, onDetachInternal, processBeforeEnterInternal, removeApplicationListeners, removeViewAttributes, setAfterNavigationHandler, setApplicationContext, setId, setMeterRegistry, setPageTitle, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacets, unregisterBackNavigationMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, 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.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
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
selectBtn
-
addItemLayout
-
multiValueLayout
-
messages
-
uiComponentsGenerator
-
uiComponents
-
dialogWindows
-
datatypeRegistry
-
currentAuthentication
-
metadataTools
-
context
-
values
-
-
Constructor Details
-
MultiValueSelectDialog
public MultiValueSelectDialog()
-
-
Method Details
-
setMultiValueSelectContext
Description copied from interface:MultiValueSelectViewSets the context for generating multi-value select components.- Specified by:
setMultiValueSelectContextin interfaceMultiValueSelectView<E>- Parameters:
context- theMultiValueSelectView.MultiValueSelectContextcontaining parameters and handlers required for configuring and managing the multi-value select component
-
getValue
Description copied from interface:MultiValueSelectViewReturns the selected values in the current multi-value select component.- Specified by:
getValuein interfaceMultiValueSelectView<E>- Returns:
- a list of selected values
-
initAddComponentLayout
protected void initAddComponentLayout() -
addValueInternal
-
addValueInternal
protected void addValueInternal(com.vaadin.flow.component.HasValue<?, E> component, Collection<E> itemsToAdd) -
isValid
-
valueExists
-
initValues
protected void initValues() -
addValueToLayout
-
lookupActionPerformed
-
addValuesToLayout
-
getGeneratedLabel
-
onSelect
-
onCancel
-