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.EnabledRuleAction.ActionPerformedEvent, Action.BeforeActionPerformedHandler, Action.HasBeforeActionPerformedHandler, Action.HasOpenType, Action.HasSecurityConstraint, Action.HasTarget, Action.Status, Action.UiPermissionAwarePROP_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, 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, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setIconFromSet, setShortcut, setShortcutCombinationpublic ItemTrackingAction(java.lang.String id)
public ItemTrackingAction(ListComponent target, java.lang.String id)
public void setConstraintOperationType(ConstraintOperationType constraintOperationType)
setConstraintOperationType in interface Action.HasSecurityConstraintpublic ConstraintOperationType getConstraintOperationType()
getConstraintOperationType in interface Action.HasSecurityConstraintpublic void setConstraintCode(java.lang.String constraintCode)
setConstraintCode in interface Action.HasSecurityConstraintpublic java.lang.String getConstraintCode()
getConstraintCode in interface Action.HasSecurityConstraint