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 Summary
Nested classes/interfaces inherited from class io.jmix.flowui.action.SecuredBaseAction
SecuredBaseAction.EnabledRule
-
Field Summary
Modifier and TypeFieldDescriptionprotected GenericFilterConditionsBuilder
protected DialogWindows
protected FilterComponents
static final String
protected Messages
protected Notifications
protected Consumer<Collection<FilterCondition>>
protected Predicate<LookupView.ValidationContext<FilterCondition>>
Fields inherited from class io.jmix.flowui.action.genericfilter.GenericFilterAction
configurationChangeRegistration, filterComponentsChangeRegistration, target, visibleBySpecificUiPermission
Fields inherited from class io.jmix.flowui.action.SecuredBaseAction
enabledByUiPermissions, enabledRules, visibleByUiPermissions
Fields inherited from class io.jmix.flowui.kit.action.BaseAction
enabledExplicitly, visibleExplicitly
Fields inherited from class io.jmix.flowui.kit.action.AbstractAction
description, enabled, eventBus, icon, id, shortcutCombination, text, variant, visible
Fields inherited from interface io.jmix.flowui.kit.action.Action
PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT_COMBINATION, PROP_TEXT, PROP_VARIANT, PROP_VISIBLE
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Executes theAction
protected void
protected void
protected void
protected boolean
protected void
openAddConditionView
(List<FilterCondition> filterConditions) protected void
setAccessManager
(AccessManager accessManager) void
setBuilder
(GenericFilterConditionsBuilder builder) void
setDialogWindows
(DialogWindows dialogWindows) protected boolean
setFilterComponentDefaultValue
(FilterComponent filterComponent, Configuration currentConfiguration) void
setFilterComponents
(FilterComponents filterComponents) protected void
setMessages
(Messages messages) void
setNotifications
(Notifications notifications) void
setSelectHandler
(Consumer<Collection<FilterCondition>> selectHandler) void
setSelectValidator
(Predicate<LookupView.ValidationContext<FilterCondition>> selectValidator) withSelectHandler
(Consumer<Collection<FilterCondition>> handler) Methods inherited from class io.jmix.flowui.action.genericfilter.GenericFilterAction
actionPerform, bindFilterComponentsChangeListener, bindListeners, checkTarget, getParentView, getTarget, isPermitted, isVisibleByUiPermissions, onConfigurationChanged, onFilterComponentsChanged, setTarget, setTargetInternal, unbindFilterComponentsChange, unbindListeners, withEnabled, withEnabledByUiPermissions, withHandler, withIcon, withIcon, withShortcutCombination, withTarget, withText, withTitle, withVariant, withVisible, withVisibleByUiPermissions
Methods inherited from class io.jmix.flowui.action.SecuredBaseAction
addEnabledRule, isEnabledByRule, isEnabledByUiPermissions, refreshState, removeEnabledRule, setEnabledByUiPermissions, setVisibleByUiPermissions
Methods inherited from class io.jmix.flowui.kit.action.BaseAction
addActionPerformedListener, setEnabled, setEnabledInternal, setVisible, setVisibleInternal
Methods inherited from class io.jmix.flowui.kit.action.AbstractAction
addPropertyChangeListener, firePropertyChange, getDescription, getEventBus, getIcon, getId, getShortcutCombination, getText, getVariant, hasListener, isEnabled, isVisible, setDescription, setIcon, setShortcutCombination, setText, setVariant
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.flowui.kit.action.Action
addPropertyChangeListener, getDescription, getIcon, getId, getText, getVariant, isEnabled, isVisible, refreshState, setDescription, setEnabled, setIcon, setText, setVariant, setVisible
Methods inherited from interface io.jmix.flowui.action.AdjustWhenViewReadOnly
isDisabledWhenViewReadOnly
Methods inherited from interface io.jmix.flowui.kit.component.HasShortcutCombination
getShortcutCombination, setShortcutCombination
-
Field Details
-
ID
- See Also:
-
messages
-
dialogWindows
-
notifications
-
builder
-
filterComponents
-
selectValidator
-
selectHandler
-
-
Constructor Details
-
GenericFilterAddConditionAction
public GenericFilterAddConditionAction() -
GenericFilterAddConditionAction
-
-
Method Details
-
initAction
protected void initAction()- Overrides:
initAction
in classGenericFilterAction<GenericFilterAddConditionAction>
-
setMessages
-
setDialogWindows
-
setNotifications
-
setBuilder
-
setFilterComponents
-
setAccessManager
-
setSelectValidator
public void setSelectValidator(@Nullable Predicate<LookupView.ValidationContext<FilterCondition>> selectValidator) -
setSelectHandler
-
isApplicable
protected boolean isApplicable()- Overrides:
isApplicable
in classGenericFilterAction<GenericFilterAddConditionAction>
-
execute
public void execute()Description copied from interface:ExecutableAction
Executes theAction
- Specified by:
execute
in interfaceExecutableAction
-
withSelectValidator
public GenericFilterAddConditionAction withSelectValidator(@Nullable Predicate<LookupView.ValidationContext<FilterCondition>> validator) -
withSelectHandler
public GenericFilterAddConditionAction withSelectHandler(@Nullable Consumer<Collection<FilterCondition>> handler) -
initDefaultSelectValidator
protected void initDefaultSelectValidator() -
initDefaultSelectHandler
protected void initDefaultSelectHandler() -
setFilterComponentDefaultValue
protected boolean setFilterComponentDefaultValue(FilterComponent filterComponent, Configuration currentConfiguration) -
openAddConditionView
-