InvokableAction
Properties | Methods | Events
Package | qnx.fuse.ui.core |
Class | public final class InvokableAction |
Inheritance | InvokableAction ![]() ![]() |
Represents an invokable action on the system. If chosen from a component that accepts actions, the corresponding invocation will be performed.
This class should never be instantiated directly, instead create an InvokeActionItem
and listen for its Event.COMPLETE event.
Then call its getInvokableActions()
method to retrive a list of avaliable InvokableActions
for that InvokeActionItem
.
Class information: |
---|
BlackBerry 10 Version: 10.0.0 |
Public Properties
Property | Defined By | ||
---|---|---|---|
![]() | data : Object
The data associated with the action. | ActionBase | |
![]() | enabled : Boolean
Enables or disables the Action. | ActionBase | |
![]() | icon : Object
An optional icon that is shown next to the label text. | ActionBase | |
invokeAction : InvokeActionItem [read-only]
A reference to the InvokeActionItem that this InvokableAction belongs to. | InvokableAction | ||
![]() | keyboardShortcut : Array
An array of keys that can be pressed to trigger this action. | ActionBase | |
![]() | label : String
The text that appears when this action is displayed in a UI component. | ActionBase |
Public Methods
Method | Defined By | ||
---|---|---|---|
InvokableAction(label:String, icon:Object = null, data:Object = null, invokeAction:InvokeActionItem = null)
This class should not be instantiated directly, nstead create an InvokeActionItem and listen for its Event.COMPLETE event. | InvokableAction |
Property Detail
invokeAction
invokeAction:InvokeActionItem [read-only] |
A reference to the InvokeActionItem
that this InvokableAction
belongs to.
Implementation
public function get invokeAction():InvokeActionItem |
Constructor Detail
InvokableAction()
public function InvokableAction(label:String, icon:Object = null, data:Object = null, invokeAction:InvokeActionItem = null) |
This class should not be instantiated directly, nstead create an InvokeActionItem
and listen for its Event.COMPLETE event.
Then call its getInvokableActions()
method to retrive a list of avaliable InvokableActions
for that InvokeActionItem
.
Parameters
label:String |
icon:Object (default = null )
|
data:Object (default = null )
|
invokeAction:InvokeActionItem (default = null )
|