public class DeclarativeTrackingAction extends ListAction implements Action.HasTarget, Action.SecuredAction, Action.HasSecurityConstraint
BaseAction.EnabledRuleAction.ActionPerformedEvent, Action.BeforeActionPerformedHandler, Action.HasBeforeActionPerformedHandler, Action.HasOpenType, Action.HasSecurityConstraint, Action.HasTarget, Action.SecuredAction, Action.Status| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
constraintCode |
protected ConstraintOperationType |
constraintOperationType |
protected Frame |
frame |
protected java.lang.String |
methodName |
protected Security |
security |
targetcaption, description, enabled, eventHub, icon, id, owners, primary, shortcut, visiblePROP_CAPTION, PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_VISIBLE| Constructor and Description |
|---|
DeclarativeTrackingAction(java.lang.String id,
java.lang.String caption,
java.lang.String description,
java.lang.String icon,
java.lang.String enable,
java.lang.String visible,
java.lang.String methodName,
java.lang.String shortcut,
ActionsHolder holder) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerform(Component component)
Invoked by owning component when an action occurs.
|
protected void |
checkActionsHolder(ActionsHolder holder) |
java.lang.String |
getCaption() |
java.lang.String |
getConstraintCode() |
ConstraintOperationType |
getConstraintOperationType() |
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.
|
void |
setConstraintCode(java.lang.String constraintCode) |
void |
setConstraintOperationType(ConstraintOperationType constraintOperationType) |
getTarget, setTarget, withCaption, withDescription, withHandler, withIcon, withPrimary, withShortcutaddActionPerformedListener, addEnabledRule, isEnabledByRule, isEnabledByUiPermissions, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabled, setEnabledByUiPermissions, setEnabledInternal, setVisible, setVisibleByUiPermissions, setVisibleInternaladdOwner, addPropertyChangeListener, firePropertyChange, getDefaultCaption, getDescription, getEventHub, getIcon, getId, getOwner, getOwners, getShortcutCombination, hasSubscriptions, isEnabled, isPrimary, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setIconFromSet, setPrimary, setShortcut, setShortcutCombinationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTarget, setTargetisEnabledByUiPermissions, isVisibleByUiPermissions, setEnabledByUiPermissions, setVisibleByUiPermissionsaddOwner, addPropertyChangeListener, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isVisible, refreshState, removeOwner, removePropertyChangeListener, setCaption, setDescription, setEnabled, setIcon, setIconFromSet, setShortcut, setShortcutCombination, setVisibleprotected Frame frame
protected java.lang.String methodName
protected Security security
protected ConstraintOperationType constraintOperationType
protected java.lang.String constraintCode
public DeclarativeTrackingAction(java.lang.String id,
java.lang.String caption,
java.lang.String description,
java.lang.String icon,
java.lang.String enable,
java.lang.String visible,
java.lang.String methodName,
@Nullable
java.lang.String shortcut,
ActionsHolder holder)
protected void checkActionsHolder(ActionsHolder holder)
public void actionPerform(Component component)
ActionactionPerform in interface ActionactionPerform in class BaseActioncomponent - invoking componentpublic java.lang.String getCaption()
getCaption in interface ActiongetCaption in class AbstractActionprotected boolean isApplicable()
BaseActionisApplicable in class BaseActionprotected boolean isPermitted()
BaseActionisPermitted in class BaseActionpublic ConstraintOperationType getConstraintOperationType()
getConstraintOperationType in interface Action.HasSecurityConstraintpublic void setConstraintOperationType(ConstraintOperationType constraintOperationType)
setConstraintOperationType in interface Action.HasSecurityConstraintpublic java.lang.String getConstraintCode()
getConstraintCode in interface Action.HasSecurityConstraintpublic void setConstraintCode(java.lang.String constraintCode)
setConstraintCode in interface Action.HasSecurityConstraint