@Component(value="cuba_ExcludeAction") @Scope(value="prototype") public class ExcludeAction extends RemoveAction
RemoveAction variant that excludes instances from the list, but doesn't delete them from DB.
In order to provide your own implementation globally, create a subclass and register it in web-spring.xml,
for example:
<bean id="cuba_ExcludeAction" class="com.company.sample.gui.MyExcludeAction" scope="prototype"/>Also, use
create() static methods instead of constructors when creating the action programmatically.RemoveAction.AfterRemoveHandlerBaseAction.EnabledRuleAction.ActionPerformedEvent, Action.BeforeActionPerformedHandler, Action.HasBeforeActionPerformedHandler, Action.HasOpenType, Action.HasSecurityConstraint, Action.HasTarget, Action.Status, Action.UiPermissionAware| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACTION_ID |
PROP_CAPTION, PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_VISIBLE| Constructor and Description |
|---|
ExcludeAction(ListComponent target)
The simplest constructor.
|
ExcludeAction(ListComponent target,
boolean autocommit,
boolean confirm)
Constructor that allows to specify autocommit and confirm value.
|
ExcludeAction(ListComponent target,
boolean autocommit,
boolean confirm,
java.lang.String id)
Constructor that allows to specify all parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerform(Component component)
This method is invoked by the action owner component.
|
static ExcludeAction |
create(ListComponent target)
Creates an action with default id.
|
static ExcludeAction |
create(ListComponent target,
boolean autocommit,
boolean confirm)
Creates an action with default id.
|
static ExcludeAction |
create(ListComponent target,
boolean autocommit,
boolean confirm,
java.lang.String id)
Creates an action with the given id.
|
create, create, getBeforeActionPerformedHandler, getConfirmationMessage, getConfirmationTitle, isAutocommit, isConfirm, setAfterRemoveHandler, setAutocommit, setBeforeActionPerformedHandler, setConfirm, setConfirmationMessage, setConfirmationTitlegetConstraintCode, getConstraintOperationType, setConstraintCode, setConstraintOperationTypeaddEnabledRule, getTarget, isEnabledByUiPermissions, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabled, setEnabledByUiPermissions, setTarget, setVisible, setVisibleByUiPermissions, withCaption, withDescription, withHandler, withIcon, withPrimary, withShortcutaddOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isPrimary, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setIconFromSet, setPrimary, setShortcut, setShortcutCombinationequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isVisible, refreshState, removeOwner, removePropertyChangeListener, setCaption, setDescription, setEnabled, setIcon, setIconFromSet, setShortcut, setShortcutCombination, setVisiblepublic ExcludeAction(ListComponent target)
target - component containing this actionpublic ExcludeAction(ListComponent target, boolean autocommit, boolean confirm)
target - component containing this actionautocommit - whether to commit datasource immediatelyconfirm - whether to show the confirmation dialog to userpublic ExcludeAction(ListComponent target, boolean autocommit, boolean confirm, java.lang.String id)
target - component containing this actionautocommit - whether to commit datasource immediatelyconfirm - whether to show the confirmation dialog to userid - action's namepublic static ExcludeAction create(ListComponent target)
target - component containing this actionpublic static ExcludeAction create(ListComponent target, boolean autocommit, boolean confirm)
target - component containing this actionautocommit - whether to commit datasource immediatelyconfirm - whether to show the confirmation dialog to userpublic static ExcludeAction create(ListComponent target, boolean autocommit, boolean confirm, java.lang.String id)
target - component containing this actionautocommit - whether to commit datasource immediatelyconfirm - whether to show the confirmation dialog to userid - action's namepublic void actionPerform(Component component)
RemoveActionactionPerform in interface ActionactionPerform in class RemoveActioncomponent - component invoking the action