Package: | Roo.dd |
Defined In: | Roo/dd/DragDropMgr.js. |
Class: | DragDropMgr |
Method | Defined By | |
---|---|---|
Roo.dd.DragDropMgr.getBestMatch
(DragDrop[] dds)
:
DragDrop
Helper function for getting the best match from the list of drag
and drop objects returned by the drag and drop events when we are in INTERSECT mode.
Helper function for getting the best match from the list of drag
and drop objects returned by the drag and drop events when we are in INTERSECT mode. It returns either the first object that the cursor is over, or the object that has the greatest overlap with the dragged element.
|
Roo.dd.DragDropMgr | |
Roo.dd.DragDropMgr | ||
Roo.dd.DragDropMgr.getDDById
(String id)
:
DragDrop
Returns the DragDrop instance for a given id
Returns the DragDrop instance for a given id
|
Roo.dd.DragDropMgr | |
Roo.dd.DragDropMgr | ||
Roo.dd.DragDropMgr.getLocation
(DragDrop oDD)
:
Roo.lib.Region
Returns a Region object containing the drag and drop element's position
and size, including the padding configured for it
Returns a Region object containing the drag and drop element's position
and size, including the padding configured for it
|
Roo.dd.DragDropMgr | |
Roo.dd.DragDropMgr.getPosX
(el)
:
int
Returns the X position of an html element
Returns the X position of an html element
|
Roo.dd.DragDropMgr | |
Roo.dd.DragDropMgr.getPosY
(el)
:
int
Returns the Y position of an html element
Returns the Y position of an html element
|
Roo.dd.DragDropMgr | |
Roo.dd.DragDropMgr.getRelated
(DragDrop p_oDD, boolean bTargetsOnly)
:
DragDrop[]
Returns the drag and drop instances that are in all groups the
passed in instance belongs to.
Returns the drag and drop instances that are in all groups the
passed in instance belongs to.
|
Roo.dd.DragDropMgr | |
Roo.dd.DragDropMgr.getScrollLeft
()
:
int
Gets the scrollLeft
Gets the scrollLeft
|
Roo.dd.DragDropMgr | |
Roo.dd.DragDropMgr.getScrollTop
()
:
int
Gets the scrollTop
Gets the scrollTop
|
Roo.dd.DragDropMgr | |
Roo.dd.DragDropMgr.getStyle
(HTMLElement el, string styleProp)
:
string
Returns the specified element style property
Returns the specified element style property
|
Roo.dd.DragDropMgr | |
Roo.dd.DragDropMgr.handleWasClicked
(node)
Recursively searches the immediate parent and all child nodes for
the handle element in order to determine wheter or not it was clicked.
Recursively searches the immediate parent and all child nodes for
the handle element in order to determine wheter or not it was clicked.
|
Roo.dd.DragDropMgr | |
Roo.dd.DragDropMgr.isDragDrop
(String id)
:
boolean
Utility function to determine if a given element has been
registered as a drag drop item.
Utility function to determine if a given element has been
registered as a drag drop item.
|
Roo.dd.DragDropMgr | |
Roo.dd.DragDropMgr.isHandle
(String id)
:
boolean
Utility function to determine if a given element has been
registered as a drag drop handle for the given Drag Drop object.
Utility function to determine if a given element has been
registered as a drag drop handle for the given Drag Drop object.
|
Roo.dd.DragDropMgr | |
Roo.dd.DragDropMgr.isLegalTarget
(DragDrop the, DragDrop the)
:
boolean
Returns true if the specified dd target is a legal target for
the specifice drag obj
Returns true if the specified dd target is a legal target for
the specifice drag obj
|
Roo.dd.DragDropMgr | |
Roo.dd.DragDropMgr.isLocked
()
:
boolean
Is drag and drop locked?
Is drag and drop locked?
|
Roo.dd.DragDropMgr | |
Roo.dd.DragDropMgr.isTypeOfDD
(Object the)
:
boolean
My goal is to be able to transparently determine if an object is
typeof DragDrop, and the exact subclass of DragDrop.
My goal is to be able to transparently determine if an object is
typeof DragDrop, and the exact subclass of DragDrop. typeof returns "object", oDD.constructor.toString() always returns "DragDrop" and not the name of the subclass. So for now it just evaluates a well-known variable in DragDrop.
|
Roo.dd.DragDropMgr | |
Roo.dd.DragDropMgr.lock
()
Lock all drag and drop functionality
Lock all drag and drop functionality
|
Roo.dd.DragDropMgr | |
Sets the x/y position of an element to the location of the
target element.
Sets the x/y position of an element to the location of the
target element.
|
Roo.dd.DragDropMgr | |
Roo.dd.DragDropMgr.numericSort
()
Numeric array sort function
Numeric array sort function
|
Roo.dd.DragDropMgr | |
Roo.dd.DragDropMgr.refreshCache
(Object groups)
Refreshes the cache of the top-left and bottom-right points of the
drag and drop objects in the specified group(s).
Refreshes the cache of the top-left and bottom-right points of the
drag and drop objects in the specified group(s). This is in the format that is stored in the drag and drop instance, so typical usage is:
Alternatively:
|
Roo.dd.DragDropMgr | |
Roo.dd.DragDropMgr.regDragDrop
(DragDrop oDD, String sGroup)
Each DragDrop instance must be registered with the DragDropMgr.
Each DragDrop instance must be registered with the DragDropMgr.
This is executed in DragDrop.init()
|
Roo.dd.DragDropMgr | |
Roo.dd.DragDropMgr | ||
Roo.dd.DragDropMgr.startDrag
(x, y)
Fired when either the drag pixel threshol or the mousedown hold
time threshold has been met.
Fired when either the drag pixel threshol or the mousedown hold
time threshold has been met.
|
Roo.dd.DragDropMgr | |
Roo.dd.DragDropMgr.stopEvent
(Event e)
Utility to stop event propagation and event default, if these
features are turned on.
Utility to stop event propagation and event default, if these
features are turned on.
|
Roo.dd.DragDropMgr | |
Roo.dd.DragDropMgr.swapNode
(n1, n2)
Swap two nodes.
Swap two nodes. In IE, we use the native method, for others we
emulate the IE behavior
|
Roo.dd.DragDropMgr | |
Roo.dd.DragDropMgr.unlock
()
Unlock all drag and drop functionality
Unlock all drag and drop functionality
|
Roo.dd.DragDropMgr | |
Roo.dd.DragDropMgr.verifyEl
(HTMLElement el)
:
boolean
This checks to make sure an element exists and is in the DOM.
This checks to make sure an element exists and is in the DOM. The
main purpose is to handle cases where innerHTML is used to remove drag and drop objects from the DOM. IE provides an 'unspecified error' when trying to access the offsetParent of such an element
|
Roo.dd.DragDropMgr |