@StudioAction(target="io.jmix.ui.component.Filter", description="Saves current filter configuration under a new id and name") @ActionType(value="filter_saveAs") public class FilterSaveAsAction 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 UiComponentProperties |
componentProperties |
protected Dialogs |
dialogs |
protected FilterComponents |
filterComponents |
protected FilterSupport |
filterSupport |
static java.lang.String |
ID |
protected java.util.function.Consumer<InputDialog.InputDialogCloseEvent> |
inputDialogCloseListener |
protected io.jmix.core.Messages |
messages |
protected UiComponents |
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 |
---|
FilterSaveAsAction() |
FilterSaveAsAction(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
protected void |
applyDefaultInputDialogOkAction(InputDialog.InputDialogCloseEvent inputDialogCloseEvent) |
protected Filter.Configuration |
copyConfiguration(java.lang.String newId,
Filter.Configuration existingConfiguration) |
void |
execute()
Executes the
Action |
protected void |
initDefaultInputDialogCloseListener() |
protected void |
initInputDialogFormFields(Form form) |
protected boolean |
isApplicable()
Callback method which is invoked by the action to determine its enabled state.
|
protected void |
openInputDialog() |
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 |
setIcons(Icons icons) |
void |
setInputDialogCloseListener(java.util.function.Consumer<InputDialog.InputDialogCloseEvent> inputDialogCloseListener) |
protected void |
setMessages(io.jmix.core.Messages messages) |
void |
setUiComponentProperties(UiComponentProperties componentProperties) |
void |
setUiComponents(UiComponents uiComponents) |
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 io.jmix.core.Messages messages
protected Dialogs dialogs
protected FilterSupport filterSupport
protected FilterComponents filterComponents
protected UiComponents uiComponents
protected UiComponentProperties componentProperties
protected java.util.function.Consumer<InputDialog.InputDialogCloseEvent> inputDialogCloseListener
public FilterSaveAsAction()
public FilterSaveAsAction(java.lang.String id)
@Autowired protected void setMessages(io.jmix.core.Messages messages)
@Autowired protected void setIcons(Icons icons)
@Autowired public void setDialogs(Dialogs dialogs)
@Autowired public void setFilterSupport(FilterSupport filterSupport)
@Autowired public void setFilterComponents(FilterComponents filterComponents)
@Autowired public void setUiComponents(UiComponents uiComponents)
@Autowired public void setUiComponentProperties(UiComponentProperties componentProperties)
public void setInputDialogCloseListener(java.util.function.Consumer<InputDialog.InputDialogCloseEvent> inputDialogCloseListener)
protected boolean isApplicable()
BaseAction
isApplicable
in class FilterAction
public void execute()
Action.ExecutableAction
Action
protected void initDefaultInputDialogCloseListener()
protected void applyDefaultInputDialogOkAction(InputDialog.InputDialogCloseEvent inputDialogCloseEvent)
protected void openInputDialog()
protected void initInputDialogFormFields(Form form)
protected Filter.Configuration copyConfiguration(java.lang.String newId, Filter.Configuration existingConfiguration)
protected void saveNewConfigurationModel(Filter.Configuration configuration)
protected void setCurrentFilterConfiguration(Filter.Configuration configuration)