/* This file is part of Ext JS 3.4 Copyright (c) 2011-2013 Sencha Inc Contact: http://www.sencha.com/contact GNU General Public License Usage This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html. If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact. Build date: 2013-04-03 15:07:25 */ Ext.data.JsonP.Ext_dd_DropTarget({"alternateClassNames":[],"aliases":{},"enum":null,"parentMixins":[],"tagname":"class","subclasses":["Ext.dd.DropZone"],"extends":"Ext.dd.DDTarget","uses":[],"html":"
Hierarchy
Ext.dd.DragDropExt.dd.DDTargetExt.dd.DropTargetSubclasses
Files
A simple class that provides the basic implementation needed to make any element a drop target that can have\ndraggable items dropped onto it. The drop has no effect until an implementation of notifyDrop is provided.
\nA named drag drop group to which this object belongs. If a group is specified, then this object will only\ninteract with other drag drop objects in the same group (defaults to undefined).
\nThe CSS class returned to the drag source when drop is allowed (defaults to \"x-dd-drop-ok\").
\nDefaults to: "x-dd-drop-ok"
Cached reference to the linked element
\nCached reference to the linked element
\nThe available property is false until the linked dom element is accessible.
\nDefaults to: false
Configuration attributes passed into the constructor
\nConfiguration attributes passed into the constructor
\nSet to true when horizontal contraints are applied
\nDefaults to: false
Set to true when vertical contraints are applied
\nDefaults to: false
Provides default constraint padding to \"constrainTo\" elements (defaults to {left: 0, right:0, top:0, bottom:0}).
\nDefaults to: {left: 0, right: 0, top: 0, bottom: 0}
The id of the element that will be dragged. By default this is same\nas the linked element, but could be changed to another element. Ex:\nExt.dd.DDProxy
\nThe group defines a logical collection of DragDrop objects that are\nrelated. Instances only get events when interacting with other\nDragDrop object in the same group. This lets us define multiple\ngroups using a single DragDrop subclass if we want. An object in the format {'group1':true, 'group2':true}
\nThe ID of the element that initiates the drag operation. By default\nthis is the linked element, but could be changed to be a child of this\nelement. This lets us do things like only starting the drag when the\nheader element within the linked html element is clicked.
\nBy default, drags can only be initiated if the mousedown occurs in the\nregion the linked element is. This is done in part to work around a\nbug in some browsers that mis-report the mousedown if the previous\nmouseup happened outside of the window. This property is set to true\nif outer handles are defined. @default false
\nDefaults to: false
The id of the element associated with this object. This is what we\nrefer to as the \"linked element\" because the size and position of\nthis element is used to determine when the drag and drop objects have\ninteracted.
\nSet to false to enable a DragDrop object to fire drag events while dragging\nover its own Element. Defaults to true - DragDrop objects do not by default\nfire drag events to themselves.
\nAn Array of CSS class names for elements to be considered in valid as drag handles.
\nAn Array of CSS class names for elements to be considered in valid as drag handles.
\nAn object who's property names identify the IDs of elements to be considered invalid as drag handles.\nA non-null property value identifies the ID as invalid. For example, to prevent\ndragging from being initiated on element ID \"foo\", use:
\n\n{\n foo: true\n}
\n\nAn object who's property names identify HTML tags to be considered invalid as drag handles.\nA non-null property value identifies the tag as invalid. Defaults to the\nfollowing value which prevents drag operations from being initiated by <a> elements:
\n\n{\n A: \"A\"\n}
\n\nprivate
\n\nBy default, all instances can be a drop target. This can be disabled by\nsetting isTarget to false.
\nDefaults to: true
Overrides: Ext.dd.DragDrop.isTarget
Individual drag/drop instances can be locked. This will prevent\nonmousedown start drag.
\nDefaults to: false
Maintain offsets when we resetconstraints. Set to true when you want\nthe position of the element relative to its parent to stay the same\nwhen the page changes
\nDefaults to: false
When set to true, other DD objects in cooperating DDGroups do not receive\nnotification events when this DD object is dragged over them. Defaults to false.
\nDefaults to: false
The padding configured for this drag and drop object for calculating\nthe drop zone intersection with this object. An array containing the 4 padding values: [top, right, bottom, left]
\nBy default the drag and drop instance will only respond to the primary\nbutton click (left button for a right-handed mouse). Set to true to\nallow drag and drop to start with any mouse click that is propogated\nby the browser
\nDefaults to: true
The linked element's absolute X position at the time the drag was\nstarted
\nDefaults to: 0
The linked element's absolute X position at the time the drag was\nstarted
\nDefaults to: 0
Array of pixel locations the element will snap to if we specified a\nhorizontal graduation/interval. This array is generated automatically\nwhen you define a tick interval.
\nArray of pixel locations the element will snap to if we specified a\nvertical graduation/interval. This array is generated automatically\nwhen you define a tick interval.
\nThe container element
\nOverrides: Ext.dd.DDTarget.constructor
Add this instance to a group of related drag/drop objects. All\ninstances belong to at least one group, and can belong to as many\ngroups as needed.
\n{string} the name of the group
\nApplies the configuration parameters that were passed into the constructor.\nThis is supposed to happen at each level through the inheritance chain. So\na DDProxy implentation will execute apply config on DDProxy, DD, and\nDragDrop in order to get all of the parameters that are available in\neach object.
\nCode that executes immediately before the onDrag event
\nCode that executes immediately before the onDragDrop event
\nCode that executes immediately before the onDragOut event
\nCode that executes immediately before the onDragOver event
\nCode that executes immediately before the endDrag event
\nCode executed immediately before the onMouseDown event
\nthe mousedown event
\nCode that executes immediately before the startDrag event
\nInitializes the drag drop object's constraints to restrict movement to a certain element.
\n\nUsage:
\n\n var dd = new Ext.dd.DDProxy(\"dragDiv1\", \"proxytest\",\n { dragElId: \"existingProxyDiv\" });\n dd.startDrag = function(){\n this.constrainTo(\"parent-id\");\n };\n
\n\n\nOr you can initalize it using the Ext.Element object:
\n\n Ext.get(\"dragDiv1\").initDDProxy(\"proxytest\", {dragElId: \"existingProxyDiv\"}, {\n startDrag : function(){\n this.constrainTo(\"parent-id\");\n }\n });\n
\n\nThe element to constrain to.
\nPad provides a way to specify \"padding\" of the constraints,\nand can be either a number for symmetrical padding (4 would be equal to {left:4, right:4, top:4, bottom:4}) or\nan object containing the sides to pad. For example: {right:10, bottom:10}
\nConstrain the draggable in the content box of the element (inside padding and borders)
\nReturns a reference to the linked element
\nthe html element
\nNormally the drag element is moved pixel by pixel, but we can specify\nthat it move a number of pixels at a time. This method resolves the\nlocation when we have it set up like this.
\nwhere we want to place the object
\nsorted array of valid points
\nthe closest tick
\nFired when this object is clicked
\nthe clicked dd object (this dd obj)
\nExecuted when the linked element is available
\nSets up the DragDrop object. Must be called in the constructor of any\nExt.dd.DragDrop subclass
\nthe id of the linked element
\nthe group of related items
\nconfiguration attributes
\nInitializes Targeting functionality only... the object does not\nget a mousedown handler.
\nthe id of the linked element
\nthe group of related items
\nconfiguration attributes
\nReturns true if this instance is locked, or the drag drop mgr is locked\n(meaning that all drag/drop is disabled on the page.)
\ntrue if this obj or all drag/drop is locked, else\nfalse
\nThe function a Ext.dd.DragSource calls once to notify this drop target that the dragged item has\nbeen dropped on it. This method has no default implementation and returns false, so you must provide an\nimplementation that does something to process the drop event and returns true so that the drag source's\nrepair action does not run.
\nThe drag source that was dragged over this drop target
\nThe event
\nAn object containing arbitrary data supplied by the drag source
\nTrue if the drop was valid, else false
\nThe function a Ext.dd.DragSource calls once to notify this drop target that the source is now over the\ntarget. This default implementation adds the CSS class specified by overClass (if any) to the drop element\nand returns the dropAllowed config value. This method should be overridden if drop validation is required.
\nThe drag source that was dragged over this drop target
\nThe event
\nAn object containing arbitrary data supplied by the drag source
\nstatus The CSS class that communicates the drop status back to the source so that the\nunderlying Ext.dd.StatusProxy can be updated
\nThe function a Ext.dd.DragSource calls once to notify this drop target that the source has been dragged\nout of the target without dropping. This default implementation simply removes the CSS class specified by\noverClass (if any) from the drop element.
\nThe drag source that was dragged over this drop target
\nThe event
\nAn object containing arbitrary data supplied by the drag source
\nThe function a Ext.dd.DragSource calls continuously while it is being dragged over the target.\nThis method will be called on every mouse movement while the drag source is over the drop target.\nThis default implementation simply returns the dropAllowed config value.
\nThe drag source that was dragged over this drop target
\nThe event
\nAn object containing arbitrary data supplied by the drag source
\nstatus The CSS class that communicates the drop status back to the source so that the\nunderlying Ext.dd.StatusProxy can be updated
\nOverride the onAvailable method to do what is needed after the initial\nposition was determined.
\nRemove's this instance from the supplied interaction group
\nThe group to drop
\nConfigures the padding for the target zone in px. Effectively expands\n(or reduces) the virtual object size for targeting calculations.\nSupports css-style shorthand; if only one parameter is passed, all sides\nwill have that padding, and if only two are passed, the top and bottom\nwill have the first param, the left and right the second.
\nTop pad
\nRight pad
\nBot pad
\nLeft pad
\nSets the start position of the element. This is set when the obj\nis initialized, the reset when a drag is started.
\ncurrent position (from previous lookup)
\nCreate the array of horizontal tick marks if an interval was specified\nin setXConstraint().
\nCreate the array of vertical tick marks if an interval was specified in\nsetYConstraint().
\nRemove all drag and drop hooks for this element
\n