@StudioAction(target="io.jmix.ui.component.Filter", description="Copies all conditions from design-time configuration to run-time configuration") @ActionType(value="filter_copy") public class FilterCopyAction 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 |
static java.lang.String |
ID |
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 |
---|
FilterCopyAction() |
FilterCopyAction(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
void |
copyConfiguration(Filter.Configuration sourceConfiguration,
Filter.Configuration destConfiguration) |
void |
execute()
Executes the
Action |
protected boolean |
isApplicable()
Callback method which is invoked by the action to determine its enabled state.
|
void |
setFilterComponents(FilterComponents filterComponents) |
void |
setFilterSupport(FilterSupport filterSupport) |
protected void |
setIcons(Icons icons) |
protected void |
setMessages(io.jmix.core.Messages messages) |
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
public FilterCopyAction()
public FilterCopyAction(java.lang.String id)
@Autowired protected void setMessages(io.jmix.core.Messages messages)
@Autowired protected void setIcons(Icons icons)
@Autowired public void setFilterComponents(FilterComponents filterComponents)
@Autowired public void setFilterSupport(FilterSupport filterSupport)
protected boolean isApplicable()
BaseAction
isApplicable
in class FilterAction
public void execute()
Action.ExecutableAction
Action
public void copyConfiguration(Filter.Configuration sourceConfiguration, Filter.Configuration destConfiguration)