X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6746dc89c47ed01b165cc1152533605f97eb8e8d..f562e4c6e5fac7bcb445985b99acbea4d706e6f0:/docs/output/Ext.util.Region.js diff --git a/docs/output/Ext.util.Region.js b/docs/output/Ext.util.Region.js index 091b30e3..766d3e8b 100644 --- a/docs/output/Ext.util.Region.js +++ b/docs/output/Ext.util.Region.js @@ -1,635 +1 @@ -Ext.data.JsonP.Ext_util_Region({ - "allMixins": [ - - ], - "deprecated": null, - "docauthor": null, - "members": { - "cfg": [ - - ], - "method": [ - { - "deprecated": null, - "alias": null, - "href": "Region.html#Ext-util-Region-method-constructor", - "tagname": "method", - "protected": false, - "shortDoc": "Creates a region from the bounding sides. ...", - "static": false, - "params": [ - { - "type": "Number", - "optional": false, - "doc": "

Top The topmost pixel of the Region.

\n", - "name": "top" - }, - { - "type": "Number", - "optional": false, - "doc": "

Right The rightmost pixel of the Region.

\n", - "name": "right" - }, - { - "type": "Number", - "optional": false, - "doc": "

Bottom The bottom pixel of the Region.

\n", - "name": "bottom" - }, - { - "type": "Number", - "optional": false, - "doc": "

Left The leftmost pixel of the Region.

\n", - "name": "left" - } - ], - "private": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "doc": "

Creates a region from the bounding sides.

\n", - "owner": "Ext.util.Region", - "name": "Region", - "html_filename": "Region.html", - "return": { - "type": "Object", - "doc": "\n" - }, - "linenr": 40 - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-adjust", - "shortDoc": "Modifies the current region to be adjusted by offsets. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "Number", - "optional": false, - "doc": "

top offset

\n", - "name": "top" - }, - { - "type": "Number", - "optional": false, - "doc": "

right offset

\n", - "name": "right" - }, - { - "type": "Number", - "optional": false, - "doc": "

bottom offset

\n", - "name": "bottom" - }, - { - "type": "Number", - "optional": false, - "doc": "

left offset

\n", - "name": "left" - } - ], - "name": "adjust", - "owner": "Ext.util.Region", - "doc": "

Modifies the current region to be adjusted by offsets.

\n", - "linenr": 116, - "return": { - "type": "void", - "doc": "\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-constrainTo", - "shortDoc": "Modifies the current region to be constrained to the targetRegion. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "Ext.util.Region", - "optional": false, - "doc": "\n", - "name": "targetRegion" - } - ], - "name": "constrainTo", - "owner": "Ext.util.Region", - "doc": "

Modifies the current region to be constrained to the targetRegion.

\n", - "linenr": 102, - "return": { - "type": "void", - "doc": "\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-contains", - "shortDoc": "Checks if this region completely contains the region that is passed in. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "Ext.util.Region", - "optional": false, - "doc": "\n", - "name": "region" - } - ], - "name": "contains", - "owner": "Ext.util.Region", - "doc": "

Checks if this region completely contains the region that is passed in.

\n", - "linenr": 55, - "return": { - "type": "void", - "doc": "\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-copy", - "shortDoc": "Create a copy of this Region. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - - ], - "name": "copy", - "owner": "Ext.util.Region", - "doc": "

Create a copy of this Region.

\n", - "linenr": 308, - "return": { - "type": "Ext.util.Region", - "doc": "\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-copyFrom", - "shortDoc": "Copy the values of another Region to this Region ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "Region", - "optional": false, - "doc": "

region to copy from.

\n", - "name": "The" - } - ], - "name": "copyFrom", - "owner": "Ext.util.Region", - "doc": "

Copy the values of another Region to this Region

\n", - "linenr": 316, - "return": { - "type": "Ext.util.Region", - "doc": "

This Region

\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-equals", - "shortDoc": "Check whether this region is equivalent to the given region ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "Ext.util.Region", - "optional": false, - "doc": "

The region to compare with

\n", - "name": "region" - } - ], - "name": "equals", - "owner": "Ext.util.Region", - "doc": "

Check whether this region is equivalent to the given region

\n", - "linenr": 374, - "return": { - "type": "Boolean", - "doc": "\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-from", - "shortDoc": "Creates a Region from a \"box\" Object which contains four numeric properties top, right, bottom and left. ...", - "static": true, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "Object", - "optional": false, - "doc": "

An object with top, right, bottom and left properties.

\n", - "name": "o" - } - ], - "name": "from", - "owner": "Ext.util.Region", - "doc": "

Creates a Region from a \"box\" Object which contains four numeric properties top, right, bottom and left.

\n", - "linenr": 27, - "return": { - "type": "Ext.util.Region", - "doc": "

region The Region constructed based on the passed object

\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-getOutOfBoundOffset", - "shortDoc": "Get the offset amount of a point outside the region ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "

optional

\n", - "name": "axis" - }, - { - "type": "Ext.util.Point", - "optional": false, - "doc": "

the point

\n", - "name": "p" - } - ], - "name": "getOutOfBoundOffset", - "owner": "Ext.util.Region", - "doc": "

Get the offset amount of a point outside the region

\n", - "linenr": 132, - "return": { - "type": "Ext.util.Offset", - "doc": "\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-getOutOfBoundOffsetX", - "shortDoc": "Get the offset amount on the x-axis ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "Number", - "optional": false, - "doc": "

the offset

\n", - "name": "p" - } - ], - "name": "getOutOfBoundOffsetX", - "owner": "Ext.util.Region", - "doc": "

Get the offset amount on the x-axis

\n", - "linenr": 155, - "return": { - "type": "Number", - "doc": "\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-getOutOfBoundOffsetY", - "shortDoc": "Get the offset amount on the y-axis ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "Number", - "optional": false, - "doc": "

the offset

\n", - "name": "p" - } - ], - "name": "getOutOfBoundOffsetY", - "owner": "Ext.util.Region", - "doc": "

Get the offset amount on the y-axis

\n", - "linenr": 170, - "return": { - "type": "Number", - "doc": "\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-getRegion", - "shortDoc": "Retrieves an Ext.util.Region for a particular element. ...", - "static": true, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "Mixed", - "optional": false, - "doc": "

An element ID, htmlElement or Ext.core.Element representing an element in the document.

\n", - "name": "el" - } - ], - "name": "getRegion", - "owner": "Ext.util.Region", - "doc": "

Retrieves an Ext.util.Region for a particular element.

\n", - "linenr": 17, - "return": { - "type": "Ext.util.Region", - "doc": "

region

\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-intersect", - "shortDoc": "Checks if this region intersects the region passed in. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "Ext.util.Region", - "optional": false, - "doc": "\n", - "name": "region" - } - ], - "name": "intersect", - "owner": "Ext.util.Region", - "doc": "

Checks if this region intersects the region passed in.

\n", - "linenr": 68, - "return": { - "type": "Ext.util.Region/Boolean", - "doc": "

Returns the intersected region or false if there is no intersection.

\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-isOutOfBound", - "shortDoc": "Check whether the point / offset is out of bound ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "

optional

\n", - "name": "axis" - }, - { - "type": "Ext.util.Point/Number", - "optional": false, - "doc": "

the point / offset

\n", - "name": "p" - } - ], - "name": "isOutOfBound", - "owner": "Ext.util.Region", - "doc": "

Check whether the point / offset is out of bound

\n", - "linenr": 185, - "return": { - "type": "Boolean", - "doc": "\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-isOutOfBoundX", - "shortDoc": "Check whether the offset is out of bound in the x-axis ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "Number", - "optional": false, - "doc": "

the offset

\n", - "name": "p" - } - ], - "name": "isOutOfBoundX", - "owner": "Ext.util.Region", - "doc": "

Check whether the offset is out of bound in the x-axis

\n", - "linenr": 204, - "return": { - "type": "Boolean", - "doc": "\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-isOutOfBoundY", - "shortDoc": "Check whether the offset is out of bound in the y-axis ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "Number", - "optional": false, - "doc": "

the offset

\n", - "name": "p" - } - ], - "name": "isOutOfBoundY", - "owner": "Ext.util.Region", - "doc": "

Check whether the offset is out of bound in the y-axis

\n", - "linenr": 213, - "return": { - "type": "Boolean", - "doc": "\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-round", - "shortDoc": "Round all the properties of this region ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - - ], - "name": "round", - "owner": "Ext.util.Region", - "doc": "

Round all the properties of this region

\n", - "linenr": 360, - "return": { - "type": "Ext.util.Region", - "doc": "

this This Region

\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-translateBy", - "shortDoc": "Translate this region by the given offset amount ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "Ext.util.Offset/Object", - "optional": false, - "doc": "

Object containing the x and y properties.\nOr the x value is using the two argument form.

\n", - "name": "offset" - }, - { - "type": "Number", - "optional": false, - "doc": "

y value unless using an Offset object.

\n", - "name": "The" - } - ], - "name": "translateBy", - "owner": "Ext.util.Region", - "doc": "

Translate this region by the given offset amount

\n", - "linenr": 339, - "return": { - "type": "Ext.util.Region", - "doc": "

this This Region

\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-union", - "shortDoc": "Returns the smallest region that contains the current AND targetRegion. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "Ext.util.Region", - "optional": false, - "doc": "\n", - "name": "region" - } - ], - "name": "union", - "owner": "Ext.util.Region", - "doc": "

Returns the smallest region that contains the current AND targetRegion.

\n", - "linenr": 88, - "return": { - "type": "void", - "doc": "\n" - }, - "html_filename": "Region.html" - } - ], - "property": [ - - ], - "cssVar": [ - - ], - "cssMixin": [ - - ], - "event": [ - - ] - }, - "singleton": false, - "alias": null, - "superclasses": [ - - ], - "protected": false, - "tagname": "class", - "mixins": [ - - ], - "href": "Region.html#Ext-util-Region", - "subclasses": [ - "Ext.util.Point" - ], - "static": false, - "author": null, - "component": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "alternateClassNames": [ - - ], - "name": "Ext.util.Region", - "doc": "

This class represents a rectangular region in X,Y space, and performs geometric\ntransformations or tests upon the region.

\n\n\n

This class may be used to compare the document regions occupied by elements.

\n\n", - "mixedInto": [ - - ], - "linenr": 1, - "xtypes": [ - - ], - "html_filename": "Region.html", - "extends": "Object" -}); \ No newline at end of file +Ext.data.JsonP.Ext_util_Region({"tagname":"class","html":"

Hierarchy

Ext.Base
Ext.util.Region

Requires

Files

This class represents a rectangular region in X,Y space, and performs geometric\ntransformations or tests upon the region.

\n\n

This class may be used to compare the document regions occupied by elements.

\n
Defined By

Properties

Get the reference to the current class from which this object was instantiated. ...

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

\n\n
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
\n

Methods

Defined By

Instance Methods

Creates a region from the bounding sides. ...

Creates a region from the bounding sides.

\n

Parameters

  • top : Number

    Top The topmost pixel of the Region.

    \n
  • right : Number

    Right The rightmost pixel of the Region.

    \n
  • bottom : Number

    Bottom The bottom pixel of the Region.

    \n
  • left : Number

    Left The leftmost pixel of the Region.

    \n

Returns

Modifies the current region to be adjusted by offsets. ...

Modifies the current region to be adjusted by offsets.

\n

Parameters

Returns

( Array/Arguments args ) : Objectprotected
Call the original method that was previously overridden with override\n\nExt.define('My.Cat', {\n constructor: functi...

Call the original method that was previously overridden with override

\n\n
Ext.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
\n

Parameters

  • args : Array/Arguments

    The arguments, either an array or the arguments object

    \n

Returns

  • Object

    Returns the result after calling the overridden method

    \n
( Array/Arguments args ) : Objectprotected
Call the parent's overridden method. ...

Call the parent's overridden method. For example:

\n\n
Ext.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
\n

Parameters

  • args : Array/Arguments

    The arguments, either an array or the arguments object\nfrom the current method, for example: this.callParent(arguments)

    \n

Returns

  • Object

    Returns the result from the superclass' method

    \n
Modifies the current region to be constrained to the targetRegion. ...

Modifies the current region to be constrained to the targetRegion.

\n

Parameters

Returns

Checks if this region completely contains the region that is passed in. ...

Checks if this region completely contains the region that is passed in.

\n

Parameters

Returns

Create a copy of this Region. ...

Create a copy of this Region.

\n

Returns

Copy the values of another Region to this Region ...

Copy the values of another Region to this Region

\n

Parameters

Returns

Check whether this region is equivalent to the given region ...

Check whether this region is equivalent to the given region

\n

Parameters

Returns

Get the offset amount of a point outside the region ...

Get the offset amount of a point outside the region

\n

Parameters

Returns

Get the offset amount on the x-axis ...

Get the offset amount on the x-axis

\n

Parameters

Returns

Get the offset amount on the y-axis ...

Get the offset amount on the y-axis

\n

Parameters

Returns

Initialize configuration for this class. ...

Initialize configuration for this class. a typical example:

\n\n
Ext.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
\n

Parameters

Returns

  • Object

    mixins The mixin prototypes as key - value pairs

    \n
Checks if this region intersects the region passed in. ...

Checks if this region intersects the region passed in.

\n

Parameters

Returns

Check whether the point / offset is out of bound ...

Check whether the point / offset is out of bound

\n

Parameters

Returns

Check whether the offset is out of bound in the x-axis ...

Check whether the offset is out of bound in the x-axis

\n

Parameters

Returns

Check whether the offset is out of bound in the y-axis ...

Check whether the offset is out of bound in the y-axis

\n

Parameters

Returns

Round all the properties of this region ...

Round all the properties of this region

\n

Returns

Get the reference to the class from which this object was instantiated. ...

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

\n\n
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
\n

Returns

Translate this region by the given offset amount ...

Translate this region by the given offset amount

\n

Parameters

  • x : Ext.util.Offset/Object

    Object containing the x and y properties.\nOr the x value is using the two argument form.

    \n
  • y : Number

    The y value unless using an Offset object.

    \n

Returns

Returns the smallest region that contains the current AND targetRegion. ...

Returns the smallest region that contains the current AND targetRegion.

\n

Parameters

Returns

Defined By

Static Methods

Add / override static properties of this class. ...

Add / override static properties of this class.

\n\n
Ext.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
\n

Parameters

Returns

( Ext.Base fromClass, String/String[] members ) : Ext.Basestatic
Borrow another class' members to the prototype of this class. ...

Borrow another class' members to the prototype of this class.

\n\n
Ext.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
\n

Parameters

  • fromClass : Ext.Base

    The class to borrow members from

    \n
  • members : String/String[]

    The names of the members to borrow

    \n

Returns

Create a new instance of this Class. ...

Create a new instance of this Class.

\n\n
Ext.define('My.cool.Class', {\n    ...\n});\n\nMy.cool.Class.create({\n    someConfig: true\n});\n
\n\n

All parameters are passed to the constructor of the class.

\n

Returns

Create aliases for existing prototype methods. ...

Create aliases for existing prototype methods. Example:

\n\n
Ext.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
\n

Parameters

Creates a Region from a \"box\" Object which contains four numeric properties top, right, bottom and left. ...

Creates a Region from a \"box\" Object which contains four numeric properties top, right, bottom and left.

\n

Parameters

  • o : Object

    An object with top, right, bottom and left properties.

    \n

Returns

Get the current class' name in string format. ...

Get the current class' name in string format.

\n\n
Ext.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
\n

Returns

Retrieves an Ext.util.Region for a particular element. ...

Retrieves an Ext.util.Region for a particular element.

\n

Parameters

Returns

Add methods / properties to the prototype of this class. ...

Add methods / properties to the prototype of this class.

\n\n
Ext.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
\n

Parameters

Override prototype members of this class. ...

Override prototype members of this class. Overridden methods can be invoked via\ncallOverridden

\n\n
Ext.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
\n

Parameters

Returns

","allMixins":[],"meta":{},"requires":["Ext.util.Offset"],"deprecated":null,"extends":"Ext.Base","inheritable":false,"static":false,"superclasses":["Ext.Base","Ext.util.Region"],"singleton":false,"code_type":"ext_define","alias":null,"statics":{"property":[],"css_var":[],"css_mixin":[],"cfg":[],"method":[{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Base","template":false,"required":null,"protected":false,"name":"addStatics","id":"static-method-addStatics"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Base","template":false,"required":null,"protected":false,"name":"borrow","id":"static-method-borrow"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Base","template":false,"required":null,"protected":false,"name":"create","id":"static-method-create"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Base","template":false,"required":null,"protected":false,"name":"createAlias","id":"static-method-createAlias"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.util.Region","template":false,"required":null,"protected":false,"name":"from","id":"static-method-from"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Base","template":false,"required":null,"protected":false,"name":"getName","id":"static-method-getName"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.util.Region","template":false,"required":null,"protected":false,"name":"getRegion","id":"static-method-getRegion"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Base","template":false,"required":null,"protected":false,"name":"implement","id":"static-method-implement"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Base","template":false,"required":null,"protected":false,"name":"override","id":"static-method-override"}],"event":[]},"subclasses":["Ext.util.Point"],"uses":[],"protected":false,"mixins":[],"members":{"property":[{"tagname":"property","deprecated":null,"static":false,"owner":"Ext.Base","template":null,"required":null,"protected":true,"name":"self","id":"property-self"}],"css_var":[],"css_mixin":[],"cfg":[],"method":[{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.util.Region","template":false,"required":null,"protected":false,"name":"constructor","id":"method-constructor"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.util.Region","template":false,"required":null,"protected":false,"name":"adjust","id":"method-adjust"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Base","template":false,"required":null,"protected":true,"name":"callOverridden","id":"method-callOverridden"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Base","template":false,"required":null,"protected":true,"name":"callParent","id":"method-callParent"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.util.Region","template":false,"required":null,"protected":false,"name":"constrainTo","id":"method-constrainTo"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.util.Region","template":false,"required":null,"protected":false,"name":"contains","id":"method-contains"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.util.Region","template":false,"required":null,"protected":false,"name":"copy","id":"method-copy"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.util.Region","template":false,"required":null,"protected":false,"name":"copyFrom","id":"method-copyFrom"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.util.Region","template":false,"required":null,"protected":false,"name":"equals","id":"method-equals"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.util.Region","template":false,"required":null,"protected":false,"name":"getOutOfBoundOffset","id":"method-getOutOfBoundOffset"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.util.Region","template":false,"required":null,"protected":false,"name":"getOutOfBoundOffsetX","id":"method-getOutOfBoundOffsetX"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.util.Region","template":false,"required":null,"protected":false,"name":"getOutOfBoundOffsetY","id":"method-getOutOfBoundOffsetY"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Base","template":false,"required":null,"protected":true,"name":"initConfig","id":"method-initConfig"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.util.Region","template":false,"required":null,"protected":false,"name":"intersect","id":"method-intersect"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.util.Region","template":false,"required":null,"protected":false,"name":"isOutOfBound","id":"method-isOutOfBound"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.util.Region","template":false,"required":null,"protected":false,"name":"isOutOfBoundX","id":"method-isOutOfBoundX"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.util.Region","template":false,"required":null,"protected":false,"name":"isOutOfBoundY","id":"method-isOutOfBoundY"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.util.Region","template":false,"required":null,"protected":false,"name":"round","id":"method-round"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Base","template":false,"required":null,"protected":true,"name":"statics","id":"method-statics"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.util.Region","template":false,"required":null,"protected":false,"name":"translateBy","id":"method-translateBy"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.util.Region","template":false,"required":null,"protected":false,"name":"union","id":"method-union"}],"event":[]},"private":false,"component":false,"name":"Ext.util.Region","alternateClassNames":[],"id":"class-Ext.util.Region","mixedInto":[],"xtypes":{},"files":[{"href":"Region.html#Ext-util-Region","filename":"Region.js"}]}); \ No newline at end of file