dojo/dnd/Manager (version 1.10)

dojo/Evented

Summary

the manager of DnD operations (usually a singleton)

Usage

var foo = new Manager();
dojo/dnd/Manager

See the dojo/dnd/Manager reference documentation for more information.

Property Summary

Method Summary

  • _setCopyStatus(copy) changes the copy status
  • canDrop(flag) called to notify if the current target can accept items
  • emit(type,event)
  • makeAvatar() makes the avatar; it is separate to be overwritten dynamically, if needed
  • manager() Returns the current DnD manager.
  • on(type,listener)
  • outSource(source) called when a source detected a mouse-out condition
  • overSource(source) called when a source detected a mouse-over condition
  • startDrag(source,nodes,copy) called to initiate the DnD operation
  • stopDrag() stop the DnD in progress
  • updateAvatar() updates the avatar; it is separate to be overwritten dynamically, if needed

Event Summary

  • onKeyDown(e) event processor for onkeydown: watching for CTRL for copy/move status, watching for ESCAPE to cancel the drag
  • onKeyUp(e) event processor for onkeyup, watching for CTRL for copy/move status
  • onMouseMove(e) event processor for onmousemove
  • onMouseUp(e) event processor for onmouseup

Properties

OFFSET_X
Defined by: dojo/dnd/Manager
OFFSET_Y
Defined by: dojo/dnd/Manager

Methods

_setCopyStatus(copy)
Defined by dojo/dnd/Manager

changes the copy status

Parameter Type Description
copy Boolean

the copy status

canDrop(flag)
Defined by dojo/dnd/Manager

called to notify if the current target can accept items

Parameter Type Description
flag undefined
emit(type,event)
Defined by dojo/Evented
Parameter Type Description
type undefined
event undefined
Returns:undefined
makeAvatar()
Defined by dojo/dnd/Manager

makes the avatar; it is separate to be overwritten dynamically, if needed

Returns:instance
manager()
Defined by dojo/dnd/Manager

Returns the current DnD manager. Creates one if it is not created yet.

Returns:instance
on(type,listener)
Defined by dojo/Evented
Parameter Type Description
type undefined
listener undefined
Returns:undefined
outSource(source)
Defined by dojo/dnd/Manager

called when a source detected a mouse-out condition

Parameter Type Description
source Object

the reporter

overSource(source)
Defined by dojo/dnd/Manager

called when a source detected a mouse-over condition

Parameter Type Description
source Object

the reporter

startDrag(source,nodes,copy)
Defined by dojo/dnd/Manager

called to initiate the DnD operation

Parameter Type Description
source Object

the source which provides items

nodes Array

the list of transferred items

copy Boolean

copy items, if true, move items otherwise

stopDrag()
Defined by dojo/dnd/Manager

stop the DnD in progress

updateAvatar()
Defined by dojo/dnd/Manager

updates the avatar; it is separate to be overwritten dynamically, if needed

Events

onKeyDown(e)
Defined by: dojo/dnd/Manager

event processor for onkeydown: watching for CTRL for copy/move status, watching for ESCAPE to cancel the drag

Parameter Type Description
e Event

keyboard event

onKeyUp(e)
Defined by: dojo/dnd/Manager

event processor for onkeyup, watching for CTRL for copy/move status

Parameter Type Description
e Event

keyboard event

onMouseMove(e)
Defined by: dojo/dnd/Manager

event processor for onmousemove

Parameter Type Description
e Event

mouse event

onMouseUp(e)
Defined by: dojo/dnd/Manager

event processor for onmouseup

Parameter Type Description
e Event

mouse event

Error in the documentation? Can’t find what you are looking for? Let us know!