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
FieldsModifier 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.GenericFilterAction
configurationChangeRegistration, filterComponentsChangeRegistration, target, visibleBySpecificUiPermissionFields inherited from class io.jmix.flowui.action.SecuredBaseAction
enabledByUiPermissions, enabledRules, visibleByUiPermissionsFields inherited from class io.jmix.flowui.kit.action.BaseAction
enabledExplicitly, visibleExplicitlyFields inherited from class io.jmix.flowui.kit.action.AbstractAction
description, enabled, eventBus, icon, id, shortcutCombination, text, variant, visibleFields 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
ConstructorsConstructorDescription -
Method Summary
Modifier 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.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, withVisibleByUiPermissionsMethods inherited from class io.jmix.flowui.action.SecuredBaseAction
addEnabledRule, isEnabledByRule, isEnabledByUiPermissions, refreshState, removeEnabledRule, setEnabledByUiPermissions, setVisibleByUiPermissionsMethods inherited from class io.jmix.flowui.kit.action.BaseAction
addActionPerformedListener, setEnabled, setEnabledInternal, setVisible, setVisibleInternal, withDescriptionMethods 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, setVariantMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.flowui.kit.action.Action
addPropertyChangeListener, getDescription, getIcon, getId, getText, getVariant, isEnabled, isVisible, refreshState, setDescription, setEnabled, setIcon, setText, setVariant, setVisibleMethods inherited from interface io.jmix.flowui.action.AdjustWhenViewReadOnly
isDisabledWhenViewReadOnlyMethods 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:
initActionin classGenericFilterAction<GenericFilterAddConditionAction>
-
setMessages
-
setDialogWindows
-
setNotifications
-
setBuilder
-
setFilterComponents
-
setAccessManager
-
setSelectValidator
public void setSelectValidator(@Nullable Predicate<LookupView.ValidationContext<FilterCondition>> selectValidator) -
setSelectHandler
-
isApplicable
protected boolean isApplicable()- Overrides:
isApplicablein classGenericFilterAction<GenericFilterAddConditionAction>
-
execute
public void execute()Description copied from interface:ExecutableActionExecutes theAction- Specified by:
executein 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
-