public class DeclarativeTrackingAction extends ListAction implements Action.HasTarget, Action.SecuredAction, Action.HasSecurityConstraint
BaseAction.EnabledRule
Action.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 |
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 |
---|
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, withShortcut
addActionPerformedListener, addEnabledRule, isEnabledByRule, isEnabledByUiPermissions, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabled, setEnabledByUiPermissions, setEnabledInternal, setVisible, setVisibleByUiPermissions, setVisibleInternal
addOwner, addPropertyChangeListener, firePropertyChange, 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
getTarget, setTarget
isEnabledByUiPermissions, isVisibleByUiPermissions, setEnabledByUiPermissions, setVisibleByUiPermissions
addOwner, addPropertyChangeListener, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isVisible, refreshState, removeOwner, removePropertyChangeListener, setCaption, setDescription, setEnabled, setIcon, setIconFromSet, setShortcut, setShortcutCombination, setVisible
protected 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)
Action
actionPerform
in interface Action
actionPerform
in class BaseAction
component
- invoking componentpublic java.lang.String getCaption()
getCaption
in interface Action
getCaption
in class AbstractAction
protected boolean isApplicable()
BaseAction
isApplicable
in class BaseAction
protected boolean isPermitted()
BaseAction
isPermitted
in class BaseAction
public ConstraintOperationType getConstraintOperationType()
getConstraintOperationType
in interface Action.HasSecurityConstraint
public void setConstraintOperationType(ConstraintOperationType constraintOperationType)
setConstraintOperationType
in interface Action.HasSecurityConstraint
public java.lang.String getConstraintCode()
getConstraintCode
in interface Action.HasSecurityConstraint
public void setConstraintCode(java.lang.String constraintCode)
setConstraintCode
in interface Action.HasSecurityConstraint