| Package | com.vmware.actionsfw.events |
| Class | public class ActionsMenuRequestEvent |
| Inheritance | ActionsMenuRequestEvent flash.events.Event |
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 = nullThe context against which to evaluate and invoke actions.
Must not be null.
| stageX | property |
public var stageX:NumberThe x coordinate for the origin of the menu.
| stageY | property |
public var stageY:NumberThe y coordinate for the origin of the menu.
| titleIcon | property |
public var titleIcon:ClassSet this property to show a title containing the given icon.
The default value is null.
| titleLabel | property |
public var titleLabel:StringSet 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():EventReturns
Event |
| REQUEST | Constant |
public static const REQUEST:String = afActionsMenuRequestvar 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);