/// <summary> /// An empty function by default, but provided so that you can perform a custom action /// while the dragged item is over the... /// </summary> public bool beforeDragOver(Ext.dd.DragDrop target, Event e, JsString id) { return(false); }
/// <summary> /// An empty function by default, but provided so that you can perform a custom action after an invalid /// drop has occurred. ... /// </summary> public bool beforeInvalidDrop(Ext.dd.DragDrop target, Event e, JsString id) { return(false); }
/// <summary> /// An empty function by default, but provided so that you can perform a custom action /// while the dragged item is over the... /// </summary> public object afterDragOver(Ext.dd.DragDrop target, Event e, JsString id) { return(null); }
/// <summary> /// Each DragDrop instance must be registered with the DragDropManager. /// This is executed in DragDrop.init() /// </summary> /// <param name="oDD"><p>the DragDrop object to register</p> /// </param> /// <param name="sGroup"><p>the name of the group this element belongs to</p> /// </param> public static void regDragDrop(Ext.dd.DragDrop oDD, JsString sGroup) { }
/// <summary> /// Called when this object is clicked /// </summary> /// <param name="e"> /// </param> /// <param name="oDD"><p>the clicked dd object (this dd obj)</p> /// </param> private void handleMouseDown(object e, Ext.dd.DragDrop oDD) { }
/// <summary> /// Returns true if the specified dd target is a legal target for /// the specifice drag obj /// </summary> /// <param name="oDD"><p>the drag obj</p> /// </param> /// <param name="oTargetDD"><p>the target</p> /// </param> /// <returns> /// <span><see cref="bool">Boolean</see></span><div><p>true if the target is a legal target for the /// dd obj</p> /// </div> /// </returns> public static bool isLegalTarget(Ext.dd.DragDrop oDD, Ext.dd.DragDrop oTargetDD) { return(false); }
/// <summary> /// Checks the cursor location to see if it over the target /// </summary> /// <param name="pt"><p>The point to evaluate</p> /// </param> /// <param name="oTarget"><p>the DragDrop object we are inspecting</p> /// </param> /// <returns> /// <span><see cref="bool">Boolean</see></span><div><p>true if the mouse is over the target</p> /// </div> /// </returns> private static bool isOverTarget(Ext.util.Point pt, Ext.dd.DragDrop oTarget) { return(false); }
/// <summary> /// Returns the drag and drop instances that are in all groups the /// passed in instance belongs to. /// </summary> /// <param name="p_oDD"><p>the obj to get related data for</p> /// </param> /// <param name="bTargetsOnly"><p>if true, only return targetable objs</p> /// </param> /// <returns> /// <span><see cref="Ext.dd.DragDrop">Ext.dd.DragDrop</see>[]</span><div><p>the related instances</p> /// </div> /// </returns> public static Ext.dd.DragDrop[] getRelated(Ext.dd.DragDrop p_oDD, bool bTargetsOnly) { return(null); }
/// <summary> /// Returns a Region object containing the drag and drop element's position /// and size, including the padding configured for it /// </summary> /// <param name="oDD"><p>the drag and drop object to get the location for.</p> /// </param> /// <returns> /// <span><see cref="Ext.util.Region">Ext.util.Region</see></span><div><p>a Region object representing the total area /// the element occupies, including any padding /// the instance is configured for.</p> /// </div> /// </returns> public static Ext.util.Region getLocation(Ext.dd.DragDrop oDD) { return(null); }
/// <summary> /// An empty function by default, but provided so that you can perform a custom action /// after the dragged item is dragged out of the target without dropping. /// </summary> /// <param name="target"><p>The drop target</p> /// </param> /// <param name="e"><p>The event object</p> /// </param> /// <param name="id"><p>The id of the dragged element</p> /// </param> public void afterDragOut(Ext.dd.DragDrop target, object e, JsString id) { }
/// <summary> /// An empty function by default, but provided so that you can perform a custom action after an invalid /// drop has occurred. /// <p>This is a <i>template method</i>. /// a hook into the functionality of this class. /// Feel free to override it in child classes.</p> /// </summary> /// <param name="target"><p>The drop target</p> /// </param> /// <param name="e"><p>The event object</p> /// </param> /// <param name="id"><p>The id of the dragged element</p> /// </param> /// <returns> /// <span><see cref="bool">Boolean</see></span><div><p>isValid True if the invalid drop should proceed, else false to cancel</p> /// </div> /// </returns> public virtual bool beforeInvalidDrop(Ext.dd.DragDrop target, object e, JsString id) { return(false); }
/// <summary> /// An empty function by default, but provided so that you can perform a custom action /// before the dragged item enters the drop target and optionally cancel the onDragEnter. /// <p>This is a <i>template method</i>. /// a hook into the functionality of this class. /// Feel free to override it in child classes.</p> /// </summary> /// <param name="target"><p>The drop target</p> /// </param> /// <param name="e"><p>The event object</p> /// </param> /// <param name="id"><p>The id of the dragged element</p> /// </param> /// <returns> /// <span><see cref="bool">Boolean</see></span><div><p>isValid True if the drag event is valid, else false to cancel</p> /// </div> /// </returns> public virtual bool beforeDragEnter(Ext.dd.DragDrop target, object e, JsString id) { return(false); }