Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
joo.classLoader.prepare("package ext.dd",/* {
import ext.IEventObject;
import ext.dd.dragdropmgr.ElementWrapper;
import ext.lib.Point;
import ext.lib.Region;

import js.HTMLElement;*/

/**
 * DragDropMgr is a singleton that tracks the element interaction for all DragDrop items in the window. Generally, you will not call this class directly, but it does have helper methods that could be useful in your DragDrop implementations.
 *
 * <p>Copyright &#169; 2011 Sencha Inc.</p>
 *

 * <p>This interface defines the type of the singleton DragDropMgr.</p>
 * @see ext.dd.#DragDropMgr ext.dd.DragDropMgr
 * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr Sencha Docs Ext JS 3.4
 */
"public interface IDragDropMgr",1,function($$private){return[ /*

  /**
   In intersect mode, drag and drop interaction is defined by the overlap of two or more drag and drop objects.
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-property-INTERSECT Sencha Docs Ext JS 3.4
   * /
  function INTERSECT():int*/,/*

  /**
   In point mode, drag and drop interaction is defined by the location of the cursor during the drag/drop
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-property-POINT Sencha Docs Ext JS 3.4
   * /
  function POINT():int*/,/*

  /**
   The number of pixels that the mouse needs to move after the mousedown before the drag is initiated. Default=3;
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-property-clickPixelThresh Sencha Docs Ext JS 3.4
   * /
  function clickPixelThresh():int*/,/*

  /**
   * @private
   * /
  function clickPixelThresh(value:int):void*/,/*

  /**
   The number of milliseconds after the mousedown event to initiate the drag if we don't get a mouseup event. Default=350
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-property-clickTimeThresh Sencha Docs Ext JS 3.4
   * /
  function clickTimeThresh():int*/,/*

  /**
   * @private
   * /
  function clickTimeThresh(value:int):void*/,/*

  /**
   Timeout used for the click time threshold
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-property-clickTimeout Sencha Docs Ext JS 3.4
   * /
  function clickTimeout():Object*/,/*

  /**
   * @private
   * /
  function clickTimeout(value:Object):void*/,/*

  /**
   the X distance between the cursor and the object being dragged
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-property-deltaX Sencha Docs Ext JS 3.4
   * /
  function deltaX():int*/,/*

  /**
   * @private
   * /
  function deltaX(value:int):void*/,/*

  /**
   the Y distance between the cursor and the object being dragged
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-property-deltaY Sencha Docs Ext JS 3.4
   * /
  function deltaY():int*/,/*

  /**
   * @private
   * /
  function deltaY(value:int):void*/,/*

  /**
   the DragDrop object that is currently being dragged
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-property-dragCurrent Sencha Docs Ext JS 3.4
   * /
  function dragCurrent():DragDrop*/,/*

  /**
   * @private
   * /
  function dragCurrent(value:DragDrop):void*/,/*

  /**
   the DragDrop object(s) that are being hovered over
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-property-dragOvers Sencha Docs Ext JS 3.4
   * /
  function dragOvers():Array*/,/*

  /**
   * @private
   * /
  function dragOvers(value:Array):void*/,/*

  /**
   Flag that indicates that either the drag pixel threshold or the mousdown time threshold has been met
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-property-dragThreshMet Sencha Docs Ext JS 3.4
   * /
  function dragThreshMet():Boolean*/,/*

  /**
   * @private
   * /
  function dragThreshMet(value:Boolean):void*/,/*

  /**
   A cache of DOM elements
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-property-elementCache Sencha Docs Ext JS 3.4
   * /
  function elementCache():Object*/,/*

  /**
   * @private
   * /
  function elementCache(value:Object):void*/,/*

  /**
   Array of element ids defined as drag handles. Used to determine if the element that generated the mousedown event is actually the handle and not the html element itself.
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-property-handleIds Sencha Docs Ext JS 3.4
   * /
  function handleIds():Array*/,/*

  /**
   * @private
   * /
  function handleIds(value:Array):void*/,/*

  /**
   Two dimensional Array of registered DragDrop objects. The first dimension is the DragDrop item group, the second the DragDrop object.
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-property-ids Sencha Docs Ext JS 3.4
   * /
  function ids():Array*/,/*

  /**
   * @private
   * /
  function ids(value:Array):void*/,/*

  /**
   Internal flag that is set to true when drag and drop has been intialized
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-property-initialized Sencha Docs Ext JS 3.4
   * /
  function initialized():Object*/,/*

  /**
   * @private
   * /
  function initialized(value:Object):void*/,/*

  /**
   Location cache that is set for all drag drop objects when a drag is initiated, cleared when the drag is finished.
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-property-locationCache Sencha Docs Ext JS 3.4
   * /
  function locationCache():Object*/,/*

  /**
   * @private
   * /
  function locationCache(value:Object):void*/,/*

  /**
   All drag and drop can be disabled.
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-property-locked Sencha Docs Ext JS 3.4
   * /
  function locked():Object*/,/*

  /**
   * @private
   * /
  function locked(value:Object):void*/,/*

  /**
   The current drag and drop mode. Default: POINT
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-property-mode Sencha Docs Ext JS 3.4
   * /
  function mode():int*/,/*

  /**
   * @private
   * /
  function mode(value:int):void*/,/*

  /**
   Flag to determine if we should prevent the default behavior of the events we define. By default this is true, but this can be set to false if you need the default behavior (not recommended)
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-property-preventDefault Sencha Docs Ext JS 3.4
   * /
  function preventDefault():Boolean*/,/*

  /**
   * @private
   * /
  function preventDefault(value:Boolean):void*/,/*

  /**
   The X position of the mousedown event stored for later use when a drag threshold is met.
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-property-startX Sencha Docs Ext JS 3.4
   * /
  function startX():int*/,/*

  /**
   * @private
   * /
  function startX(value:int):void*/,/*

  /**
   The Y position of the mousedown event stored for later use when a drag threshold is met.
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-property-startY Sencha Docs Ext JS 3.4
   * /
  function startY():int*/,/*

  /**
   * @private
   * /
  function startY(value:int):void*/,/*

  /**
   Flag to determine if we should stop the propagation of the events we generate. This is true by default but you may want to set it to false if the html element contains other features that require the mouse click.
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-property-stopPropagation Sencha Docs Ext JS 3.4
   * /
  function stopPropagation():Boolean*/,/*

  /**
   * @private
   * /
  function stopPropagation(value:Boolean):void*/,/*

  /**
   Set useCache to false if you want to force object the lookup of each drag and drop linked element constantly during a drag.
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-property-useCache Sencha Docs Ext JS 3.4
   * /
  function useCache():Boolean*/,/*

  /**
   * @private
   * /
  function useCache(value:Boolean):void*/,/*

  /**
   * Runs method on all drag and drop objects
   *
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-_execOnAll Sencha Docs Ext JS 3.4
   * /
  function _execOnAll():void*/,/*

  /**
   * Drag and drop initialization. Sets up the global event handlers
   *
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-_onLoad Sencha Docs Ext JS 3.4
   * /
  function _onLoad():void*/,/*

  /**
   * Reset constraints on all drag and drop objs
   *
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-_onResize Sencha Docs Ext JS 3.4
   * /
  function _onResize():void*/,/*

  /**
   * unload event handler
   *
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-_onUnload Sencha Docs Ext JS 3.4
   * /
  function _onUnload():void*/,/*

  /**
   * Unregisters a drag and drop item. This is executed in DragDrop.unreg, use that method instead of calling this directly.
   *
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-_remove Sencha Docs Ext JS 3.4
   * /
  function _remove():void*/,/*

  /**
   * Iterates over all of the DragDrop elements to find ones we are hovering over or dropping on
   *
   * @param e the event
   * @param isDrop is this a drop op or a mouseover op?
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-fireEvents Sencha Docs Ext JS 3.4
   * /
  function fireEvents(e:IEventObject, isDrop:Boolean):void*/,/*

  /**
   * 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.
   *
   * @param dds The array of drag and drop objects targeted
   * @return The best single match
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-getBestMatch Sencha Docs Ext JS 3.4
   * /
  function getBestMatch(dds:Array):DragDrop*/,/*

  /**
   * Returns the style property for the DOM element (i.e., document.getElById(id).style)
   *
   * @param id the id of the element to get
   * @return The style property of the element
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-getCss Sencha Docs Ext JS 3.4
   * /
  function getCss(id:String):Object*/,/*

  /**
   * Returns the DragDrop instance for a given id
   *
   * @param id the id of the DragDrop object
   * @return the drag drop object, null if it is not found
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-getDDById Sencha Docs Ext JS 3.4
   * /
  function getDDById(id:String):DragDrop*/,/*

  /**
   * Get the wrapper for the DOM element specified
   *
   * @param id the id of the element to get
   * @return the wrapped element
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-getElWrapper Sencha Docs Ext JS 3.4
   * /
  function getElWrapper(id:String):ElementWrapper*/,/*

  /**
   * Returns the actual DOM element
   *
   * @param id the id of the element to get
   * @return The element
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-getElement Sencha Docs Ext JS 3.4
   * /
  function getElement(id:String):Object*/,/*

  /**
   * Returns a Region object containing the drag and drop element's position and size, including the padding configured for it
   *
   * @param oDD the drag and drop object to get the location for
   * @return a Region object representing the total area the element occupies, including any padding the instance is configured for.
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-getLocation Sencha Docs Ext JS 3.4
   * /
  function getLocation(oDD:DragDrop):Region*/,/*

  /**
   * Returns the drag and drop instances that are in all groups the passed in instance belongs to.
   *
   * @param p_oDD the obj to get related data for
   * @param bTargetsOnly if true, only return targetable objs
   * @return the related instances
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-getRelated Sencha Docs Ext JS 3.4
   * /
  function getRelated(p_oDD:DragDrop, bTargetsOnly:Boolean):Array*/,/*

  /**
   * Fired after a registered DragDrop object gets the mousedown event. Sets up the events required to track the object being dragged
   *
   * @param e the event
   * @param oDD DragDrop object being dragged
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-handleMouseDown Sencha Docs Ext JS 3.4
   * /
  function handleMouseDown(e:IEventObject, oDD:*):void*/,/*

  /**
   * Internal function to handle the mousemove event. Will be invoked from the context of the html element.
   *
   * @param e the event
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-handleMouseMove Sencha Docs Ext JS 3.4
   * /
  function handleMouseMove(e:IEventObject):void*/,/*

  /**
   * Internal function to handle the mouseup event. Will be invoked from the context of the document.
   *
   * @param e the event
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-handleMouseUp Sencha Docs Ext JS 3.4
   * /
  function handleMouseUp(e:IEventObject):void*/,/*

  /**
   * Called the first time an element is registered.
   *
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-init Sencha Docs Ext JS 3.4
   * /
  function init():void*/,/*

  /**
   * Utility function to determine if a given element has been registered as a drag drop item.
   *
   * @param id the element id to check
   * @return true if this element is a DragDrop item, false otherwise
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-isDragDrop Sencha Docs Ext JS 3.4
   * /
  function isDragDrop(id:String):Boolean*/,/*

  /**
   * Utility function to determine if a given element has been registered as a drag drop handle for the given Drag Drop object.
   *
   * @param id the element id to check
   * @return true if this element is a DragDrop handle, false otherwise
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-isHandle Sencha Docs Ext JS 3.4
   * /
  function isHandle(id:String):Boolean*/,/*

  /**
   * Returns true if the specified dd target is a legal target for the specific drag obj
   *
   * @param oDD the drag obj
   * @param oTargetDD the target
   * @return true if the target is a legal target for the dd obj
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-isLegalTarget Sencha Docs Ext JS 3.4
   * /
  function isLegalTarget(oDD:DragDrop, oTargetDD:DragDrop):Boolean*/,/*

  /**
   * Is drag and drop locked?
   *
   * @return True if drag and drop is locked, false otherwise.
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-isLocked Sencha Docs Ext JS 3.4
   * /
  function isLocked():Boolean*/,/*

  /**
   * Checks the cursor location to see if it over the target
   *
   * @param pt The point to evaluate
   * @param oTarget the DragDrop object we are inspecting
   * @return true if the mouse is over the target
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-isOverTarget Sencha Docs Ext JS 3.4
   * /
  function isOverTarget(pt:Point, oTarget:DragDrop):Boolean*/,/*

  /**
   * 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.
   *
   * @param the object to evaluate
   * @return true if typeof oDD = DragDrop
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-isTypeOfDD Sencha Docs Ext JS 3.4
   * /
  function isTypeOfDD(the:Object):Boolean*/,/*

  /**
   * Lock all drag and drop functionality
   *
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-lock Sencha Docs Ext JS 3.4
   * /
  function lock():void*/,/*

  /**
   * 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: <code>Ext.dd.DragDropMgr.refreshCache(ddinstance.groups);</code> Alternatively: <code>Ext.dd.DragDropMgr.refreshCache({group1:true, group2:true});</code>
   *
   * @param groups an associative array of groups to refresh
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-refreshCache Sencha Docs Ext JS 3.4
   * /
  function refreshCache(groups:Object):void*/,/*

  /**
   * Each DragDrop instance must be registered with the DragDropMgr. This is executed in DragDrop.init()
   *
   * @param oDD the DragDrop object to register
   * @param sGroup the name of the group this element belongs to
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-regDragDrop Sencha Docs Ext JS 3.4
   * /
  function regDragDrop(oDD:DragDrop, sGroup:String):void*/,/*

  /**
   * Each DragDrop handle element must be registered. This is done automatically when executing DragDrop.setHandleElId()
   *
   * @param sDDId the DragDrop id this element is a handle for
   * @param sHandleId the id of the element that is the drag handle
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-regHandle Sencha Docs Ext JS 3.4
   * /
  function regHandle(sDDId:String, sHandleId:String):void*/,/*

  /**
   * Removes the supplied dd instance from the supplied group. Executed by DragDrop.removeFromGroup, so don't call this function directly.
   *
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-removeDDFromGroup Sencha Docs Ext JS 3.4
   * /
  function removeDDFromGroup():void*/,/*

  /**
   * Fired when either the drag pixel threshold or the mousedown hold time threshold has been met.
   *
   * @param x the X position of the original mousedown
   * @param y the Y position of the original mousedown
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-startDrag Sencha Docs Ext JS 3.4
   * /
  function startDrag(x:int, y:int):void*/,/*

  /**
   * Internal function to clean up event handlers after the drag operation is complete
   *
   * @param e the event
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-stopDrag Sencha Docs Ext JS 3.4
   * /
  function stopDrag(e:IEventObject):void*/,/*

  /**
   * Utility to stop event propagation and event default, if these features are turned on.
   *
   * @param e the event as returned by this.getEvent()
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-stopEvent Sencha Docs Ext JS 3.4
   * /
  function stopEvent(e:IEventObject):void*/,/*

  /**
   * Unlock all drag and drop functionality
   *
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-unlock Sencha Docs Ext JS 3.4
   * /
  function unlock():void*/,/*

  /**
   * Cleans up the drag and drop events and objects.
   *
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-unregAll Sencha Docs Ext JS 3.4
   * /
  function unregAll():void*/,/*

  /**
   * 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
   *
   * @param el the element to check
   * @return true if the element looks usable
   * @see http://docs.sencha.com/ext-js/3-4/#!/api/Ext.dd.DragDropMgr-method-verifyEl Sencha Docs Ext JS 3.4
   * /
  function verifyEl(el:HTMLElement):Boolean*/,

undefined];},[],[], "0.8.0", "2.0.11"
);
New to GrepCode? Check out our FAQ X