public class ItemTrackingAction extends BaseAction implements Action.HasSecurityConstraint
ListComponent
.
Action action = new ItemTrackingAction("moveToTrash")
.withCaption("Move to trash")
.withIcon("icons/trash.png")
.withHandler(event -> {
// action logic here
});
docsTable.addAction(action);
BaseAction.EnabledRule
Action.ActionPerformedEvent, Action.BeforeActionPerformedHandler, Action.HasBeforeActionPerformedHandler, Action.HasOpenType, Action.HasSecurityConstraint, Action.HasTarget, Action.Status, Action.UiPermissionAware
PROP_CAPTION, PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_VISIBLE
Constructor and Description |
---|
ItemTrackingAction(ListComponent target,
java.lang.String id) |
ItemTrackingAction(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getConstraintCode() |
ConstraintOperationType |
getConstraintOperationType() |
void |
setConstraintCode(java.lang.String constraintCode) |
void |
setConstraintOperationType(ConstraintOperationType constraintOperationType) |
actionPerform, addEnabledRule, getTarget, isEnabledByUiPermissions, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabled, setEnabledByUiPermissions, setTarget, setVisible, setVisibleByUiPermissions, withCaption, withDescription, withHandler, withIcon, withPrimary, withShortcut
addOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isPrimary, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setIconFromSet, setPrimary, setShortcut, setShortcutCombination
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setIconFromSet, setShortcut, setShortcutCombination
public ItemTrackingAction(java.lang.String id)
public ItemTrackingAction(ListComponent target, java.lang.String id)
public void setConstraintOperationType(ConstraintOperationType constraintOperationType)
setConstraintOperationType
in interface Action.HasSecurityConstraint
public ConstraintOperationType getConstraintOperationType()
getConstraintOperationType
in interface Action.HasSecurityConstraint
public void setConstraintCode(java.lang.String constraintCode)
setConstraintCode
in interface Action.HasSecurityConstraint
public java.lang.String getConstraintCode()
getConstraintCode
in interface Action.HasSecurityConstraint