@StudioAction(category="List Actions", description="Adds the selected entity to a record set to be displayed in the folders pane of the main screen") @ActionType(value="addToSet") public class AddToSetAction extends SecuredListAction
BaseAction.EnabledRule
Action.ActionPerformedEvent, Action.AdjustWhenScreenReadOnly, Action.BeforeActionPerformedHandler, Action.DisabledWhenScreenReadOnly, Action.ExecutableAction, Action.HasBeforeActionPerformedHandler, Action.HasOpenType, Action.HasPrimaryState, Action.HasSecurityConstraint, Action.HasTarget, Action.SecuredAction, Action.Status
Modifier and Type | Field and Description |
---|---|
protected Filter |
filter |
protected FilterHelper |
filterHelper |
static java.lang.String |
ID |
constraintCode, constraintOperationType, security
target
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 |
---|
AddToSetAction() |
AddToSetAction(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerform(Component component)
Invoked by owning component to execute the action.
|
Filter |
getFilter() |
protected boolean |
isApplicable()
Callback method which is invoked by the action to determine its enabled state.
|
protected boolean |
isPermitted()
Callback method which is invoked by the action to determine its enabled state.
|
protected boolean |
searchFilter() |
void |
setFilter(Filter filter) |
void |
setFilterHelper(FilterHelper filterHelper) |
void |
setIcons(Icons icons) |
void |
setMessages(Messages messages) |
getConstraintCode, getConstraintOperationType, setConstraintCode, setConstraintOperationType, setSecurity
getTarget, setTarget, withCaption, withDescription, withHandler, withIcon, withPrimary, withShortcut
addActionPerformedListener, addEnabledRule, isEnabledByRule, isEnabledByUiPermissions, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabled, setEnabledByUiPermissions, setEnabledInternal, setVisible, setVisibleByUiPermissions, setVisibleInternal
addOwner, addPropertyChangeListener, firePropertyChange, getCaption, getDefaultCaption, getDescription, getEventHub, getIcon, getId, getOwner, getOwners, getShortcutCombination, hasSubscriptions, isEnabled, isPrimary, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setIconFromSet, 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, setIconFromSet, setShortcut, setShortcutCombination, setVisible
public static final java.lang.String ID
protected Filter filter
protected FilterHelper filterHelper
public AddToSetAction()
public AddToSetAction(java.lang.String id)
@Inject public void setFilterHelper(FilterHelper filterHelper)
@Inject public void setIcons(Icons icons)
@Inject public void setMessages(Messages messages)
public void actionPerform(Component component)
Action
actionPerform
in interface Action
actionPerform
in class BaseAction
component
- invoking componentpublic void setFilter(Filter filter)
public Filter getFilter()
protected boolean isApplicable()
BaseAction
isApplicable
in class SecuredListAction
protected boolean searchFilter()
protected boolean isPermitted()
BaseAction
isPermitted
in class SecuredListAction