Package io.jmix.ui.action.filter
Class FilterAddConditionAction
java.lang.Object
io.jmix.ui.action.AbstractAction
io.jmix.ui.action.BaseAction
io.jmix.ui.action.filter.FilterAction
io.jmix.ui.action.filter.FilterAddConditionAction
- All Implemented Interfaces:
Action,Action.ExecutableAction,Action.HasPrimaryState,Action.SecuredAction
@StudioAction(target="io.jmix.ui.component.Filter",
description="Adds condition to current filter configuration")
@ActionType("filter_addCondition")
public class FilterAddConditionAction
extends FilterAction
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.ui.action.BaseAction
BaseAction.EnabledRuleNested classes/interfaces inherited from interface io.jmix.ui.action.Action
Action.ActionPerformedEvent, Action.AdjustWhenScreenReadOnly, Action.ExecutableAction, Action.HasPrimaryState, Action.HasSecurityConstraint, Action.HasTarget, Action.MainTabSheetAction, Action.ScreenOpeningAction, Action.SecuredAction, Action.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FilterConditionsBuilderprotected FilterComponentsstatic final Stringprotected Messagesprotected Notificationsprotected ScreenBuildersprotected Consumer<Collection<FilterCondition>>protected Predicate<LookupScreen.ValidationContext<FilterCondition>>Fields inherited from class io.jmix.ui.action.filter.FilterAction
filterFields inherited from class io.jmix.ui.action.AbstractAction
caption, description, enabled, eventHub, icon, id, owners, primary, shortcut, visibleFields inherited from interface io.jmix.ui.action.Action
PROP_CAPTION, PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_VISIBLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Executes theActionprotected voidprotected voidprotected booleanCallback method which is invoked by the action to determine its enabled state.protected voidopenAddConditionScreen(List<FilterCondition> filterConditions) protected booleansetFilterComponentDefaultValue(FilterComponent filterComponent, Filter.Configuration currentConfiguration) voidsetFilterComponents(FilterComponents filterComponents) voidprotected voidprotected voidsetMessages(Messages messages) voidsetNotifications(Notifications notifications) voidsetScreenBuilders(ScreenBuilders screenBuilders) voidsetSelectHandler(Consumer<Collection<FilterCondition>> selectHandler) voidsetSelectValidator(Predicate<LookupScreen.ValidationContext<FilterCondition>> selectValidator) Methods inherited from class io.jmix.ui.action.filter.FilterAction
actionPerform, getFilter, setFilterMethods inherited from class io.jmix.ui.action.BaseAction
addActionPerformedListener, addEnabledRule, isEnabledByRule, isEnabledByUiPermissions, isPermitted, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabled, setEnabledByUiPermissions, setEnabledInternal, setVisible, setVisibleByUiPermissions, setVisibleInternal, withCaption, withDescription, withHandler, withIcon, withPrimary, withShortcutMethods inherited from class io.jmix.ui.action.AbstractAction
addOwner, addPropertyChangeListener, firePropertyChange, getCaption, getDescription, getEventHub, getIcon, getId, getOwner, getOwners, getShortcutCombination, hasSubscriptions, isEnabled, isPrimary, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setPrimary, setShortcut, setShortcutCombinationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.ui.action.Action
addOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isVisible, refreshState, removeOwner, removePropertyChangeListener, setCaption, setDescription, setEnabled, setIcon, setShortcut, setShortcutCombination, setVisible
-
Field Details
-
ID
- See Also:
-
filterComponents
-
builder
-
messages
-
notifications
-
screenBuilders
-
selectValidator
-
selectHandler
-
-
Constructor Details
-
FilterAddConditionAction
public FilterAddConditionAction() -
FilterAddConditionAction
-
-
Method Details
-
setMessages
-
setIcons
-
setFilterComponents
-
setFilterConditionsBuilder
-
setNotifications
-
setScreenBuilders
-
setSelectValidator
public void setSelectValidator(Predicate<LookupScreen.ValidationContext<FilterCondition>> selectValidator) -
setSelectHandler
-
isApplicable
protected boolean isApplicable()Description copied from class:BaseActionCallback method which is invoked by the action to determine its enabled state.- Overrides:
isApplicablein classFilterAction- Returns:
- true if the action is enabled for the current context, e.g. there is a selected row in a table
-
execute
public void execute()Description copied from interface:Action.ExecutableActionExecutes theAction -
initDefaultSelectValidator
protected void initDefaultSelectValidator() -
initDefaultSelectHandler
protected void initDefaultSelectHandler() -
setFilterComponentDefaultValue
protected boolean setFilterComponentDefaultValue(FilterComponent filterComponent, Filter.Configuration currentConfiguration) -
openAddConditionScreen
-