Package io.jmix.uidata.action.filter
Class FilterSaveAsAction
java.lang.Object
io.jmix.ui.action.AbstractAction
io.jmix.ui.action.BaseAction
io.jmix.ui.action.filter.FilterAction
io.jmix.uidata.action.filter.FilterSaveAsAction
- All Implemented Interfaces:
Action
,Action.ExecutableAction
,Action.HasPrimaryState
,Action.SecuredAction
- Direct Known Subclasses:
FilterSaveAction
@StudioAction(target="io.jmix.ui.component.Filter",
description="Saves current filter configuration under a new id and name")
@ActionType("filter_saveAs")
public class FilterSaveAsAction
extends FilterAction
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.ui.action.BaseAction
BaseAction.EnabledRule
Nested 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.OperationResultAction, Action.ScreenAction<S extends Screen>, Action.ScreenOpeningAction, Action.SecuredAction, Action.Status
-
Field Summary
Modifier and TypeFieldDescriptionprotected UiComponentProperties
protected Dialogs
protected FilterComponents
protected FilterSupport
static final String
protected Consumer<InputDialog.InputDialogCloseEvent>
protected Messages
protected UiComponents
Fields inherited from class io.jmix.ui.action.filter.FilterAction
filter
Fields inherited from class io.jmix.ui.action.AbstractAction
caption, description, enabled, eventHub, icon, id, owners, primary, shortcut, visible
Fields inherited from interface io.jmix.ui.action.Action
PROP_CAPTION, PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_VISIBLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
applyDefaultInputDialogOkAction
(InputDialog.InputDialogCloseEvent inputDialogCloseEvent) protected Filter.Configuration
copyConfiguration
(String newId, Filter.Configuration existingConfiguration) void
execute()
Executes theAction
protected void
protected void
protected boolean
Callback method which is invoked by the action to determine its enabled state.protected void
protected void
saveNewConfigurationModel
(Filter.Configuration configuration) protected void
setCurrentFilterConfiguration
(Filter.Configuration configuration) void
setDialogs
(Dialogs dialogs) void
setFilterComponents
(FilterComponents filterComponents) void
setFilterSupport
(FilterSupport filterSupport) protected void
void
setInputDialogCloseListener
(Consumer<InputDialog.InputDialogCloseEvent> inputDialogCloseListener) protected void
setMessages
(Messages messages) void
setUiComponentProperties
(UiComponentProperties componentProperties) void
setUiComponents
(UiComponents uiComponents) Methods inherited from class io.jmix.ui.action.filter.FilterAction
actionPerform, getFilter, setFilter
Methods 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, withShortcut
Methods 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, setShortcutCombination
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
-
messages
-
dialogs
-
filterSupport
-
filterComponents
-
uiComponents
-
componentProperties
-
inputDialogCloseListener
-
-
Constructor Details
-
FilterSaveAsAction
public FilterSaveAsAction() -
FilterSaveAsAction
-
-
Method Details
-
setMessages
-
setIcons
-
setDialogs
-
setFilterSupport
-
setFilterComponents
-
setUiComponents
-
setUiComponentProperties
-
setInputDialogCloseListener
public void setInputDialogCloseListener(Consumer<InputDialog.InputDialogCloseEvent> inputDialogCloseListener) -
isApplicable
protected boolean isApplicable()Description copied from class:BaseAction
Callback method which is invoked by the action to determine its enabled state.- Overrides:
isApplicable
in 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.ExecutableAction
Executes theAction
-
initDefaultInputDialogCloseListener
protected void initDefaultInputDialogCloseListener() -
applyDefaultInputDialogOkAction
protected void applyDefaultInputDialogOkAction(InputDialog.InputDialogCloseEvent inputDialogCloseEvent) -
openInputDialog
protected void openInputDialog() -
initInputDialogFormFields
-
copyConfiguration
protected Filter.Configuration copyConfiguration(String newId, Filter.Configuration existingConfiguration) -
saveNewConfigurationModel
-
setCurrentFilterConfiguration
-