Package pyjamas :: Package dnd :: Module DNDHelper :: Class DNDHelper
[hide private]
[frames] | no frames]

Class DNDHelper

source code

object --+
         |
        DNDHelper

DNDHelper is a singleton drag and drop agent.

It acts as dragging/dropping agent for platforms that do not support html5 drag and drop.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
setCurrentTargetElement(self, element) source code
 
getCurrentTargetElement(self) source code
 
getElement(self)
ie6 GlassWidget impl needs this
source code
 
updateDropEffect(self, dataTransfer, event_type)
http://dev.w3.org/html5/spec/dnd.html#dragevent
source code
 
updateDragOperation(self, event)
http://dev.w3.org/html5/spec/dnd.html
source code
 
updateAllowedEffects(self, drag_event) source code
 
registerTarget(self, target)
Rather than searching the entire document for drop target widgets and maybe drop targets within widgets, this implementation holds a list of widgets and searches only within this list for potential drop targets.
source code
 
unregisterTarget(self, target)
I dont know why, but a widget may no longer want to be registered as a drop target.
source code
 
setDragImage(self, element, x, y) source code
 
addFeedbackElement(self, element)
This is called from DataTransfer
source code
 
createDraggingImage(self, element) source code
 
setDragImageLocation(self, x, y)
Move the dragging image around.
source code
 
getAbsoluteLeft(self)
GlassWidget wants this
source code
 
getAbsoluteTop(self)
GlassWidget wants this
source code
 
makeDragEvent(self, event, type, target=None) source code
 
finalize(self, event) source code
 
fireDNDEvent(self, name, target, widget) source code
 
initFeedbackImage(self) source code
 
onMouseMove(self, sender, x, y) source code
 
doDrag(self, event, x, y) source code
 
onMouseDown(self, sender, x, y) source code
 
onMouseUp(self, sender, x, y) source code
 
zapDragImage(self) source code
 
returnDrag(self) source code
 
returnXY(self, start, destination, count) source code
 
onReturningWidget(self, timer) source code
 
moveItemTo(self, widget, x, y) source code
 
onMouseEnter(self, sender) source code
 
onMouseLeave(self, sender) source code
 
onMouseGlassEnter(self, sender) source code
 
onMouseGlassLeave(self, sender) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  currentTargetElement = property(getCurrentTargetElement, setCu...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

Class Variable Details [hide private]

currentTargetElement

Value:
property(getCurrentTargetElement, setCurrentTargetElement)