X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/3789b528d8dd8aad4558e38e22d775bcab1cbd36..refs/heads/master:/docs/output/Ext.util.Point.js?ds=inline diff --git a/docs/output/Ext.util.Point.js b/docs/output/Ext.util.Point.js index cfc7d56f..7c5ca3ee 100644 --- a/docs/output/Ext.util.Point.js +++ b/docs/output/Ext.util.Point.js @@ -1,702 +1 @@ -Ext.data.JsonP.Ext_util_Point({ - "tagname": "class", - "name": "Ext.util.Point", - "doc": "
Represents a 2D point with x and y properties, useful for comparison and instantiation\nfrom an event:
\n\nvar point = Ext.util.Point.fromEvent(e);\n
\n\n",
- "extends": "Ext.util.Region",
- "mixins": [
-
- ],
- "alternateClassNames": [
-
- ],
- "xtype": null,
- "author": null,
- "docauthor": null,
- "singleton": false,
- "private": false,
- "cfg": [
-
- ],
- "method": [
- {
- "tagname": "method",
- "name": "Point",
- "member": "Ext.util.Region",
- "doc": "\n",
- "params": [
- {
- "type": "Number",
- "name": "top",
- "doc": "Top
\n", - "optional": false - }, - { - "type": "Number", - "name": "right", - "doc": "Right
\n", - "optional": false - }, - { - "type": "Number", - "name": "bottom", - "doc": "Bottom
\n", - "optional": false - }, - { - "type": "Number", - "name": "left", - "doc": "Left
\n", - "optional": false - } - ], - "return": { - "type": "void", - "doc": "\n" - }, - "private": false, - "static": false, - "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js", - "linenr": 39, - "html_filename": "Region.html", - "href": "Region.html#Ext-util-Region-method-constructor", - "shortDoc": "\n" - }, - { - "tagname": "method", - "name": "adjust", - "member": "Ext.util.Region", - "doc": "Modifies the current region to be adjusted by offsets.
\n", - "params": [ - { - "type": "Number", - "name": "top", - "doc": "top offset
\n", - "optional": false - }, - { - "type": "Number", - "name": "right", - "doc": "right offset
\n", - "optional": false - }, - { - "type": "Number", - "name": "bottom", - "doc": "bottom offset
\n", - "optional": false - }, - { - "type": "Number", - "name": "left", - "doc": "left offset
\n", - "optional": false - } - ], - "return": { - "type": "void", - "doc": "\n" - }, - "private": false, - "static": false, - "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js", - "linenr": 115, - "html_filename": "Region.html", - "href": "Region.html#Ext-util-Region-method-adjust", - "shortDoc": "Modifies the current region to be adjusted by offsets.
\n" - }, - { - "tagname": "method", - "name": "constrainTo", - "member": "Ext.util.Region", - "doc": "Modifies the current region to be constrained to the targetRegion.
\n", - "params": [ - { - "type": "Ext.util.Region", - "name": "targetRegion", - "doc": "\n", - "optional": false - } - ], - "return": { - "type": "void", - "doc": "\n" - }, - "private": false, - "static": false, - "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js", - "linenr": 101, - "html_filename": "Region.html", - "href": "Region.html#Ext-util-Region-method-constrainTo", - "shortDoc": "Modifies the current region to be constrained to the targetRegion.
\n" - }, - { - "tagname": "method", - "name": "contains", - "member": "Ext.util.Region", - "doc": "Checks if this region completely contains the region that is passed in.
\n", - "params": [ - { - "type": "Ext.util.Region", - "name": "region", - "doc": "\n", - "optional": false - } - ], - "return": { - "type": "void", - "doc": "\n" - }, - "private": false, - "static": false, - "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js", - "linenr": 54, - "html_filename": "Region.html", - "href": "Region.html#Ext-util-Region-method-contains", - "shortDoc": "Checks if this region completely contains the region that is passed in.
\n" - }, - { - "tagname": "method", - "name": "copy", - "member": "Ext.util.Region", - "doc": "Copy a new instance
\n", - "params": [ - - ], - "return": { - "type": "Ext.util.Region", - "doc": "\n" - }, - "private": false, - "static": false, - "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js", - "linenr": 307, - "html_filename": "Region.html", - "href": "Region.html#Ext-util-Region-method-copy", - "shortDoc": "Copy a new instance
\n" - }, - { - "tagname": "method", - "name": "copyFrom", - "member": "Ext.util.Region", - "doc": "Copy the values of another Region to this Region
\n", - "params": [ - { - "type": "Region", - "name": "The", - "doc": "region to copy from.
\n", - "optional": false - } - ], - "return": { - "type": "Ext.util.Point", - "doc": "this This point
\n" - }, - "private": false, - "static": false, - "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js", - "linenr": 315, - "html_filename": "Region.html", - "href": "Region.html#Ext-util-Region-method-copyFrom", - "shortDoc": "Copy the values of another Region to this Region
\n" - }, - { - "tagname": "method", - "name": "equals", - "member": "Ext.util.Point", - "doc": "Compare this point and another point
\n", - "params": [ - { - "type": "Ext.util.Point/Object", - "name": "The", - "doc": "point to compare with, either an instance\nof Ext.util.Point or an object with left and top properties
\n", - "optional": false - } - ], - "return": { - "type": "Boolean", - "doc": "Returns whether they are equivalent
\n" - }, - "private": false, - "static": false, - "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Point.js", - "linenr": 46, - "html_filename": "Point.html", - "href": "Point.html#Ext-util-Point-method-equals", - "shortDoc": "Compare this point and another point
\n" - }, - { - "tagname": "method", - "name": "from", - "member": "Ext.util.Region", - "doc": "\n", - "params": [ - { - "type": "Object", - "name": "o", - "doc": "An object with top, right, bottom, left properties
\n", - "optional": false - } - ], - "return": { - "type": "Ext.util.Region", - "doc": "region The region constructed based on the passed object
\n" - }, - "private": false, - "static": true, - "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js", - "linenr": 27, - "html_filename": "Region.html", - "href": "Region.html#Ext-util-Region-method-from", - "shortDoc": "\n" - }, - { - "tagname": "method", - "name": "fromEvent", - "member": "Ext.util.Point", - "doc": "Returns a new instance of Ext.util.Point base on the pageX / pageY values of the given event
\n", - "params": [ - { - "type": "Event", - "name": "e", - "doc": "The event
\n", - "optional": false - } - ], - "return": { - "type": "void", - "doc": "Ext.util.Point
\n" - }, - "private": false, - "static": true, - "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Point.js", - "linenr": 19, - "html_filename": "Point.html", - "href": "Point.html#Ext-util-Point-method-fromEvent", - "shortDoc": "Returns a new instance of Ext.util.Point base on the pageX / pageY values of the given event
\n" - }, - { - "tagname": "method", - "name": "getOutOfBoundOffset", - "member": "Ext.util.Region", - "doc": "Get the offset amount of a point outside the region
\n", - "params": [ - { - "type": "String", - "name": "axis", - "doc": "optional
\n", - "optional": false - }, - { - "type": "Ext.util.Point", - "name": "p", - "doc": "the point
\n", - "optional": false - } - ], - "return": { - "type": "Ext.util.Offset", - "doc": "\n" - }, - "private": false, - "static": false, - "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js", - "linenr": 131, - "html_filename": "Region.html", - "href": "Region.html#Ext-util-Region-method-getOutOfBoundOffset", - "shortDoc": "Get the offset amount of a point outside the region
\n" - }, - { - "tagname": "method", - "name": "getOutOfBoundOffsetX", - "member": "Ext.util.Region", - "doc": "Get the offset amount on the x-axis
\n", - "params": [ - { - "type": "Number", - "name": "p", - "doc": "the offset
\n", - "optional": false - } - ], - "return": { - "type": "Number", - "doc": "\n" - }, - "private": false, - "static": false, - "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js", - "linenr": 154, - "html_filename": "Region.html", - "href": "Region.html#Ext-util-Region-method-getOutOfBoundOffsetX", - "shortDoc": "Get the offset amount on the x-axis
\n" - }, - { - "tagname": "method", - "name": "getOutOfBoundOffsetY", - "member": "Ext.util.Region", - "doc": "Get the offset amount on the y-axis
\n", - "params": [ - { - "type": "Number", - "name": "p", - "doc": "the offset
\n", - "optional": false - } - ], - "return": { - "type": "Number", - "doc": "\n" - }, - "private": false, - "static": false, - "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js", - "linenr": 169, - "html_filename": "Region.html", - "href": "Region.html#Ext-util-Region-method-getOutOfBoundOffsetY", - "shortDoc": "Get the offset amount on the y-axis
\n" - }, - { - "tagname": "method", - "name": "getRegion", - "member": "Ext.util.Region", - "doc": "\n", - "params": [ - { - "type": "Mixed", - "name": "el", - "doc": "A string, DomElement or Ext.core.Element representing an element\non the page.
\n", - "optional": false - } - ], - "return": { - "type": "Ext.util.Region", - "doc": "region\nRetrieves an Ext.util.Region for a particular element.
\n" - }, - "private": false, - "static": true, - "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js", - "linenr": 16, - "html_filename": "Region.html", - "href": "Region.html#Ext-util-Region-method-getRegion", - "shortDoc": "\n" - }, - { - "tagname": "method", - "name": "intersect", - "member": "Ext.util.Region", - "doc": "Checks if this region intersects the region passed in.
\n", - "params": [ - { - "type": "Ext.util.Region", - "name": "region", - "doc": "\n", - "optional": false - } - ], - "return": { - "type": "Ext.util.Region/Boolean", - "doc": "Returns the intersected region or false if there is no intersection.
\n" - }, - "private": false, - "static": false, - "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js", - "linenr": 67, - "html_filename": "Region.html", - "href": "Region.html#Ext-util-Region-method-intersect", - "shortDoc": "Checks if this region intersects the region passed in.
\n" - }, - { - "tagname": "method", - "name": "isOutOfBound", - "member": "Ext.util.Region", - "doc": "Check whether the point / offset is out of bound
\n", - "params": [ - { - "type": "String", - "name": "axis", - "doc": "optional
\n", - "optional": false - }, - { - "type": "Ext.util.Point/Number", - "name": "p", - "doc": "the point / offset
\n", - "optional": false - } - ], - "return": { - "type": "Boolean", - "doc": "\n" - }, - "private": false, - "static": false, - "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js", - "linenr": 184, - "html_filename": "Region.html", - "href": "Region.html#Ext-util-Region-method-isOutOfBound", - "shortDoc": "Check whether the point / offset is out of bound
\n" - }, - { - "tagname": "method", - "name": "isOutOfBoundX", - "member": "Ext.util.Region", - "doc": "Check whether the offset is out of bound in the x-axis
\n", - "params": [ - { - "type": "Number", - "name": "p", - "doc": "the offset
\n", - "optional": false - } - ], - "return": { - "type": "Boolean", - "doc": "\n" - }, - "private": false, - "static": false, - "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js", - "linenr": 203, - "html_filename": "Region.html", - "href": "Region.html#Ext-util-Region-method-isOutOfBoundX", - "shortDoc": "Check whether the offset is out of bound in the x-axis
\n" - }, - { - "tagname": "method", - "name": "isOutOfBoundY", - "member": "Ext.util.Region", - "doc": "Check whether the offset is out of bound in the y-axis
\n", - "params": [ - { - "type": "Number", - "name": "p", - "doc": "the offset
\n", - "optional": false - } - ], - "return": { - "type": "Boolean", - "doc": "\n" - }, - "private": false, - "static": false, - "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js", - "linenr": 212, - "html_filename": "Region.html", - "href": "Region.html#Ext-util-Region-method-isOutOfBoundY", - "shortDoc": "Check whether the offset is out of bound in the y-axis
\n" - }, - { - "tagname": "method", - "name": "isWithin", - "member": "Ext.util.Point", - "doc": "Whether the given point is not away from this point within the given threshold amount.\nTODO: Rename this isNear.
\n", - "params": [ - { - "type": "Ext.util.Point/Object", - "name": "The", - "doc": "point to check with, either an instance\nof Ext.util.Point or an object with left and top properties
\n", - "optional": false - }, - { - "type": "Object/Number", - "name": "threshold", - "doc": "Can be either an object with x and y properties or a number
\n", - "optional": false - } - ], - "return": { - "type": "Boolean", - "doc": "\n" - }, - "private": false, - "static": false, - "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Point.js", - "linenr": 56, - "html_filename": "Point.html", - "href": "Point.html#Ext-util-Point-method-isWithin", - "shortDoc": "Whether the given point is not away from this point within the given threshold amount.\nTODO: Rename this isNear.
\n" - }, - { - "tagname": "method", - "name": "round", - "member": "Ext.util.Region", - "doc": "Round all the properties of this region
\n", - "params": [ - - ], - "return": { - "type": "Ext.util.Region", - "doc": "this This Region
\n" - }, - "private": false, - "static": false, - "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js", - "linenr": 360, - "html_filename": "Region.html", - "href": "Region.html#Ext-util-Region-method-round", - "shortDoc": "Round all the properties of this region
\n" - }, - { - "tagname": "method", - "name": "roundedEquals", - "member": "Ext.util.Point", - "doc": "Compare this point with another point when the x and y values of both points are rounded. E.g:\n[100.3,199.8] will equals to [100, 200]
\n", - "params": [ - { - "type": "Ext.util.Point/Object", - "name": "The", - "doc": "point to compare with, either an instance\nof Ext.util.Point or an object with x and y properties
\n", - "optional": false - } - ], - "return": { - "type": "Boolean", - "doc": "\n" - }, - "private": false, - "static": false, - "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Point.js", - "linenr": 76, - "html_filename": "Point.html", - "href": "Point.html#Ext-util-Point-method-roundedEquals", - "shortDoc": "Compare this point with another point when the x and y values of both points are rounded. E.g:\n[100.3,199.8] will equ..." - }, - { - "tagname": "method", - "name": "toString", - "member": "Ext.util.Point", - "doc": "Returns a human-eye-friendly string that represents this point,\nuseful for debugging
\n", - "params": [ - - ], - "return": { - "type": "String", - "doc": "\n" - }, - "private": false, - "static": false, - "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Point.js", - "linenr": 37, - "html_filename": "Point.html", - "href": "Point.html#Ext-util-Point-method-toString", - "shortDoc": "Returns a human-eye-friendly string that represents this point,\nuseful for debugging
\n" - }, - { - "tagname": "method", - "name": "translate", - "member": "Ext.util.Point", - "doc": "Translate this region by the given offset amount. TODO: Either use translate or translateBy!
\n", - "params": [ - { - "type": "Ext.util.Offset/Object", - "name": "offset", - "doc": "Object containing the x
and y
properties.\nOr the x value is using the two argument form.
y value unless using an Offset object.
\n", - "optional": false - } - ], - "return": { - "type": "Ext.util.Region", - "doc": "this This Region
\n" - }, - "private": false, - "static": false, - "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Point.js", - "linenr": 87, - "html_filename": "Point.html", - "href": "Point.html#Ext-util-Point-method-translate", - "shortDoc": "Translate this region by the given offset amount. TODO: Either use translate or translateBy!
\n" - }, - { - "tagname": "method", - "name": "translateBy", - "member": "Ext.util.Region", - "doc": "Translate this region by the given offset amount
\n", - "params": [ - { - "type": "Ext.util.Offset/Object", - "name": "offset", - "doc": "Object containing the x
and y
properties.\nOr the x value is using the two argument form.
y value unless using an Offset object.
\n", - "optional": false - } - ], - "return": { - "type": "Ext.util.Region", - "doc": "this This Region
\n" - }, - "private": false, - "static": false, - "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js", - "linenr": 339, - "html_filename": "Region.html", - "href": "Region.html#Ext-util-Region-method-translateBy", - "shortDoc": "Translate this region by the given offset amount
\n" - }, - { - "tagname": "method", - "name": "union", - "member": "Ext.util.Region", - "doc": "Returns the smallest region that contains the current AND targetRegion.
\n", - "params": [ - { - "type": "Ext.util.Region", - "name": "region", - "doc": "\n", - "optional": false - } - ], - "return": { - "type": "void", - "doc": "\n" - }, - "private": false, - "static": false, - "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js", - "linenr": 87, - "html_filename": "Region.html", - "href": "Region.html#Ext-util-Region-method-union", - "shortDoc": "Returns the smallest region that contains the current AND targetRegion.
\n" - } - ], - "property": [ - - ], - "event": [ - - ], - "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Point.js", - "linenr": 1, - "html_filename": "Point.html", - "href": "Point.html#Ext-util-Point", - "cssVar": [ - - ], - "cssMixin": [ - - ], - "component": false, - "superclasses": [ - "Ext.util.Region" - ], - "subclasses": [ - - ], - "mixedInto": [ - - ], - "allMixins": [ - - ] -}); \ No newline at end of file +Ext.data.JsonP.Ext_util_Point({"tagname":"class","html":"Hierarchy
Ext.BaseExt.util.RegionExt.util.PointFiles
Represents a 2D point with x and y properties, useful for comparison and instantiation\nfrom an event:
\n\nvar point = Ext.util.Point.fromEvent(e);\n
\nGet 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 return 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
\nModifies the current region to be adjusted by offsets.
\ntop offset
\nright offset
\nbottom offset
\nleft offset
\nthis
\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 return this;\n }\n});\n\nMy.Cat.override({\n constructor: function() {\n alert(\"I'm going to be a cat!\");\n\n var instance = this.callOverridden();\n\n alert(\"Meeeeoooowwww\");\n\n return instance;\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
\nThe arguments, either an array or the arguments
object
Returns the result after calling the overridden method
\nCall the parent's overridden method. For example:
\n\nExt.define('My.own.A', {\n constructor: function(test) {\n alert(test);\n }\n});\n\nExt.define('My.own.B', {\n extend: 'My.own.A',\n\n constructor: function(test) {\n alert(test);\n\n this.callParent([test + 1]);\n }\n});\n\nExt.define('My.own.C', {\n extend: 'My.own.B',\n\n constructor: function() {\n alert(\"Going to call parent's overriden constructor...\");\n\n this.callParent(arguments);\n }\n});\n\nvar a = new My.own.A(1); // alerts '1'\nvar b = new My.own.B(1); // alerts '1', then alerts '2'\nvar c = new My.own.C(2); // alerts \"Going to call parent's overriden constructor...\"\n // alerts '2', then alerts '3'\n
\nThe arguments, either an array or the arguments
object\nfrom the current method, for example: this.callParent(arguments)
Returns the result from the superclass' method
\nModifies the current region to be constrained to the targetRegion.
\nthis
\nChecks if this region completely contains the region that is passed in.
\nCopy the values of another Region to this Region
\nThe region to copy from.
\nThis Region
\nCompare this point and another point
\npoint to compare with, either an instance\nof Ext.util.Point or an object with left and top properties
\nReturns whether they are equivalent
\nGet the offset amount of a point outside the region
\nthe point
\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 return this;\n }\n});\n\nvar awesome = new My.awesome.Class({\n name: 'Super Awesome'\n});\n\nalert(awesome.getName()); // 'Super Awesome'\n
\nmixins The mixin prototypes as key - value pairs
\nChecks if this region intersects the region passed in.
\nReturns the intersected region or false if there is no intersection.
\nCheck whether the point / offset is out of bound
\nthe point / offset
\nWhether the given point is not away from this point within the given threshold amount.
\nThe point to check with, either an instance\nof Ext.util.Point or an object with left and top properties
\nCan be either an object with x and y properties or a number
\nCompare this point with another point when the x and y values of both points are rounded. E.g:\n[100.3,199.8] will equals to [100, 200]
\nThe point to compare with, either an instance\nof Ext.util.Point or an object with x and y properties
\nGet 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 return this;\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
\nReturns a human-eye-friendly string that represents this point,\nuseful for debugging
\nAlias for translateBy
\n\nTranslate this region by the given offset amount
\nObject containing the x
and y
properties.\nOr the x value is using the two argument form.
The y value unless using an Offset object.
\nthis This Region
\nTranslate this region by the given offset amount
\nObject containing the x
and y
properties.\nOr the x value is using the two argument form.
The y value unless using an Offset object.
\nthis This Region
\nReturns the smallest region that contains the current AND targetRegion.
\na new region
\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
\nReturns a new instance of Ext.util.Point base on the pageX / pageY values of the given event
\nThe event
\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
\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.implement({\n meow: function() {\n alert('Meowww...');\n }\n });\n\n var kitty = new My.awesome.Cat;\n kitty.meow();\n
\nOverride prototype members of this class. Overridden methods can be invoked via\ncallOverridden
\n\nExt.define('My.Cat', {\n constructor: function() {\n alert(\"I'm a cat!\");\n\n return this;\n }\n});\n\nMy.Cat.override({\n constructor: function() {\n alert(\"I'm going to be a cat!\");\n\n var instance = this.callOverridden();\n\n alert(\"Meeeeoooowwww\");\n\n return instance;\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
\nthis
\n