@StudioAction(target="io.jmix.ui.component.Filter", description="Edits current run-time filter configuration") @ActionType(value="filter_edit") public class FilterEditAction extends FilterAction
BaseAction.EnabledRule
Action.ActionPerformedEvent, Action.AdjustWhenScreenReadOnly, Action.ExecutableAction, Action.HasPrimaryState, Action.HasSecurityConstraint, Action.HasTarget, Action.MainTabSheetAction, Action.ScreenOpeningAction, Action.SecuredAction, Action.Status
Modifier and Type | Field and Description |
---|---|
protected FilterComponents |
filterComponents |
protected FilterSupport |
filterSupport |
protected Fragments |
fragments |
static java.lang.String |
ID |
protected io.jmix.core.Messages |
messages |
protected ScreenBuilders |
screenBuilders |
filter
caption, description, enabled, eventHub, icon, id, owners, primary, shortcut, visible
PROP_CAPTION, PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_VISIBLE
Constructor and Description |
---|
FilterEditAction() |
FilterEditAction(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
protected void |
applyScreenConfigurer(Screen editScreen) |
protected Screen |
createEditScreen(java.lang.Class modelClass,
LogicalFilterCondition model) |
void |
execute()
Executes the
Action |
protected boolean |
isApplicable()
Callback method which is invoked by the action to determine its enabled state.
|
protected void |
onEditScreenAfterCommit(ScreenFragment configurationFormFragment,
LogicalFilterCondition filterCondition,
FilterConverter converter,
boolean isNewConfiguration,
Filter.Configuration currentConfiguration,
java.util.Map<java.lang.String,java.lang.Object> valuesMap) |
void |
setFilterComponents(FilterComponents filterComponents) |
void |
setFilterSupport(FilterSupport filterSupport) |
void |
setFragments(Fragments fragments) |
protected void |
setIcons(Icons icons) |
protected void |
setMessages(io.jmix.core.Messages messages) |
void |
setScreenBuilders(ScreenBuilders screenBuilders) |
actionPerform, getFilter, setFilter
addActionPerformedListener, addEnabledRule, isEnabledByRule, isEnabledByUiPermissions, isPermitted, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabled, setEnabledByUiPermissions, setEnabledInternal, setVisible, setVisibleByUiPermissions, setVisibleInternal, withCaption, withDescription, withHandler, withIcon, withPrimary, withShortcut
addOwner, addPropertyChangeListener, firePropertyChange, getCaption, getDescription, getEventHub, getIcon, getId, getOwner, getOwners, getShortcutCombination, hasSubscriptions, isEnabled, isPrimary, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setPrimary, setShortcut, setShortcutCombination
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isVisible, refreshState, removeOwner, removePropertyChangeListener, setCaption, setDescription, setEnabled, setIcon, setShortcut, setShortcutCombination, setVisible
public static final java.lang.String ID
protected FilterComponents filterComponents
protected FilterSupport filterSupport
protected ScreenBuilders screenBuilders
protected Fragments fragments
protected io.jmix.core.Messages messages
public FilterEditAction()
public FilterEditAction(java.lang.String id)
@Autowired protected void setMessages(io.jmix.core.Messages messages)
@Autowired protected void setIcons(Icons icons)
@Autowired public void setScreenBuilders(ScreenBuilders screenBuilders)
@Autowired public void setFilterComponents(FilterComponents filterComponents)
@Autowired public void setFilterSupport(FilterSupport filterSupport)
@Autowired public void setFragments(Fragments fragments)
protected boolean isApplicable()
BaseAction
isApplicable
in class FilterAction
public void execute()
Action.ExecutableAction
Action
protected Screen createEditScreen(java.lang.Class modelClass, LogicalFilterCondition model)
protected void applyScreenConfigurer(Screen editScreen)
protected void onEditScreenAfterCommit(ScreenFragment configurationFormFragment, LogicalFilterCondition filterCondition, FilterConverter converter, boolean isNewConfiguration, Filter.Configuration currentConfiguration, java.util.Map<java.lang.String,java.lang.Object> valuesMap)