Class MultiValueSelectAction<E>
java.lang.Object
io.jmix.flowui.kit.action.AbstractAction
io.jmix.flowui.kit.action.BaseAction
io.jmix.flowui.action.SecuredBaseAction
io.jmix.flowui.action.valuepicker.PickerAction<MultiValueSelectAction<E>,PickerComponent<Collection<E>>,Collection<E>>
  
io.jmix.flowui.action.multivaluepicker.MultiValueSelectAction<E>
- All Implemented Interfaces:
- ExecutableAction,- SecuredAction,- TargetAction<PickerComponent<Collection<E>>>,- ViewOpeningAction,- Action,- HasShortcutCombination,- org.springframework.beans.factory.InitializingBean
@ActionType("multi_value_select")
public class MultiValueSelectAction<E>
extends PickerAction<MultiValueSelectAction<E>,PickerComponent<Collection<E>>,Collection<E>>
implements org.springframework.beans.factory.InitializingBean, ViewOpeningAction  
Standard multi value select action for selection the field value.
 
 Should be defined for JmixMultiValuePicker or its subclass
- 
Nested Class SummaryNested classes/interfaces inherited from class io.jmix.flowui.action.SecuredBaseActionSecuredBaseAction.EnabledRuleNested classes/interfaces inherited from interface io.jmix.flowui.action.ViewOpeningActionViewOpeningAction.QueryParametersProvider, ViewOpeningAction.RouteParametersProvider
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringprotected DialogWindowsstatic final Stringprotected Messagesprotected MultiValueSelectView.MultiValueSelectContext<E>protected booleanprotected UiComponentPropertiesprotected ActionViewInitializerFields inherited from class io.jmix.flowui.action.valuepicker.PickerActiontargetFields inherited from class io.jmix.flowui.action.SecuredBaseActionenabledByUiPermissions, enabledRules, visibleByUiPermissionsFields inherited from class io.jmix.flowui.kit.action.BaseActionenabledExplicitly, visibleExplicitlyFields inherited from class io.jmix.flowui.kit.action.AbstractActiondescription, enabled, eventBus, icon, id, shortcutCombination, text, variant, visibleFields inherited from interface io.jmix.flowui.kit.action.ActionPROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT_COMBINATION, PROP_TEXT, PROP_VARIANT, PROP_VISIBLE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddValidator(Validator<E> validator) voidvoidexecute()Executes theAction<V extends View<?>>
 Consumer<DialogWindow.AfterCloseEvent<V>>com.vaadin.flow.component.ItemLabelGenerator<E>com.vaadin.flow.data.provider.DataProvider<?,?> getItems()Class<?>Returns the view open mode if it was set byViewOpeningAction.setOpenMode(OpenMode)or in the view XML, otherwise returnsnull.Returns the view class if it was set byViewOpeningAction.setViewClass(Class)or in the view XML, otherwise returnsnull.Returns the view id if it was set byViewOpeningAction.setViewId(String)or in the view XML, otherwise returnsnull.protected voidprotected voidinitMultiValuePickerComponentValueType(EntityValueSource<?, ?> valueSource) booleanboolean<V extends View<?>>
 voidsetAfterCloseHandler(Consumer<DialogWindow.AfterCloseEvent<V>> afterCloseHandler) Sets the handler to be invoked when the detail view closes.voidsetDialogWindows(DialogWindows dialogWindows) voidsetEntityName(String entityName) voidsetEnumClass(Class<? extends Enum<?>> enumClass) voidsetItemLabelGenerator(com.vaadin.flow.component.ItemLabelGenerator<E> itemLabelGenerator) voidsetItems(com.vaadin.flow.data.provider.DataProvider<?, ?> items) voidsetJavaClass(Class<?> javaClass) voidsetLookupViewId(String lookupViewId) protected voidsetMessages(Messages messages) voidsetOpenMode(OpenMode openMode) Sets the view open mode.voidSets query parameters provider that returns query parameters that should be used in the URL.protected voidsetReadOnly(boolean readOnly) voidSets route parameters provider that returns route parameters that should be used in the route template.voidsetTimeZone(TimeZone timeZone) protected voidsetUiComponentProperties(UiComponentProperties uiComponentProperties) voidsetUseComboBox(boolean useComboBox) voidsetValidators(List<Validator<E>> validators) voidsetViewClass(Class<? extends View> viewClass) Sets the view class.<V extends View<?>>
 voidsetViewConfigurer(Consumer<V> viewConfigurer) Sets the view configurer.voidSets the view id.<V extends View<?>>
 MultiValueSelectAction<E>withAfterCloseHandler(Consumer<DialogWindow.AfterCloseEvent<V>> afterCloseHandler) withEntityName(String entityName) withEnumClass(Class<? extends Enum<?>> enumClass) withItemLabelGenerator(com.vaadin.flow.component.ItemLabelGenerator<E> itemLabelGenerator) withItems(com.vaadin.flow.data.provider.DataProvider<?, ?> items) withJavaClass(Class<?> javaClass) withLookupViewId(String lookupViewId) withReadOnly(boolean readOnly) withTimeZone(TimeZone timeZone) withUseComboBox(boolean useComboBox) withValidators(List<Validator<E>> validators) withViewClass(Class<? extends View> viewClass) <V extends View<?>>
 MultiValueSelectAction<E>withViewConfigurer(Consumer<V> viewConfigurer) withViewId(String viewId) Methods inherited from class io.jmix.flowui.action.valuepicker.PickerActionactionPerform, checkTarget, getTarget, isApplicable, setTarget, withEnabled, withEnabledByUiPermissions, withHandler, withIcon, withIcon, withShortcutCombination, withTarget, withText, withTitle, withVariant, withVisible, withVisibleByUiPermissionsMethods inherited from class io.jmix.flowui.action.SecuredBaseActionaddEnabledRule, isEnabledByRule, isEnabledByUiPermissions, isPermitted, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabledByUiPermissions, setVisibleByUiPermissionsMethods inherited from class io.jmix.flowui.kit.action.BaseActionaddActionPerformedListener, setEnabled, setEnabledInternal, setVisible, setVisibleInternalMethods inherited from class io.jmix.flowui.kit.action.AbstractActionaddPropertyChangeListener, firePropertyChange, getDescription, getEventBus, getIcon, getId, getShortcutCombination, getText, getVariant, hasListener, isEnabled, isVisible, setDescription, setIcon, setShortcutCombination, setText, setVariantMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.flowui.kit.action.ActionactionPerform, addPropertyChangeListener, getDescription, getIcon, getId, getText, getVariant, isEnabled, isVisible, refreshState, setDescription, setEnabled, setIcon, setText, setVariant, setVisibleMethods inherited from interface io.jmix.flowui.kit.component.HasShortcutCombinationgetShortcutCombination, setShortcutCombination
- 
Field Details- 
ID- See Also:
 
- 
DEFAULT_MULTI_VALUE_SELECT_VIEW- See Also:
 
- 
messages
- 
uiComponentProperties
- 
dialogWindows
- 
readOnlyprotected boolean readOnly
- 
viewInitializer
- 
multiValueSelectContext
 
- 
- 
Constructor Details- 
MultiValueSelectActionpublic MultiValueSelectAction()
- 
MultiValueSelectAction
 
- 
- 
Method Details- 
initActionprotected void initAction()- Overrides:
- initActionin class- PickerAction<MultiValueSelectAction<E>,- PickerComponent<Collection<E>>, - Collection<E>> 
 
- 
setUiComponentProperties
- 
setMessages
- 
setDialogWindows
- 
afterPropertiesSet- Specified by:
- afterPropertiesSetin interface- org.springframework.beans.factory.InitializingBean
- Throws:
- Exception
 
- 
isReadOnlypublic boolean isReadOnly()
- 
setReadOnlyprotected void setReadOnly(boolean readOnly) 
- 
getOpenModeDescription copied from interface:ViewOpeningActionReturns the view open mode if it was set byViewOpeningAction.setOpenMode(OpenMode)or in the view XML, otherwise returnsnull.- Specified by:
- getOpenModein interface- ViewOpeningAction
 
- 
setOpenModeDescription copied from interface:ViewOpeningActionSets the view open mode.- Specified by:
- setOpenModein interface- ViewOpeningAction
- Parameters:
- openMode- the open mode to set
 
- 
getViewIdDescription copied from interface:ViewOpeningActionReturns the view id if it was set byViewOpeningAction.setViewId(String)or in the view XML, otherwise returnsnull.- Specified by:
- getViewIdin interface- ViewOpeningAction
 
- 
setViewIdDescription copied from interface:ViewOpeningActionSets the view id.- Specified by:
- setViewIdin interface- ViewOpeningAction
- Parameters:
- viewId- the view id to set
 
- 
getViewClassDescription copied from interface:ViewOpeningActionReturns the view class if it was set byViewOpeningAction.setViewClass(Class)or in the view XML, otherwise returnsnull.- Specified by:
- getViewClassin interface- ViewOpeningAction
 
- 
setViewClassDescription copied from interface:ViewOpeningActionSets the view class.- Specified by:
- setViewClassin interface- ViewOpeningAction
- Parameters:
- viewClass- the view class to set
 
- 
getRouteParametersProvider- Specified by:
- getRouteParametersProviderin interface- ViewOpeningAction
- Returns:
- route parameters or nullif not set
 
- 
setRouteParametersProviderpublic void setRouteParametersProvider(@Nullable ViewOpeningAction.RouteParametersProvider provider) Description copied from interface:ViewOpeningActionSets route parameters provider that returns route parameters that should be used in the route template.Note that route parameters provider is set if the detail is opened in OpenMode.NAVIGATION.- Specified by:
- setRouteParametersProviderin interface- ViewOpeningAction
- Parameters:
- provider- route parameters provider to set
- See Also:
- 
- Route
 
 
- 
getQueryParametersProvider- Specified by:
- getQueryParametersProviderin interface- ViewOpeningAction
- Returns:
- query parameters provider or nullif not set
 
- 
setQueryParametersProviderpublic void setQueryParametersProvider(@Nullable ViewOpeningAction.QueryParametersProvider provider) Description copied from interface:ViewOpeningActionSets query parameters provider that returns query parameters that should be used in the URL.Note that query parameters provider is set if the detail is opened in OpenMode.NAVIGATION.- Specified by:
- setQueryParametersProviderin interface- ViewOpeningAction
- Parameters:
- provider- query parameters provider to set
 
- 
setAfterCloseHandlerpublic <V extends View<?>> void setAfterCloseHandler(@Nullable Consumer<DialogWindow.AfterCloseEvent<V>> afterCloseHandler) Description copied from interface:ViewOpeningActionSets the handler to be invoked when the detail view closes.Note that handler is invoked if the detail is opened in OpenMode.DIALOGmode.The preferred way to set the handler is using a controller method annotated with Install, e.g.:@Install(to = "petsTable.view", subject = "afterCloseHandler") protected void petsTableViewAfterCloseHandler(AfterCloseEvent event) { if (event.closedWith(StandardOutcome.SAVE)) { System.out.println("Saved"); } }- Specified by:
- setAfterCloseHandlerin interface- ViewOpeningAction
- Type Parameters:
- V- view type
- Parameters:
- afterCloseHandler- handler to set
 
- 
getAfterCloseHandler- Specified by:
- getAfterCloseHandlerin interface- ViewOpeningAction
 
- 
setViewConfigurerDescription copied from interface:ViewOpeningActionSets the view configurer. Use the configurer if you need to provide parameters to the opened view through setters.The preferred way to set the configurer is using a controller method annotated with Install, e.g.:@Install(to = "petsTable.view", subject = "viewConfigurer") protected void petsTableViewConfigurer(View<?> view) { view.setSomeParameter(someValue); }- Specified by:
- setViewConfigurerin interface- ViewOpeningAction
 
- 
getViewConfigurer- Specified by:
- getViewConfigurerin interface- ViewOpeningAction
 
- 
getLookupViewId
- 
setLookupViewId
- 
getEntityName
- 
setEntityName
- 
getJavaClass
- 
setJavaClass
- 
getEnumClass
- 
setEnumClass
- 
isUseComboBoxpublic boolean isUseComboBox()
- 
setUseComboBoxpublic void setUseComboBox(boolean useComboBox) 
- 
getItems@Nullable public com.vaadin.flow.data.provider.DataProvider<?,?> getItems()
- 
setItemspublic void setItems(com.vaadin.flow.data.provider.DataProvider<?, ?> items) 
- 
getTimeZone
- 
setTimeZone
- 
getItemLabelGenerator
- 
setItemLabelGeneratorpublic void setItemLabelGenerator(@Nullable com.vaadin.flow.component.ItemLabelGenerator<E> itemLabelGenerator) 
- 
getValidators
- 
setValidators
- 
addValidator
- 
executepublic void execute()Description copied from interface:ExecutableActionExecutes theAction- Specified by:
- executein interface- ExecutableAction
 
- 
withViewId
- 
withViewClass
- 
withAfterCloseHandlerpublic <V extends View<?>> MultiValueSelectAction<E> withAfterCloseHandler(@Nullable Consumer<DialogWindow.AfterCloseEvent<V>> afterCloseHandler) 
- 
withViewConfigurerpublic <V extends View<?>> MultiValueSelectAction<E> withViewConfigurer(@Nullable Consumer<V> viewConfigurer) - See Also:
 
- 
withValidators
- 
withEntityName
- 
withEnumClass
- 
withJavaClass
- 
withReadOnly
- 
withLookupViewId
- 
withUseComboBox
- 
withItems
- 
withItemLabelGeneratorpublic MultiValueSelectAction<E> withItemLabelGenerator(@Nullable com.vaadin.flow.component.ItemLabelGenerator<E> itemLabelGenerator) 
- 
withTimeZone
- 
initMultiValuePickerComponentValueType
 
-