qnx.fuse.ui.events.ContextMenuEvent

ContextMenuEvent

Methods | Constants


Packageqnx.fuse.ui.events
Classpublic class ContextMenuEvent
InheritanceContextMenuEvent Inheritance flash.events.Event

A ContextMenuEvent object contains events for when the context menu opens and closes.

Class information:
BlackBerry 10 Version:   10.0.0
Found in:  qnxui.swc

See also

qnx.fuse.ui.core.UIComponent



Public Methods

 MethodDefined By
  
ContextMenuEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
Creates a ContextMenuEvent instance.
ContextMenuEvent

Public Constants

 ConstantDefined By
  CLOSED : String = context_menu_closed
[static] Dispatched when the context menu is finished animating to its closed state.
ContextMenuEvent
  CLOSING : String = context_menu_closing
[static] Dispatched when the context menu is starting to animate to its closed state.
ContextMenuEvent
  MULTISELECTCANCEL : String = multi_select_cancel
[static] Dispatched when cancel was selected when doing a multi-select in the context menu.
ContextMenuEvent
  OPENED : String = context_menu_opened
[static] Dispatched when the context menu is finished animating to its opened state.
ContextMenuEvent
  OPENING : String = context_menu_opening
[static] Dispatched when the context menu is starting to animate to its opened state.
ContextMenuEvent

Constructor Detail

ContextMenuEvent()


public function ContextMenuEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)

Creates a ContextMenuEvent instance.

This event is dispatched by a UIComponent.

Parameters

type:String — The type of the event.
bubbles:Boolean (default = false) — Determines whether the Event object participates in the bubbling phase of the event flow. Event listeners can access this information through the inherited bubbles property.
cancelable:Boolean (default = false) — Determines whether the Event object can be canceled. Event listeners can access this information through the inherited cancelable property.

See also

qnx.fuse.ui.core.UIComponent

Constant Detail

CLOSED


public static const CLOSED:String = context_menu_closed

Dispatched when the context menu is finished animating to its closed state.

The ContextMenuEvent.CLOSED constant defines the value of the type property of the event object for an context_menu_closed event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
currentTargetThe object that is actively processing the Event object with an event listener.
typeContextMenuEvent.CLOSED

CLOSING


public static const CLOSING:String = context_menu_closing

Dispatched when the context menu is starting to animate to its closed state.

The ContextMenuEvent.CLOSING constant defines the value of the type property of the event object for an context_menu_closing event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelabletrue; call the preventDefault() method to prevent the context menu from closing.
currentTargetThe object that is actively processing the Event object with an event listener.
typeContextMenuEvent.CLOSING

MULTISELECTCANCEL


public static const MULTISELECTCANCEL:String = multi_select_cancel

Dispatched when cancel was selected when doing a multi-select in the context menu.

The ContextMenuEvent.MULTISELECTCANCEL constant defines the value of the type property of the event object for an multi_select_cancel event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse.
currentTargetThe object that is actively processing the Event object with an event listener.
typeContextMenuEvent.MULTISELECTCANCEL

OPENED


public static const OPENED:String = context_menu_opened

Dispatched when the context menu is finished animating to its opened state.

The ContextMenuEvent.OPENED constant defines the value of the type property of the event object for an context_menu_opened event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
currentTargetThe object that is actively processing the Event object with an event listener.
typeContextMenuEvent.CLOSED

OPENING


public static const OPENING:String = context_menu_opening

Dispatched when the context menu is starting to animate to its opened state.

The ContextMenuEvent.OPENING constant defines the value of the type property of the event object for an context_menu_opening event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelabletrue; call the preventDefault() method to prevent the context menu from opening.
currentTargetThe object that is actively processing the Event object with an event listener.
typeContextMenuEvent.OPENING





comments powered by Disqus