Class Index | File Index

Classes


Class YAHOO.util.DDProxy


Extends YAHOO.util.DD.

Defined in: dragdrop.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
YAHOO.util.DDProxy(id, sGroup, config)
A DragDrop implementation that inserts an empty, bordered div into the document that follows the cursor during drag operations.
Field Summary
Field Attributes Field Name and Description
<private>  
Previous proxy element size.
 
By default the frame is positioned exactly where the drag element is, so we use the cursor offset provided by YAHOO.util.DD.
<static>  
YAHOO.util.DDProxy.dragElId
The default drag frame div id
 
By default we resize the drag frame to be the same size as the element we want to drag (this is to get the frame effect).
Fields borrowed from class YAHOO.util.DD:
scroll
Method Summary
Method Attributes Method Name and Description
 
Create the drag frame if needed
 
Initialization for the drag frame element.
<private>  
showFrame(iPageX, iPageY)
Resizes the drag frame to the dimensions of the clicked object, positions it over the object, and finally displays it
Methods borrowed from class YAHOO.util.DD:
alignElWithMouse, autoOffset, autoScroll, b4Drag, b4MouseDown, cachePosition, getTargetCoord, setDelta, setDragElPos
Class Detail
YAHOO.util.DDProxy(id, sGroup, config)
A DragDrop implementation that inserts an empty, bordered div into the document that follows the cursor during drag operations. At the time of the click, the frame div is resized to the dimensions of the linked html element, and moved to the exact location of the linked element. References to the "frame" element refer to the single proxy element that was created to be dragged in place of all DDProxy elements on the page.
Parameters:
{String} id
the id of the linked html element
{String} sGroup
the group of related DragDrop objects
{object} config
an object containing configurable attributes Valid properties for DDProxy in addition to those in DragDrop: resizeFrame, centerFrame, dragElId
Field Detail
<private> _previousSize
Previous proxy element size.

{boolean} centerFrame
By default the frame is positioned exactly where the drag element is, so we use the cursor offset provided by YAHOO.util.DD. Another option that works only if you do not have constraints on the obj is to have the drag frame centered around the cursor. Set centerFrame to true for this effect.

<static> {String} YAHOO.util.DDProxy.dragElId
The default drag frame div id

{boolean} resizeFrame
By default we resize the drag frame to be the same size as the element we want to drag (this is to get the frame effect). We can turn it off if we want a different behavior.
Method Detail
createFrame()
Create the drag frame if needed

initFrame()
Initialization for the drag frame element. Must be called in the constructor of all subclasses

<private> showFrame(iPageX, iPageY)
Resizes the drag frame to the dimensions of the clicked object, positions it over the object, and finally displays it
Parameters:
{int} iPageX
X click position
{int} iPageY
Y click position

Documentation generated by JsDoc Toolkit 2.0.0 on Thu Dec 02 2010 15:18:58 GMT+0100 (CET)