Class blade.core.dragdrop.Draggable

Object
   |
   +--blade.base.Messenger
         |
         +--blade.core.dragdrop.Draggable

class blade.core.dragdrop.Draggable
extends blade.base.Messenger

A draggable object. Used to control dragging and dropping of a JS DOM object.

Defined in dragdrop.js


Constructor Summary
blade.core.dragdrop.Draggable (elt, pickup, drop)
           
 
Method Summary
 function refresh()
           Updates the target element's coordinates on the screen
 function setClipRegion(clipRegion)
           Bounds the draggable to a rectangular region
 function setContainer(container)
           Binds the draggable to a container
 function setPosition(position)
           Sets a new position for the target element
 
Methods inherited from class blade.base.Messenger
send, receive, addListener, removeListener
 

Constructor Detail

blade.core.dragdrop.Draggable

function blade.core.dragdrop.Draggable(elt, pickup, drop)
Method Detail

refresh

function refresh()

setClipRegion

function setClipRegion(clipRegion)

setContainer

function setContainer(container)

setPosition

function setPosition(position)