qnx.fuse.ui.events.DragEvent

DragEvent

Properties | Methods | Constants


Packageqnx.fuse.ui.events
Classpublic class DragEvent
InheritanceDragEvent Inheritance flash.events.Event

A DragEvent object is dispatched by draggable objects.

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

See also

qnx.fuse.ui.actionbar.ActionBar



Public Properties

 PropertyDefined By
  deltaX : Number
[read-only] Gets the delta of the x property of the object from its previous position.
DragEvent
  deltaY : Number
[read-only] Gets the delta of the y property of the object from its previous position.
DragEvent

Public Methods

 MethodDefined By
  
DragEvent(type:String, deltaX:Number = 0, deltaY:Number = 0)
Creates a DragEvent instance that contains information about Drag events.
DragEvent

Public Constants

 ConstantDefined By
  DRAG_BEGIN : String = dragBegin
[static] Dispatched when dragging begins.
DragEvent
  DRAG_END : String = dragEnd
[static] Dispatched when dragging ends.
DragEvent
  DRAG_MOVE : String = dragMove
[static] Dispatched when dragging occurs.
DragEvent

Property Detail

deltaX


deltaX:Number  [read-only]

Gets the delta of the x property of the object from its previous position.


Implementation

public function get deltaX():Number

deltaY


deltaY:Number  [read-only]

Gets the delta of the y property of the object from its previous position.


Implementation

public function get deltaY():Number

Constructor Detail

DragEvent()


public function DragEvent(type:String, deltaX:Number = 0, deltaY:Number = 0)

Creates a DragEvent instance that contains information about Drag events.

Event objects are passed as parameters to event listeners.

Parameters

type:String — (String) The type of event.
deltaX:Number (default = 0) — The delta of the X axis.
deltaY:Number (default = 0) — The delta of the Y axis.

Constant Detail

DRAG_BEGIN


public static const DRAG_BEGIN:String = dragBegin

Dispatched when dragging begins.

The DragEvent.DRAG_BEGIN constant defines the value of the type property of the event object for an dragBegin 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.
deltaXThe delta of the x property of the control from its previous location.
deltaYThe delta of the y property of the control from its previous location.
typeDragEvent.DRAG_BEGIN

DRAG_END


public static const DRAG_END:String = dragEnd

Dispatched when dragging ends.

The DragEvent.DRAG_END constant defines the value of the type property of the event object for an dragEnd 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.
deltaXThe delta of the x property of the control from its previous location.
deltaYThe delta of the y property of the control from its previous location.
typeDragEvent.DRAG_END

DRAG_MOVE


public static const DRAG_MOVE:String = dragMove

Dispatched when dragging occurs.

The DragEvent.DRAG_MOVE constant defines the value of the type property of the event object for an dragMove 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.
deltaXThe delta of the x property of the control from its previous location.
deltaYThe delta of the y property of the control from its previous location.
typeDragEvent.DRAG_MOVE





comments powered by Disqus