Ext.data.JsonP.Ext_view_DropZone({"mixins":[],"code_type":"ext_define","inheritable":false,"component":false,"meta":{"private":true},"mixedInto":[],"uses":[],"aliases":{},"parentMixins":[],"superclasses":["Ext.Base","Ext.dd.DragDrop","Ext.dd.DDTarget","Ext.dd.DropTarget","Ext.dd.DropZone"],"members":{"event":[],"property":[{"meta":{"private":true},"owner":"Ext.Base","tagname":"property","name":"$className","id":"property-S-className"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"property","name":"__ygDragDrop","id":"property-__ygDragDrop"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"property","name":"_domRef","id":"property-_domRef"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"available","id":"property-available"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"config","id":"property-config"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"property","name":"configMap","id":"property-configMap"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"property","name":"constrainX","id":"property-constrainX"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"property","name":"constrainY","id":"property-constrainY"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"defaultPadding","id":"property-defaultPadding"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"property","name":"dragElId","id":"property-dragElId"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"groups","id":"property-groups"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"property","name":"handleElId","id":"property-handleElId"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"hasOuterHandles","id":"property-hasOuterHandles"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"id","id":"property-id"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"ignoreSelf","id":"property-ignoreSelf"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"property","name":"initConfigList","id":"property-initConfigList"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"property","name":"initConfigMap","id":"property-initConfigMap"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"invalidHandleClasses","id":"property-invalidHandleClasses"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"invalidHandleIds","id":"property-invalidHandleIds"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"invalidHandleTypes","id":"property-invalidHandleTypes"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"property","name":"isInstance","id":"property-isInstance"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"isTarget","id":"property-isTarget"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"property","name":"locked","id":"property-locked"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"maintainOffset","id":"property-maintainOffset"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"property","name":"maxX","id":"property-maxX"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"property","name":"maxY","id":"property-maxY"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"property","name":"minX","id":"property-minX"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"property","name":"minY","id":"property-minY"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"moveOnly","id":"property-moveOnly"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"padding","id":"property-padding"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"primaryButtonOnly","id":"property-primaryButtonOnly"},{"meta":{"protected":true},"owner":"Ext.Base","tagname":"property","name":"self","id":"property-self"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"property","name":"startPageX","id":"property-startPageX"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"property","name":"startPageY","id":"property-startPageY"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"xTicks","id":"property-xTicks"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"yTicks","id":"property-yTicks"}],"css_var":[],"method":[{"meta":{},"owner":"Ext.dd.DropTarget","tagname":"method","name":"constructor","id":"method-constructor"},{"meta":{},"owner":"Ext.dd.DDTarget","tagname":"method","name":"addInvalidHandleClass","id":"method-addInvalidHandleClass"},{"meta":{},"owner":"Ext.dd.DDTarget","tagname":"method","name":"addInvalidHandleId","id":"method-addInvalidHandleId"},{"meta":{},"owner":"Ext.dd.DDTarget","tagname":"method","name":"addInvalidHandleType","id":"method-addInvalidHandleType"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"addToGroup","id":"method-addToGroup"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"applyConfig","id":"method-applyConfig"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"method","name":"b4Drag","id":"method-b4Drag"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"method","name":"b4DragDrop","id":"method-b4DragDrop"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"method","name":"b4DragOut","id":"method-b4DragOut"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"method","name":"b4DragOver","id":"method-b4DragOver"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"method","name":"b4EndDrag","id":"method-b4EndDrag"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"method","name":"b4MouseDown","id":"method-b4MouseDown"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"method","name":"b4StartDrag","id":"method-b4StartDrag"},{"meta":{"deprecated":{"text":"as of 4.1. Use {@link #callParent} instead."},"protected":true},"owner":"Ext.Base","tagname":"method","name":"callOverridden","id":"method-callOverridden"},{"meta":{"protected":true},"owner":"Ext.Base","tagname":"method","name":"callParent","id":"method-callParent"},{"meta":{},"owner":"Ext.dd.DDTarget","tagname":"method","name":"clearConstraints","id":"method-clearConstraints"},{"meta":{},"owner":"Ext.dd.DDTarget","tagname":"method","name":"clearTicks","id":"method-clearTicks"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"configClass","id":"method-configClass"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"constrainTo","id":"method-constrainTo"},{"meta":{"private":true},"owner":"Ext.view.DropZone","tagname":"method","name":"containsRecordAtOffset","id":"method-containsRecordAtOffset"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"destroy","id":"method-destroy"},{"meta":{},"owner":"Ext.dd.DDTarget","tagname":"method","name":"endDrag","id":"method-endDrag"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"getConfig","id":"method-getConfig"},{"meta":{},"owner":"Ext.dd.DDTarget","tagname":"method","name":"getDragEl","id":"method-getDragEl"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"getEl","id":"method-getEl"},{"meta":{},"owner":"Ext.Base","tagname":"method","name":"getInitialConfig","id":"method-getInitialConfig"},{"meta":{},"owner":"Ext.dd.DropZone","tagname":"method","name":"getTargetFromEvent","id":"method-getTargetFromEvent"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"method","name":"getTick","id":"method-getTick"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"method","name":"handleMouseDown","id":"method-handleMouseDown"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"method","name":"handleOnAvailable","id":"method-handleOnAvailable"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"hasConfig","id":"method-hasConfig"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"init","id":"method-init"},{"meta":{"protected":true},"owner":"Ext.Base","tagname":"method","name":"initConfig","id":"method-initConfig"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"initTarget","id":"method-initTarget"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"isLocked","id":"method-isLocked"},{"meta":{},"owner":"Ext.dd.DDTarget","tagname":"method","name":"isValidHandleChild","id":"method-isValidHandleChild"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"lock","id":"method-lock"},{"meta":{"template":true},"owner":"Ext.dd.DropZone","tagname":"method","name":"notifyDrop","id":"method-notifyDrop"},{"meta":{"template":true},"owner":"Ext.dd.DropZone","tagname":"method","name":"notifyEnter","id":"method-notifyEnter"},{"meta":{"template":true},"owner":"Ext.dd.DropZone","tagname":"method","name":"notifyOut","id":"method-notifyOut"},{"meta":{"template":true},"owner":"Ext.dd.DropZone","tagname":"method","name":"notifyOver","id":"method-notifyOver"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"onAvailable","id":"method-onAvailable"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"onConfigUpdate","id":"method-onConfigUpdate"},{"meta":{"template":true},"owner":"Ext.dd.DropZone","tagname":"method","name":"onContainerDrop","id":"method-onContainerDrop"},{"meta":{"template":true},"owner":"Ext.dd.DropZone","tagname":"method","name":"onContainerOver","id":"method-onContainerOver"},{"meta":{},"owner":"Ext.dd.DDTarget","tagname":"method","name":"onDrag","id":"method-onDrag"},{"meta":{},"owner":"Ext.dd.DDTarget","tagname":"method","name":"onDragDrop","id":"method-onDragDrop"},{"meta":{},"owner":"Ext.dd.DDTarget","tagname":"method","name":"onDragEnter","id":"method-onDragEnter"},{"meta":{},"owner":"Ext.dd.DDTarget","tagname":"method","name":"onDragOut","id":"method-onDragOut"},{"meta":{},"owner":"Ext.dd.DDTarget","tagname":"method","name":"onDragOver","id":"method-onDragOver"},{"meta":{},"owner":"Ext.dd.DDTarget","tagname":"method","name":"onInvalidDrop","id":"method-onInvalidDrop"},{"meta":{},"owner":"Ext.dd.DDTarget","tagname":"method","name":"onMouseDown","id":"method-onMouseDown"},{"meta":{},"owner":"Ext.dd.DDTarget","tagname":"method","name":"onMouseUp","id":"method-onMouseUp"},{"meta":{"template":true},"owner":"Ext.dd.DropZone","tagname":"method","name":"onNodeDrop","id":"method-onNodeDrop"},{"meta":{},"owner":"Ext.dd.DropZone","tagname":"method","name":"onNodeEnter","id":"method-onNodeEnter"},{"meta":{"template":true},"owner":"Ext.dd.DropZone","tagname":"method","name":"onNodeOut","id":"method-onNodeOut"},{"meta":{"template":true},"owner":"Ext.dd.DropZone","tagname":"method","name":"onNodeOver","id":"method-onNodeOver"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"removeFromGroup","id":"method-removeFromGroup"},{"meta":{},"owner":"Ext.dd.DDTarget","tagname":"method","name":"removeInvalidHandleClass","id":"method-removeInvalidHandleClass"},{"meta":{},"owner":"Ext.dd.DDTarget","tagname":"method","name":"removeInvalidHandleId","id":"method-removeInvalidHandleId"},{"meta":{},"owner":"Ext.dd.DDTarget","tagname":"method","name":"removeInvalidHandleType","id":"method-removeInvalidHandleType"},{"meta":{},"owner":"Ext.dd.DDTarget","tagname":"method","name":"resetConstraints","id":"method-resetConstraints"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"setConfig","id":"method-setConfig"},{"meta":{},"owner":"Ext.dd.DDTarget","tagname":"method","name":"setDragElId","id":"method-setDragElId"},{"meta":{},"owner":"Ext.dd.DDTarget","tagname":"method","name":"setHandleElId","id":"method-setHandleElId"},{"meta":{},"owner":"Ext.dd.DDTarget","tagname":"method","name":"setInitPosition","id":"method-setInitPosition"},{"meta":{},"owner":"Ext.dd.DDTarget","tagname":"method","name":"setOuterHandleElId","id":"method-setOuterHandleElId"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"setPadding","id":"method-setPadding"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"method","name":"setStartPosition","id":"method-setStartPosition"},{"meta":{},"owner":"Ext.dd.DDTarget","tagname":"method","name":"setXConstraint","id":"method-setXConstraint"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"method","name":"setXTicks","id":"method-setXTicks"},{"meta":{},"owner":"Ext.dd.DDTarget","tagname":"method","name":"setYConstraint","id":"method-setYConstraint"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"method","name":"setYTicks","id":"method-setYTicks"},{"meta":{},"owner":"Ext.dd.DDTarget","tagname":"method","name":"startDrag","id":"method-startDrag"},{"meta":{"protected":true},"owner":"Ext.Base","tagname":"method","name":"statics","id":"method-statics"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"toString","id":"method-toString"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"unlock","id":"method-unlock"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"unreg","id":"method-unreg"}],"css_mixin":[],"cfg":[{"meta":{},"owner":"Ext.dd.DropTarget","tagname":"cfg","name":"ddGroup","id":"cfg-ddGroup"},{"meta":{},"owner":"Ext.dd.DropTarget","tagname":"cfg","name":"dropAllowed","id":"cfg-dropAllowed"},{"meta":{},"owner":"Ext.dd.DropTarget","tagname":"cfg","name":"dropNotAllowed","id":"cfg-dropNotAllowed"},{"meta":{},"owner":"Ext.dd.DropTarget","tagname":"cfg","name":"overClass","id":"cfg-overClass"}]},"tagname":"class","extends":"Ext.dd.DropZone","private":true,"html":"
Hierarchy
Subclasses
Files
NOTE This is a private utility class for internal use by the framework. Don't rely on its existence.
\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.
\nThe CSS class returned to the drag source when drop is allowed.
\nDefaults to: "x-dd-drop-ok"
The available property is false until the linked dom element is accessible.
\nDefaults to: false
Configuration attributes passed into the constructor
\nDefaults to: null
Set 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.
\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
\nDefaults to: null
The 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.
\n\nAn object in the format {'group1':true, 'group2':true}
\nDefaults to: null
The 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.
\nDefaults to: null
By 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. Defaults to 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.
\nDefaults to: null
Set 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.
\nDefaults to: null
An 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
\nDefaults to: null
An 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 A: \"A\"\n}\n
\nDefaults to: null
By default, all instances can be a drop target. This can be disabled by\nsetting isTarget to false.
\nDefaults to: true
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.
\nDefaults to: false
The padding configured for this drag and drop object for calculating\nthe drop zone intersection with this object.\nAn array containing the 4 padding values: [top, right, bottom, left]
\nDefaults to: null
By 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
Get the reference to the current class from which this object was instantiated. Unlike statics,\nthis.self
is scope-dependent and it's meant to be used for dynamic inheritance. See statics\nfor a detailed comparison
Ext.define('My.Cat', {\n statics: {\n speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n },\n\n constructor: function() {\n alert(this.self.speciesName); // dependent on 'this'\n },\n\n clone: function() {\n return new this.self();\n }\n});\n\n\nExt.define('My.SnowLeopard', {\n extend: 'My.Cat',\n statics: {\n speciesName: 'Snow Leopard' // My.SnowLeopard.speciesName = 'Snow Leopard'\n }\n});\n\nvar cat = new My.Cat(); // alerts 'Cat'\nvar snowLeopard = new My.SnowLeopard(); // alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone)); // alerts 'My.SnowLeopard'\n
\nThe 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.
\nDefaults to: null
Creates new DropTarget.
\nThe container element or ID of it.
\nOverrides: Ext.dd.DDTarget.constructor
Overridden and disabled. A DDTarget does not support being dragged.
\nOverrides: Ext.dd.DragDrop.addInvalidHandleClass
Overridden and disabled. A DDTarget does not support being dragged.
\nOverrides: Ext.dd.DragDrop.addInvalidHandleId
Overridden and disabled. A DDTarget does not support being dragged.
\nOverrides: Ext.dd.DragDrop.addInvalidHandleType
Adds 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.
\nthe 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 executed immediately before the onMouseDown event
\nthe mousedown event
\nCall the original method that was previously overridden with override
\n\nExt.define('My.Cat', {\n constructor: function() {\n alert(\"I'm a cat!\");\n }\n});\n\nMy.Cat.override({\n constructor: function() {\n alert(\"I'm going to be a cat!\");\n\n this.callOverridden();\n\n alert(\"Meeeeoooowwww\");\n }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n // alerts \"I'm a cat!\"\n // alerts \"Meeeeoooowwww\"\n
\n This method has been deprecated
\nas of 4.1. Use callParent instead.
\n\nThe arguments, either an array or the arguments
object\nfrom the current method, for example: this.callOverridden(arguments)
Returns the result of calling the overridden method
\nCall the \"parent\" method of the current method. That is the method previously\noverridden by derivation or by an override (see Ext.define).
\n\n Ext.define('My.Base', {\n constructor: function (x) {\n this.x = x;\n },\n\n statics: {\n method: function (x) {\n return x;\n }\n }\n });\n\n Ext.define('My.Derived', {\n extend: 'My.Base',\n\n constructor: function () {\n this.callParent([21]);\n }\n });\n\n var obj = new My.Derived();\n\n alert(obj.x); // alerts 21\n
\n\nThis can be used with an override as follows:
\n\n Ext.define('My.DerivedOverride', {\n override: 'My.Derived',\n\n constructor: function (x) {\n this.callParent([x*2]); // calls original My.Derived constructor\n }\n });\n\n var obj = new My.Derived();\n\n alert(obj.x); // now alerts 42\n
\n\nThis also works with static methods.
\n\n Ext.define('My.Derived2', {\n extend: 'My.Base',\n\n statics: {\n method: function (x) {\n return this.callParent([x*2]); // calls My.Base.method\n }\n }\n });\n\n alert(My.Base.method(10); // alerts 10\n alert(My.Derived2.method(10); // alerts 20\n
\n\nLastly, it also works with overridden static methods.
\n\n Ext.define('My.Derived2Override', {\n override: 'My.Derived2',\n\n statics: {\n method: function (x) {\n return this.callParent([x*2]); // calls My.Derived2.method\n }\n }\n });\n\n alert(My.Derived2.method(10); // now alerts 40\n
\nThe arguments, either an array or the arguments
object\nfrom the current method, for example: this.callParent(arguments)
Returns the result of calling the parent method
\nOverridden and disabled. A DDTarget does not support being dragged.
\nOverrides: Ext.dd.DragDrop.clearConstraints
Overridden and disabled. A DDTarget does not support being dragged.
\nOverrides: Ext.dd.DragDrop.clearTicks
Initializes the drag drop object's constraints to restrict movement to a certain element.
\n\nUsage:
\n\nvar dd = new Ext.dd.DDProxy(\"dragDiv1\", \"proxytest\",\n { dragElId: \"existingProxyDiv\" });\ndd.startDrag = function(){\n this.constrainTo(\"parent-id\");\n};\n
\n\nOr you can initalize it using the Ext.Element object:
\n\nExt.get(\"dragDiv1\").initDDProxy(\"proxytest\", {dragElId: \"existingProxyDiv\"}, {\n startDrag : function(){\n this.constrainTo(\"parent-id\");\n }\n});\n
\nThe element or element ID 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}
Constrain the draggable in the content box of the element (inside padding and borders)
\nOverridden and disabled. A DDTarget does not support being dragged.
\nOverrides: Ext.dd.DragDrop.endDrag
Overridden and disabled. A DDTarget does not support being dragged.
\nOverrides: Ext.dd.DragDrop.getDragEl
Returns a reference to the linked element
\nthe html element
\nReturns a custom data object associated with the DOM node that is the target of the event. By default\nthis looks up the event target in the Ext.dd.Registry, although you can override this method to\nprovide your own custom lookup.
\nThe event
\ndata The custom data
\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.
\nthe closest tick
\nCalled 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
\nInitialize configuration for this class. a typical example:
\n\nExt.define('My.awesome.Class', {\n // The default config\n config: {\n name: 'Awesome',\n isAwesome: true\n },\n\n constructor: function(config) {\n this.initConfig(config);\n }\n});\n\nvar awesome = new My.awesome.Class({\n name: 'Super Awesome'\n});\n\nalert(awesome.getName()); // 'Super Awesome'\n
\nthis
\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
\nOverridden and disabled. A DDTarget does not support being dragged.
\nOverrides: Ext.dd.DragDrop.isValidHandleChild
The function a Ext.dd.DragSource calls once to notify this drop zone that the dragged item has\nbeen dropped on it. The drag zone will look up the target node based on the event passed in, and if there\nis a node registered for that event, it will delegate to onNodeDrop for node-specific handling,\notherwise it will call onContainerDrop.
\nThis is a template method.\n a hook into the functionality of this class.\n Feel free to override it in child classes.
\nThe drag source that was dragged over this drop zone
\nThe event
\nAn object containing arbitrary data supplied by the drag source
\nFalse if the drop was invalid.
\nOverrides: Ext.dd.DropTarget.notifyDrop
The function a Ext.dd.DragSource calls once to notify this drop zone that the source is now over\nthe zone. The default implementation returns this.dropNotAllowed and expects that only registered drop\nnodes can process drag drop operations, so if you need the drop zone itself to be able to process drops\nyou should override this method and provide a custom implementation.
\nThis is a template method.\n a hook into the functionality of this class.\n Feel free to override it in child classes.
\nThe drag source that was dragged over this drop zone
\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
\nOverrides: Ext.dd.DropTarget.notifyEnter
The function a Ext.dd.DragSource calls once to notify this drop zone that the source has been dragged\nout of the zone without dropping. If the drag source is currently over a registered node, the notification\nwill be delegated to onNodeOut for node-specific handling, otherwise it will be ignored.
\nThis is a template method.\n a hook into the functionality of this class.\n Feel free to override it in child classes.
\nThe drag source that was dragged over this drop target
\nThe event
\nAn object containing arbitrary data supplied by the drag zone
\nOverrides: Ext.dd.DropTarget.notifyOut
The function a Ext.dd.DragSource calls continuously while it is being dragged over the drop zone.\nThis method will be called on every mouse movement while the drag source is over the drop zone.\nIt will call onNodeOver while the drag source is over a registered node, and will also automatically\ndelegate to the appropriate node-specific methods as necessary when the drag source enters and exits\nregistered nodes (onNodeEnter, onNodeOut). If the drag source is not currently over a\nregistered node, it will call onContainerOver.
\nThis is a template method.\n a hook into the functionality of this class.\n Feel free to override it in child classes.
\nThe drag source that was dragged over this drop zone
\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
\nOverrides: Ext.dd.DropTarget.notifyOver
Override the onAvailable method to do what is needed after the initial\nposition was determined.
\nCalled when the DropZone determines that a Ext.dd.DragSource has been dropped on it,\nbut not on any of its registered drop nodes. The default implementation returns false, so it should be\noverridden to provide the appropriate processing of the drop event if you need the drop zone itself to\nbe able to accept drops. It should return true when valid so that the drag source's repair action does not run.
\nThis is a template method.\n a hook into the functionality of this class.\n Feel free to override it in child classes.
\nThe drag source that was dragged over this drop zone
\nThe event
\nAn object containing arbitrary data supplied by the drag source
\nTrue if the drop was valid, else false
\nCalled while the DropZone determines that a Ext.dd.DragSource is being dragged over it,\nbut not over any of its registered drop nodes. The default implementation returns this.dropNotAllowed, so\nit should be overridden to provide the proper feedback if necessary.
\nThis is a template method.\n a hook into the functionality of this class.\n Feel free to override it in child classes.
\nThe drag source that was dragged over this drop zone
\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
\nOverridden and disabled. A DDTarget does not support being dragged.
\nOverrides: Ext.dd.DragDrop.onDrag
Overridden and disabled. A DDTarget does not support being dragged.
\nOverrides: Ext.dd.DragDrop.onDragDrop
Overridden and disabled. A DDTarget does not support being dragged.
\nOverrides: Ext.dd.DragDrop.onDragEnter
Overridden and disabled. A DDTarget does not support being dragged.
\nOverrides: Ext.dd.DragDrop.onDragOut
Overridden and disabled. A DDTarget does not support being dragged.
\nOverrides: Ext.dd.DragDrop.onDragOver
Overridden and disabled. A DDTarget does not support being dragged.
\nOverrides: Ext.dd.DragDrop.onInvalidDrop
Overridden and disabled. A DDTarget does not support being dragged.
\nOverrides: Ext.dd.DragDrop.onMouseDown
Overridden and disabled. A DDTarget does not support being dragged.
\nOverrides: Ext.dd.DragDrop.onMouseUp
Called when the DropZone determines that a Ext.dd.DragSource has been dropped onto\nthe drop node. The default implementation returns false, so it should be overridden to provide the\nappropriate processing of the drop event and return true so that the drag source's repair action does not run.
\nThis is a template method.\n a hook into the functionality of this class.\n Feel free to override it in child classes.
\nThe custom data associated with the drop node (this is the same value returned from\ngetTargetFromEvent for this node)
\nThe drag source that was dragged over this drop zone
\nThe event
\nAn object containing arbitrary data supplied by the drag source
\nTrue if the drop was valid, else false
\nCalled when the DropZone determines that a Ext.dd.DragSource has entered a drop node\nthat has either been registered or detected by a configured implementation of getTargetFromEvent.\nThis method has no default implementation and should be overridden to provide\nnode-specific processing if necessary.
\nThe custom data associated with the drop node (this is the same value returned from\ngetTargetFromEvent for this node)
\nThe drag source that was dragged over this drop zone
\nThe event
\nAn object containing arbitrary data supplied by the drag source
\nCalled when the DropZone determines that a Ext.dd.DragSource has been dragged out of\nthe drop node without dropping. This method has no default implementation and should be overridden to provide\nnode-specific processing if necessary.
\nThis is a template method.\n a hook into the functionality of this class.\n Feel free to override it in child classes.
\nThe custom data associated with the drop node (this is the same value returned from\ngetTargetFromEvent for this node)
\nThe drag source that was dragged over this drop zone
\nThe event
\nAn object containing arbitrary data supplied by the drag source
\nCalled while the DropZone determines that a Ext.dd.DragSource is over a drop node\nthat has either been registered or detected by a configured implementation of getTargetFromEvent.\nThe default implementation returns this.dropAllowed, so it should be\noverridden to provide the proper feedback.
\nThis is a template method.\n a hook into the functionality of this class.\n Feel free to override it in child classes.
\nThe custom data associated with the drop node (this is the same value returned from\ngetTargetFromEvent for this node)
\nThe drag source that was dragged over this drop zone
\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
\nRemoves this instance from the supplied interaction group
\nThe group to drop
\nOverridden and disabled. A DDTarget does not support being dragged.
\nOverrides: Ext.dd.DragDrop.removeInvalidHandleClass
Overridden and disabled. A DDTarget does not support being dragged.
\nOverrides: Ext.dd.DragDrop.removeInvalidHandleId
Overridden and disabled. A DDTarget does not support being dragged.
\nOverrides: Ext.dd.DragDrop.removeInvalidHandleType
Overridden and disabled. A DDTarget does not support being dragged.
\nOverrides: Ext.dd.DragDrop.resetConstraints
Overridden and disabled. A DDTarget does not support being dragged.
\nOverrides: Ext.dd.DragDrop.setDragElId
Overridden and disabled. A DDTarget does not support being dragged.
\nOverrides: Ext.dd.DragDrop.setHandleElId
Overridden and disabled. A DDTarget does not support being dragged.
\nOverrides: Ext.dd.DragDrop.setInitPosition
Overridden and disabled. A DDTarget does not support being dragged.
\nOverrides: Ext.dd.DragDrop.setOuterHandleElId
Configures 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.
\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)
\nOverridden and disabled. A DDTarget does not support being dragged.
\nOverrides: Ext.dd.DragDrop.setXConstraint
Overridden and disabled. A DDTarget does not support being dragged.
\nOverrides: Ext.dd.DragDrop.setYConstraint
Overridden and disabled. A DDTarget does not support being dragged.
\nOverrides: Ext.dd.DragDrop.startDrag
Get the reference to the class from which this object was instantiated. Note that unlike self,\nthis.statics()
is scope-independent and it always returns the class from which it was called, regardless of what\nthis
points to during run-time
Ext.define('My.Cat', {\n statics: {\n totalCreated: 0,\n speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n },\n\n constructor: function() {\n var statics = this.statics();\n\n alert(statics.speciesName); // always equals to 'Cat' no matter what 'this' refers to\n // equivalent to: My.Cat.speciesName\n\n alert(this.self.speciesName); // dependent on 'this'\n\n statics.totalCreated++;\n },\n\n clone: function() {\n var cloned = new this.self; // dependent on 'this'\n\n cloned.groupName = this.statics().speciesName; // equivalent to: My.Cat.speciesName\n\n return cloned;\n }\n});\n\n\nExt.define('My.SnowLeopard', {\n extend: 'My.Cat',\n\n statics: {\n speciesName: 'Snow Leopard' // My.SnowLeopard.speciesName = 'Snow Leopard'\n },\n\n constructor: function() {\n this.callParent();\n }\n});\n\nvar cat = new My.Cat(); // alerts 'Cat', then alerts 'Cat'\n\nvar snowLeopard = new My.SnowLeopard(); // alerts 'Cat', then alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone)); // alerts 'My.SnowLeopard'\nalert(clone.groupName); // alerts 'Cat'\n\nalert(My.Cat.totalCreated); // alerts 3\n
\nRemoves all drag and drop hooks for this element
\nAdd methods / properties to the prototype of this class.
\n\nExt.define('My.awesome.Cat', {\n constructor: function() {\n ...\n }\n});\n\n My.awesome.Cat.addMembers({\n meow: function() {\n alert('Meowww...');\n }\n });\n\n var kitty = new My.awesome.Cat;\n kitty.meow();\n
\nAdd / override static properties of this class.
\n\nExt.define('My.cool.Class', {\n ...\n});\n\nMy.cool.Class.addStatics({\n someProperty: 'someValue', // My.cool.Class.someProperty = 'someValue'\n method1: function() { ... }, // My.cool.Class.method1 = function() { ... };\n method2: function() { ... } // My.cool.Class.method2 = function() { ... };\n});\n
\nthis
\nBorrow another class' members to the prototype of this class.
\n\nExt.define('Bank', {\n money: '$$$',\n printMoney: function() {\n alert('$$$$$$$');\n }\n});\n\nExt.define('Thief', {\n ...\n});\n\nThief.borrow(Bank, ['money', 'printMoney']);\n\nvar steve = new Thief();\n\nalert(steve.money); // alerts '$$$'\nsteve.printMoney(); // alerts '$$$$$$$'\n
\nThe class to borrow members from
\nThe names of the members to borrow
\nthis
\nCreate a new instance of this Class.
\n\nExt.define('My.cool.Class', {\n ...\n});\n\nMy.cool.Class.create({\n someConfig: true\n});\n
\n\nAll parameters are passed to the constructor of the class.
\nthe created instance.
\nCreate aliases for existing prototype methods. Example:
\n\nExt.define('My.cool.Class', {\n method1: function() { ... },\n method2: function() { ... }\n});\n\nvar test = new My.cool.Class();\n\nMy.cool.Class.createAlias({\n method3: 'method1',\n method4: 'method2'\n});\n\ntest.method3(); // test.method1()\n\nMy.cool.Class.createAlias('method5', 'method3');\n\ntest.method5(); // test.method3() -> test.method1()\n
\nThe new method name, or an object to set multiple aliases. See\nflexSetter
\nThe original method name
\nGet the current class' name in string format.
\n\nExt.define('My.cool.Class', {\n constructor: function() {\n alert(this.self.getName()); // alerts 'My.cool.Class'\n }\n});\n\nMy.cool.Class.getName(); // 'My.cool.Class'\n
\nclassName
\nAdds members to class.
\nThis method has been deprecated since 4.1
\nUse addMembers instead.
\n\nOverride members of this class. Overridden methods can be invoked via\ncallParent.
\n\nExt.define('My.Cat', {\n constructor: function() {\n alert(\"I'm a cat!\");\n }\n});\n\nMy.Cat.override({\n constructor: function() {\n alert(\"I'm going to be a cat!\");\n\n this.callParent(arguments);\n\n alert(\"Meeeeoooowwww\");\n }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n // alerts \"I'm a cat!\"\n // alerts \"Meeeeoooowwww\"\n
\n\nAs of 4.1, direct use of this method is deprecated. Use Ext.define\ninstead:
\n\nExt.define('My.CatOverride', {\n override: 'My.Cat',\n constructor: function() {\n alert(\"I'm going to be a cat!\");\n\n this.callParent(arguments);\n\n alert(\"Meeeeoooowwww\");\n }\n});\n
\n\nThe above accomplishes the same result but can be managed by the Ext.Loader\nwhich can properly order the override and its target class and the build process\ncan determine whether the override is needed based on the required state of the\ntarget class (My.Cat).
\nThis method has been deprecated since 4.1.0
\nUse Ext.define instead
\n\nThe properties to add to this class. This should be\nspecified as an object literal containing one or more properties.
\nthis class
\n