Class GenericFilterAddConditionAction
java.lang.Object
io.jmix.flowui.kit.action.AbstractAction
io.jmix.flowui.kit.action.BaseAction
io.jmix.flowui.action.SecuredBaseAction
io.jmix.flowui.action.genericfilter.GenericFilterAction<GenericFilterAddConditionAction>
io.jmix.flowui.action.genericfilter.GenericFilterAddConditionAction
- All Implemented Interfaces:
- AdjustWhenViewReadOnly,- ExecutableAction,- SecuredAction,- TargetAction<GenericFilter>,- Action,- HasShortcutCombination
@ActionType("genericFilter_addCondition")
public class GenericFilterAddConditionAction
extends GenericFilterAction<GenericFilterAddConditionAction>
implements AdjustWhenViewReadOnly
- 
Nested Class SummaryNested classes/interfaces inherited from class io.jmix.flowui.action.SecuredBaseActionSecuredBaseAction.EnabledRule
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected GenericFilterConditionsBuilderprotected DialogWindowsprotected FilterComponentsstatic final Stringprotected Messagesprotected Notificationsprotected Consumer<Collection<FilterCondition>>protected Predicate<LookupView.ValidationContext<FilterCondition>>Fields inherited from class io.jmix.flowui.action.genericfilter.GenericFilterActionconfigurationChangeRegistration, filterComponentsChangeRegistration, target, visibleBySpecificUiPermissionFields 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 SummaryConstructorsConstructorDescription
- 
Method SummaryModifier and TypeMethodDescriptionvoidexecute()Executes theActionprotected voidprotected voidprotected voidprotected booleanprotected voidopenAddConditionView(List<FilterCondition> filterConditions) protected voidsetAccessManager(AccessManager accessManager) voidsetBuilder(GenericFilterConditionsBuilder builder) voidsetDialogWindows(DialogWindows dialogWindows) protected booleansetFilterComponentDefaultValue(FilterComponent filterComponent, Configuration currentConfiguration) voidsetFilterComponents(FilterComponents filterComponents) protected voidsetMessages(Messages messages) voidsetNotifications(Notifications notifications) voidsetSelectHandler(Consumer<Collection<FilterCondition>> selectHandler) voidsetSelectValidator(Predicate<LookupView.ValidationContext<FilterCondition>> selectValidator) withSelectHandler(Consumer<Collection<FilterCondition>> handler) Methods inherited from class io.jmix.flowui.action.genericfilter.GenericFilterActionactionPerform, bindFilterComponentsChangeListener, bindListeners, checkTarget, getParentView, getTarget, isPermitted, isVisibleByUiPermissions, onConfigurationChanged, onFilterComponentsChanged, setTarget, setTargetInternal, unbindFilterComponentsChange, unbindListeners, withEnabled, withEnabledByUiPermissions, withHandler, withIcon, withIcon, withShortcutCombination, withTarget, withText, withTitle, withVariant, withVisible, withVisibleByUiPermissionsMethods inherited from class io.jmix.flowui.action.SecuredBaseActionaddEnabledRule, isEnabledByRule, isEnabledByUiPermissions, 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.ActionaddPropertyChangeListener, getDescription, getIcon, getId, getText, getVariant, isEnabled, isVisible, refreshState, setDescription, setEnabled, setIcon, setText, setVariant, setVisibleMethods inherited from interface io.jmix.flowui.action.AdjustWhenViewReadOnlyisDisabledWhenViewReadOnlyMethods inherited from interface io.jmix.flowui.kit.component.HasShortcutCombinationgetShortcutCombination, setShortcutCombination
- 
Field Details- 
ID- See Also:
 
- 
messages
- 
dialogWindows
- 
notifications
- 
builder
- 
filterComponents
- 
selectValidator
- 
selectHandler
 
- 
- 
Constructor Details- 
GenericFilterAddConditionActionpublic GenericFilterAddConditionAction()
- 
GenericFilterAddConditionAction
 
- 
- 
Method Details- 
initActionprotected void initAction()- Overrides:
- initActionin class- GenericFilterAction<GenericFilterAddConditionAction>
 
- 
setMessages
- 
setDialogWindows
- 
setNotifications
- 
setBuilder
- 
setFilterComponents
- 
setAccessManager
- 
setSelectValidatorpublic void setSelectValidator(@Nullable Predicate<LookupView.ValidationContext<FilterCondition>> selectValidator) 
- 
setSelectHandler
- 
isApplicableprotected boolean isApplicable()- Overrides:
- isApplicablein class- GenericFilterAction<GenericFilterAddConditionAction>
 
- 
executepublic void execute()Description copied from interface:ExecutableActionExecutes theAction- Specified by:
- executein interface- ExecutableAction
 
- 
withSelectValidatorpublic GenericFilterAddConditionAction withSelectValidator(@Nullable Predicate<LookupView.ValidationContext<FilterCondition>> validator) 
- 
withSelectHandlerpublic GenericFilterAddConditionAction withSelectHandler(@Nullable Consumer<Collection<FilterCondition>> handler) 
- 
initDefaultSelectValidatorprotected void initDefaultSelectValidator()
- 
initDefaultSelectHandlerprotected void initDefaultSelectHandler()
- 
setFilterComponentDefaultValueprotected boolean setFilterComponentDefaultValue(FilterComponent filterComponent, Configuration currentConfiguration) 
- 
openAddConditionView
 
-