Loading...
Object AMLDragEvent
The AMLDragEvent interface provides specific contextual information associated with Drag Events.
Extends
AMLUIEvent
Members Table
The following table lists the members exposed by the AMLDragEvent object.
Show inherited members (marked with *)
Show:
Attribute
Readonly
Description
Property
Type
Readonly
Description
$pseudoTarget *
HTMLElement
false
Keeps the reference to pseudo element where event originated.
bubbles *
Boolean
true
Used to indicate whether or not an event is a bubbling event.
cancelable *
Boolean
true
Used to indicate whether or not an event can have its default action prevented.
currentTarget *
AMLNode
true
Used to indicate the EventTarget whose EventListeners are currently being processed. This is particularly useful during capturing and bubbling.
dataTransfer
AMLDataTransfer
false
Keeps a reference to AMLDataTransfer object, associated with this object.
defaultPrevented *
Boolean
true
Used to indicate whether preventDefault () has been called for this event.
detail *
Number
false
Specifies some detail information about the Event, depending on the type of event.
eventPhase *
Number
true
Used to indicate which phase of event flow is currently being evaluated.
namespaceURI *
String
true
The namespace URI associated with this event at initialization time, or null if it is unspecified.
target *
AMLNode
true
Used to indicate the EventTarget to which the event was originally dispatched.
timeStamp *
TimeStamp
true
Used to specify the time (in milliseconds relative to the epoch) at which the event was created.
type *
String
true
The name of the event (case-insensitive). The name must be an XML name.
view *
Object
false
The view attribute identifies the AbstractView from which the event was generated.
Method
Returns
Description
initDragEvent
Void
Initializes attributes of a AMLDragEvent object.
Sytaxis:
object.initDragEvent( sEventType , bCanBubble , bCancelable , oView , nDetail , oDataTransfer )
Arguments:
Name
Type
O/R
Description
sEventType
String
Required
Type of the event.
bCanBubble
Boolean
Required
Specifies if event should have bubbling phase.
bCancelable
Boolean
Required
Specifies whether or not the event's default action can be prevented.
oView
Object
Required
Specifies view. This value may be null.
nDetail
Number
Required
Specifies detail.
oDataTransfer
AMLDataTransfer
Required
References DataTransfer object associated with the event.
initEvent *
Void
The initEvent method is used to initialize the value of an Event created through the DocumentEvent interface.
Sytaxis:
object.initEvent( sEventType , bCanBubble , bCancelable )
Arguments:
Name
Type
O/R
Description
sEventType
String
Required
Specifies the event type.
bCanBubble
Boolean
Required
Specifies whether or not the event can bubble.
bCancelable
Boolean
Required
Specifies whether or not the event's default action can be prevented.
initUIEvent *
Void
The initUIEvent method is used to initialize the value of a UIEvent object.
Sytaxis:
object.initUIEvent( sEventType , bCanBubble , bCancelable , oView , nDetail )
Arguments:
Name
Type
O/R
Description
sEventType
String
Required
Specifies the event type.
bCanBubble
Boolean
Required
Specifies whether or not the event can bubble.
bCancelable
Boolean
Required
Specifies whether or not the event's default action can be prevented.
oView
Object
Required
Specifies view. This value may be null.
nDetail
Number
Required
Specifies detail.
preventDefault *
Void
If an event is cancelable, the preventDefault method is used to signify that the event is to be canceled, meaning any default action normally taken by the implementation as a result of the event will not occur.
Sytaxis:
object.preventDefault( )
stopImmediatePropagation *
Void
Prevents other event listeners from being triggered and, unlike stopPropagation () its effect is immediate
Sytaxis:
object.stopImmediatePropagation( )
stopPropagation *
Void
The stopPropagation method is used prevent further propagation of an event during event flow. The event will complete dispatch to all listeners on the current EventTarget before event flow stops. This method may be used during any stage of event flow.
Sytaxis:
object.stopPropagation( )
Event
B
C
Interface
Description
Constant
Value
Description
Remarks
Events of that type: