Package | com.vmware.actionsfw.events |
Class | public class ActionsMenuRequestEvent |
Inheritance | ActionsMenuRequestEvent ![]() |
ActionContext
be displayed.
The action framework will display a menu that includes all actions relevant to the specified context. Unavailable actions are included as well as available actions (unavailable actions are disabled).
For multi-target context's, the availability calculations of the actions are deferred until an action is actually selected by the user. At that time, the user will typically receive a confirmation message detailing which of the selected objects that action is available on. Until then, all actions in the menu are presented as available.
See also
Property | Defined By | ||
---|---|---|---|
context : ActionContext = null
The context against which to evaluate and invoke actions. | ActionsMenuRequestEvent | ||
stageX : Number
The x coordinate for the origin of the menu. | ActionsMenuRequestEvent | ||
stageY : Number
The y coordinate for the origin of the menu. | ActionsMenuRequestEvent | ||
titleIcon : Class
Set this property to show a title containing the given icon. | ActionsMenuRequestEvent | ||
titleLabel : String
Set this property to show a title containing the given label. | ActionsMenuRequestEvent |
Method | Defined By | ||
---|---|---|---|
ActionsMenuRequestEvent(stageX:Number, stageY:Number, context:ActionContext) | ActionsMenuRequestEvent | ||
clone():Event [override]
| ActionsMenuRequestEvent |
Constant | Defined By | ||
---|---|---|---|
REQUEST : String = afActionsMenuRequest [static] | ActionsMenuRequestEvent |
context | property |
public var context:ActionContext = null
The context against which to evaluate and invoke actions.
Must not be null.
stageX | property |
public var stageX:Number
The x coordinate for the origin of the menu.
stageY | property |
public var stageY:Number
The y coordinate for the origin of the menu.
titleIcon | property |
public var titleIcon:Class
Set this property to show a title containing the given icon.
The default value is null
.
titleLabel | property |
public var titleLabel:String
Set this property to show a title containing the given label.
The default value is null
.
ActionsMenuRequestEvent | () | Constructor |
public function ActionsMenuRequestEvent(stageX:Number, stageY:Number, context:ActionContext)
Parameters
stageX:Number — The x-coordinate for the origin of the menu.
| |
stageY:Number — The y-coordinate for the origin of the menu.
| |
context:ActionContext — The context against which to evaluate and invoke actions. Must not be null.
|
clone | () | method |
override public function clone():Event
Returns
Event |
REQUEST | Constant |
public static const REQUEST:String = afActionsMenuRequest
var contextObject:IResourceReference = someData.resRef; var actionContext:ActionContext = new ActionContext([contextObject]); var menuRequest:ActionsMenuRequest = new ActionsMenuRequest(10, 10, actionContext); menuRequest.titleLabel = "Actions for my object"; menuRequest.titleIcon = myObjectIcon; dispatchEvent(menuRequest);