@StudioAction(target="io.jmix.ui.component.Filter", description="Saves changes to current filter configuration") @ActionType(value="filter_save") public class FilterSaveAction extends FilterSaveAsAction
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 |
---|---|
static java.lang.String |
ID |
protected java.util.Map<FilterComponent,java.lang.Object> |
valuesMap |
componentProperties, dialogs, filterComponents, filterSupport, inputDialogCloseListener, messages, uiComponents
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 |
---|
FilterSaveAction() |
FilterSaveAction(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Executes the
Action |
protected boolean |
isApplicable()
Callback method which is invoked by the action to determine its enabled state.
|
protected void |
saveExistedConfigurationModel(Filter.Configuration configuration,
FilterConfiguration existedConfigurationModel) |
protected void |
setMessages(io.jmix.core.Messages messages) |
applyDefaultInputDialogOkAction, copyConfiguration, initDefaultInputDialogCloseListener, initInputDialogFormFields, openInputDialog, saveNewConfigurationModel, setCurrentFilterConfiguration, setDialogs, setFilterComponents, setFilterSupport, setIcons, setInputDialogCloseListener, setUiComponentProperties, setUiComponents
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 java.util.Map<FilterComponent,java.lang.Object> valuesMap
public FilterSaveAction()
public FilterSaveAction(java.lang.String id)
@Autowired protected void setMessages(io.jmix.core.Messages messages)
setMessages
in class FilterSaveAsAction
protected boolean isApplicable()
BaseAction
isApplicable
in class FilterSaveAsAction
public void execute()
Action.ExecutableAction
Action
execute
in interface Action.ExecutableAction
execute
in class FilterSaveAsAction
protected void saveExistedConfigurationModel(Filter.Configuration configuration, @Nullable FilterConfiguration existedConfigurationModel)