code
stringlengths
1
2.08M
language
stringclasses
1 value
/* * 更新地址:http://ajaxjs.com/docs * 欢迎参与我们翻译的工作!详见《EXT API2Chinese 相关事宜》: * http://bbs.ajaxjs.com/viewthread.php?tid=90 Ext中文站翻译小组 * * 本翻译采用“创作共同约定、Creative Commons”。您可以自由: * 复制、发行、展览、表演、放映、广播或通过信息网络传播本作品 * 创作演绎作品 * 请遵守: * 署名. 您必须按照作者或者许可人指定的方式对作品进行署名。 * # 对任何再使用或者发行,您都必须向他人清楚地展示本作品使用的许可协议条款。 *...
JavaScript
/* * 更新地址:http://ajaxjs.com/docs * 欢迎参与我们翻译的工作!详见《EXT API2Chinese 相关事宜》: * http://bbs.ajaxjs.com/viewthread.php?tid=90 Ext中文站翻译小组 * * 本翻译采用“创作共同约定、Creative Commons”。您可以自由: * 复制、发行、展览、表演、放映、广播或通过信息网络传播本作品 * 创作演绎作品 * 请遵守: * 署名. 您必须按照作者或者许可人指定的方式对作品进行署名。 * # 对任何再使用或者发行,您都必须向他人清楚地展示本作品使用的许可协议条款。 *...
JavaScript
/* * 更新地址:http://ajaxjs.com/docs * 欢迎参与我们翻译的工作!详见《EXT API2Chinese 相关事宜》: * http://bbs.ajaxjs.com/viewthread.php?tid=90 Ext中文站翻译小组 * * 本翻译采用“创作共同约定、Creative Commons”。您可以自由: * 复制、发行、展览、表演、放映、广播或通过信息网络传播本作品 * 创作演绎作品 * 请遵守: * 署名. 您必须按照作者或者许可人指定的方式对作品进行署名。 * # 对任何再使用或者发行,您都必须向他人清楚地展示本作品使用的许可协议条款。 *...
JavaScript
/* * 更新地址:http://ajaxjs.com/docs * 欢迎参与我们翻译的工作!详见《EXT API2Chinese 相关事宜》: * http://bbs.ajaxjs.com/viewthread.php?tid=90 Ext中文站翻译小组 * * 本翻译采用“创作共同约定、Creative Commons”。您可以自由: * 复制、发行、展览、表演、放映、广播或通过信息网络传播本作品 * 创作演绎作品 * 请遵守: * 署名. 您必须按照作者或者许可人指定的方式对作品进行署名。 * # 对任何再使用或者发行,您都必须向他人清楚地展示本作品使用的许可协议条款。 *...
JavaScript
/* * 更新地址:http://ajaxjs.com/docs * 欢迎参与我们翻译的工作!详见《EXT API2Chinese 相关事宜》: * http://bbs.ajaxjs.com/viewthread.php?tid=90 Ext中文站翻译小组 * * 本翻译采用“创作共同约定、Creative Commons”。您可以自由: * 复制、发行、展览、表演、放映、广播或通过信息网络传播本作品 * 创作演绎作品 * 请遵守: * 署名. 您必须按照作者或者许可人指定的方式对作品进行署名。 * # 对任何再使用或者发行,您都必须向他人清楚地展示本作品使用的许可协议条款。 *...
JavaScript
/* * 更新地址:http://ajaxjs.com/docs * 欢迎参与我们翻译的工作!详见《EXT API2Chinese 相关事宜》: * http://bbs.ajaxjs.com/viewthread.php?tid=90 Ext中文站翻译小组 * * 本翻译采用“创作共同约定、Creative Commons”。您可以自由: * 复制、发行、展览、表演、放映、广播或通过信息网络传播本作品 * 创作演绎作品 * 请遵守: * 署名. 您必须按照作者或者许可人指定的方式对作品进行署名。 * # 对任何再使用或者发行,您都必须向他人清楚地展示本作品使用的许可协议条款。 *...
JavaScript
/* * Ext JS Library 0.20 * Copyright(c) 2006-2008, Ext JS, LLC. * licensing@extjs.com * * http://extjs.com/license */ /** * @class Ext.air.SystemMenu * 提供一个跨平台的菜单控制类,你可以新建菜单,或者在菜单中插入新的子项 <br/><br/> * 此类亦可以将Ext.Action的实例绑定到AIR菜单项上。 * @singleton */ Ext.air.SystemMenu = function(){ var menu; ...
JavaScript
/* * Ext JS Library 0.20 * Copyright(c) 2006-2008, Ext JS, LLC. * licensing@extjs.com * * http://extjs.com/license */ /** * @class Ext.air.Sound * * @singleton */ Ext.air.Sound = { /** * 播放音频。 * @param {String} file 要播放音效的位置。 这个文件应该在程序的安装目录下。 * @param {Number} startAt (optional) 指定音...
JavaScript
/* * Ext JS Library 0.20 * Copyright(c) 2006-2008, Ext JS, LLC. * licensing@extjs.com * * http://extjs.com/license */ /** * @class Ext.air.NativeWindow * @extends Ext.air.NativeObservable * 优化AIR原生窗体(NativeWindows)的功能,使之封装为Ext API的一部分<br/><br/> * 该类还包含这一功能:当程序最小化时,会自动通知系统托盘(system tray)。<br/><br...
JavaScript
/* * Ext JS Library 0.20 * Copyright(c) 2006-2008, Ext JS, LLC. * licensing@extjs.com * * http://extjs.com/license */ /** * @class Ext.air.FileProvider * @extends Ext.state.Provider * Ext状态读取器实现的一种,基于AIR程序的特点而设计的,将状态的配置文件保存在程序存储区。 * * @constructor * @param {Object} config */ Ext.air.FilePr...
JavaScript
/* * Ext JS Library 0.20 * Copyright(c) 2006-2008, Ext JS, LLC. * licensing@extjs.com * * http://extjs.com/license */ Ext.sql.Proxy = function(conn, table, keyName, store, readonly){ Ext.sql.Proxy.superclass.constructor.call(this); this.conn = conn; this.table = this.conn.getTable(table, ...
JavaScript
/* * Ext JS Library 0.20 * Copyright(c) 2006-2008, Ext JS, LLC. * licensing@extjs.com * * http://extjs.com/license */ Ext.sql.AirConnection = Ext.extend(Ext.sql.Connection, { // abstract methods open : function(db){ this.conn = new air.SQLConnection(); var file = air.File.application...
JavaScript
/* * Ext JS Library 0.20 * Copyright(c) 2006-2008, Ext JS, LLC. * licensing@extjs.com * * http://extjs.com/license */ Ext.sql.Table = function(conn, name, keyName){ this.conn = conn; this.name = name; this.keyName = keyName; }; Ext.sql.Table.prototype = { update : function(o){ var clause ...
JavaScript
/* * Ext JS Library 0.20 * Copyright(c) 2006-2008, Ext JS, LLC. * licensing@extjs.com * * http://extjs.com/license */ // Asbtract base class for Connection classes Ext.sql.Connection = function(config){ Ext.apply(this, config); Ext.sql.Connection.superclass.constructor.call(this); this.addEvent...
JavaScript
/* * Ext JS Library 0.20 * Copyright(c) 2006-2008, Ext JS, LLC. * licensing@extjs.com * * http://extjs.com/license */ /** * @Class Ext.air.SystemTray * 系统状态栏上托盘(Tray)控制类。 * @singleton */ Ext.air.SystemTray = function(){ var app = air.NativeApplication.nativeApplication; var icon, isWindows = ...
JavaScript
/* * Ext JS Library 0.20 * Copyright(c) 2006-2008, Ext JS, LLC. * licensing@extjs.com * * http://extjs.com/license */ /** * @class Ext.air.NativeObservable * @extends Ext.util.Observable * Ext Observable类为AIR而设计的增强版,针对原生AIR对象的包装器而设的代理事件 * @constructor */ Ext.air.NativeObservable = Ext.exten...
JavaScript
<?xml version="1.0" encoding="utf-8"?> <project path="" name="Ext - JS Lib" author="Ext JS, LLC" version="2.0.2" copyright="Ext JS Library $version&#xD;&#xA;Copyright(c) 2006-2008, $author.&#xD;&#xA;licensing@extjs.com&#xD;&#xA;&#xD;&#xA;http://extjs.com/license" output="$project\..\samples\tasks\ext-air\" source="Fa...
JavaScript
/* * Ext JS Library 0.20 * Copyright(c) 2006-2008, Ext JS, LLC. * licensing@extjs.com * * http://extjs.com/license */ /* * 以下的函数是为迎合AIR程序沙箱的要求而作出eval函数问题或其他问题的修正。 */ Ext.namespace('Ext.air', 'Ext.sql'); Ext.Template.prototype.compile = function() { var fm = Ext.util.Format; var useF = this.d...
JavaScript
/* * Ext JS Library 0.20 * Copyright(c) 2006-2008, Ext JS, LLC. * licensing@extjs.com * * http://extjs.com/license */ /** * @class Ext.air.DragType * 该对象提供了,拖放(Drag and Drop)进行时,对拖动内容类型定义的常量值。 * @singleton */ Ext.air.DragType = { /** * Constant for text data */ TEXT : 'text/plain', ...
JavaScript
/* * Ext JS Library 0.20 * Copyright(c) 2006-2008, Ext JS, LLC. * licensing@extjs.com * * http://extjs.com/license */ Ext.namespace('Ext.air', 'Ext.sql'); Ext.Template.prototype.compile = function() { var fm = Ext.util.Format; var useF = this.disableFormats !== true; var prevOffset = 0; v...
JavaScript
/* * 更新地址:http://ajaxjs.com/docs * 欢迎参与我们翻译的工作!详见《EXT API2Chinese 相关事宜》: * http://bbs.ajaxjs.com/viewthread.php?tid=90 Ext中文站翻译小组 * * 本翻译采用“创作共同约定、Creative Commons”。您可以自由: * 复制、发行、展览、表演、放映、广播或通过信息网络传播本作品 * 创作演绎作品 * 请遵守: * 署名. 您必须按照作者或者许可人指定的方式对作品进行署名。 * # 对任何再使用或者发行,您都必须向他人清楚地展示本作品使用的许可协议条款。 *...
JavaScript
/* * 更新地址:http://ajaxjs.com/docs * 欢迎参与我们翻译的工作!详见《EXT API2Chinese 相关事宜》: * http://bbs.ajaxjs.com/viewthread.php?tid=90 Ext中文站翻译小组 * * 本翻译采用“创作共同约定、Creative Commons”。您可以自由: * 复制、发行、展览、表演、放映、广播或通过信息网络传播本作品 * 创作演绎作品 * 请遵守: * 署名. 您必须按照作者或者许可人指定的方式对作品进行署名。 * # 对任何再使用或者发行,您都必须向他人清楚地展示本作品使用的许可协议条款。 *...
JavaScript
/* * 更新地址:http://ajaxjs.com/docs * 欢迎参与我们翻译的工作!详见《EXT API2Chinese 相关事宜》: * http://bbs.ajaxjs.com/viewthread.php?tid=90 Ext中文站翻译小组 * * 本翻译采用“创作共同约定、Creative Commons”。您可以自由: * 复制、发行、展览、表演、放映、广播或通过信息网络传播本作品 * 创作演绎作品 * 请遵守: * 署名. 您必须按照作者或者许可人指定的方式对作品进行署名。 * # 对任何再使用或者发行,您都必须向他人清楚地展示本作品使用的许可协议条款。 *...
JavaScript
/* * 更新地址:http://ajaxjs.com/docs * 欢迎参与我们翻译的工作!详见《EXT API2Chinese 相关事宜》: * http://bbs.ajaxjs.com/viewthread.php?tid=90 Ext中文站翻译小组 * * 本翻译采用“创作共同约定、Creative Commons”。您可以自由: * 复制、发行、展览、表演、放映、广播或通过信息网络传播本作品 * 创作演绎作品 * 请遵守: * 署名. 您必须按照作者或者许可人指定的方式对作品进行署名。 * # 对任何再使用或者发行,您都必须向他人清楚地展示本作品使用的许可协议条款。 *...
JavaScript
Ext.Direct.Event = function(config){ Ext.apply(this, config); } Ext.Direct.Event.prototype = { status: true, getData: function(){ return this.data; } }; Ext.Direct.RemotingEvent = Ext.extend(Ext.Direct.Event, { type: 'rpc', getTransaction: function(){ return this.tr...
JavaScript
/* * 更新地址:http://ajaxjs.com/docs * 欢迎参与我们翻译的工作!详见《EXT API2Chinese 相关事宜》: * http://bbs.ajaxjs.com/viewthread.php?tid=90 Ext中文站翻译小组 * * 本翻译采用“创作共同约定、Creative Commons”。您可以自由: * 复制、发行、展览、表演、放映、广播或通过信息网络传播本作品 * 创作演绎作品 * 请遵守: * 署名. 您必须按照作者或者许可人指定的方式对作品进行署名。 * # 对任何再使用或者发行,您都必须向他人清楚地展示本作品使用的许可协议条款。 *...
JavaScript
/* * 更新地址:http://ajaxjs.com/docs * 欢迎参与我们翻译的工作!详见《EXT API2Chinese 相关事宜》: * http://bbs.ajaxjs.com/viewthread.php?tid=90 Ext中文站翻译小组 * * 本翻译采用“创作共同约定、Creative Commons”。您可以自由: * 复制、发行、展览、表演、放映、广播或通过信息网络传播本作品 * 创作演绎作品 * 请遵守: * 署名. 您必须按照作者或者许可人指定的方式对作品进行署名。 * # 对任何再使用或者发行,您都必须向他人清楚地展示本作品使用的许可协议条款。 *...
JavaScript
/** * @class Ext.data.Connection * @extends Ext.util.Observable */ Ext.data.Connection = Ext.extend(Ext.util.Observable, { method: 'post', url: null, /** * @cfg {Boolean} disableCaching (Optional) True to add a unique cache-buster param to GET requests. (defaults to true) * @type Boolean ...
JavaScript
/** * @class Ext.lib.Panel * @extends Ext.Container * Shared Panel class */ Ext.lib.Panel = Ext.extend(Ext.Container, { /** * @cfg {String} baseCls * The base CSS class to apply to this panel's element (defaults to <code>'x-panel'</code>). */ baseCls : 'x-panel', /** * @cfg {Number/...
JavaScript
/** * @class Ext.is * * Determines information about the current platform the application is running on. * * @singleton */ Ext.is = { init : function() { var platforms = this.platforms, ln = platforms.length, i, platform; for (i = 0; i < ln; i++) { platfo...
JavaScript
/** * @class Ext.lib.Component * @extends Ext.util.Observable * Shared Component class */ Ext.lib.Component = Ext.extend(Ext.util.Observable, { isComponent: true, /** * @cfg {Mixed} renderTpl * <p>An {@link Ext.XTemplate XTemplate} used to create the {@link #getEl Element} which will * encap...
JavaScript
/** * @author Ed Spencer * @class Ext.data.ResultSet * @extends Object * * <p>Simple wrapper class that represents a set of records returned by a Proxy.</p> * * @constructor * Creates the new ResultSet */ Ext.data.ResultSet = Ext.extend(Object, { /** * @cfg {Boolean} loaded * True if the record...
JavaScript
/** * @class Ext.data.Types * @ignore * <p>This is s static class containing the system-supplied data types which may be given to a {@link Ext.data.Field Field}.<p/> * <p>The properties in this class are used as type indicators in the {@link Ext.data.Field Field} class, so to * test whether a Field is of a certain...
JavaScript
/** * @author Ed Spencer * @class Ext.ModelMgr * @extends Ext.AbstractManager * @singleton * * <p>Creates and manages the current set of models</p> */ Ext.ModelMgr = new Ext.AbstractManager({ typeName: 'mtype', /** * The string type of the default Model Proxy. Defaults to 'ajax' * @proper...
JavaScript
/** * @class Ext.data.SortTypes * @ignore * @singleton * Defines the default sorting (casting?) comparison functions used when sorting data. */ Ext.data.SortTypes = { /** * Default sort that does nothing * @param {Mixed} s The value being converted * @return {Mixed} The comparison value */ ...
JavaScript
/** * @author Ed Spencer * @class Ext.data.JsonWriter * @extends Ext.data.Writer * * <p>Writer that outputs model data in JSON format</p> */ Ext.data.JsonWriter = Ext.extend(Ext.data.Writer, { /** * @cfg {String} root The key under which the records in this Writer will be placed. Defaults to 'records'. ...
JavaScript
/** * @author Ed Spencer * @class Ext.data.XmlWriter * @extends Ext.data.Writer * * <p>Writer that outputs model data in XML format</p> */ Ext.data.XmlWriter = Ext.extend(Ext.data.Writer, { /** * @cfg {String} documentRoot The name of the root element of the document. Defaults to <tt>'xmlData'</tt>. ...
JavaScript
/** * @author Ed Spencer * @class Ext.data.Writer * @extends Object * * <p>Base Writer class used by most subclasses of {@link Ext.data.ServerProxy}. This class is * responsible for taking a set of {@link Ext.data.Operation} objects and a {@link Ext.data.Request} * object and modifying that request based on the...
JavaScript
/** * @author Ed Spencer * @class Ext.data.Model * @extends Ext.util.Stateful * * <p>A Model represents some object that your application manages. For example, one might define a Model for Users, Products, * Cars, or any other real-world object that we want to model in the system. Models are registered via the {...
JavaScript
/** * @author Ed Spencer * @class Ext.data.validations * @extends Object * * <p>This singleton contains a set of validation functions that can be used to validate any type * of data. They are most often used in {@link Ext.data.Model Models}, where they are automatically * set up and executed.</p> */ Ext.data.v...
JavaScript
/** * @author Ed Spencer * @class Ext.data.ProxyMgr * @extends Ext.AbstractManager * @singleton * @ignore */ Ext.data.ProxyMgr = new Ext.AbstractManager({ create: function(config) { if (config == undefined || typeof config == 'string') { config = { type: config ...
JavaScript
/** * @author Ed Spencer * @class Ext.data.PolymorphicAssociation * @extends Ext.data.Association * @ignore */ Ext.data.PolymorphicAssociation = Ext.extend(Ext.data.Association, { constructor: function(config) { Ext.data.PolymorphicAssociation.superclass.constructor.call(this, config); ...
JavaScript
/** * @class Ext.data.JsonPStore * @extends Ext.data.Store * @ignore * @private * <p><b>NOTE:</b> This class is in need of migration to the new API.</p> * <p>Small helper class to make creating {@link Ext.data.Store}s from different domain JSON data easier. * A JsonPStore will be automatically configured with a ...
JavaScript
/** * @author Ed Spencer * @class Ext.data.AbstractStore * @extends Ext.util.Observable * * <p>AbstractStore which provides interactivity with proxies and readers but * does NOT rely on any internal data storage representation. Subclasses of * Store and TreeStore use the internal representation of Ext.util.Mixed...
JavaScript
/** * @author Aaron Conran * @class Ext.data.TreeStore * @extends Ext.data.AbstractStore * * <p>A store class that allows the representation of hierarchical data.</p> * @constructor * @param {Object} config Optional config object */ Ext.data.TreeStore = Ext.extend(Ext.data.AbstractStore, { /** * @cfg {...
JavaScript
/** * @author Ed Spencer * @class Ext.data.JsonStore * @extends Ext.data.Store * @ignore * * <p>Small helper class to make creating {@link Ext.data.Store}s from JSON data easier. * A JsonStore will be automatically configured with a {@link Ext.data.JsonReader}.</p> * * <p>A store configuration would be somet...
JavaScript
/** * @author Ed Spencer * @class Ext.data.ArrayStore * @extends Ext.data.Store * @ignore * * <p>Small helper class to make creating {@link Ext.data.Store}s from Array data easier. * An ArrayStore will be automatically configured with a {@link Ext.data.ArrayReader}.</p> * * <p>A store configuration would be ...
JavaScript
/** * @author Ed Spencer * @class Ext.data.XmlStore * @extends Ext.data.Store * @private * @ignore * <p>Small helper class to make creating {@link Ext.data.Store}s from XML data easier. * A XmlStore will be automatically configured with a {@link Ext.data.XmlReader}.</p> * <p>A store configuration would be somet...
JavaScript
/** * @author Ed Spencer * @class Ext.data.Store * @extends Ext.data.AbstractStore * * <p>The Store class encapsulates a client side cache of {@link Ext.data.Model Model} objects. Stores load * data via a {@link Ext.data.Proxy Proxy}, and also provide functions for {@link #sort sorting}, * {@link #filter filteri...
JavaScript
/** * @author Ed Spencer * @class Ext.data.Association * @extends Object * * <p>Base Association class. Not to be used directly as it simply supports its subclasses * {@link Ext.data.HasManyAssociation} and {@link Ext.data.BelongsToAssociation}.</p> * * @constructor * @param {Object} config Optional config o...
JavaScript
/** * @author Ed Spencer * @class Ext.data.BelongsToAssociation * @extends Ext.data.Association * * <p>Represents a one to one association with another model. The owner model is expected to have * a foreign key which references the primary key of the associated model:</p> * <pre><code> var Category = Ext.regMo...
JavaScript
/** * @author Ed Spencer * @class Ext.data.Field * @extends Object * * <p>This class encapsulates the field definition information specified in the field definition objects * passed to {@link Ext.regModel}.</p> * * <p>Developers do not need to instantiate this class. Instances are created by {@link Ext.regMod...
JavaScript
/** * @author Ed Spencer * @class Ext.data.Errors * @extends Ext.util.MixedCollection * * <p>Wraps a collection of validation error responses and provides convenient functions for * accessing and errors for specific fields.</p> * * <p>Usually this class does not need to be instantiated directly - instances ar...
JavaScript
/** * @author Ed Spencer * @class Ext.data.Request * @extends Object * * <p>Simple class that represents a Request that will be made by any {@link Ext.data.ServerProxy} subclass. * All this class does is standardize the representation of a Request as used by any ServerProxy subclass, * it does not contain any a...
JavaScript
/** * @class Ext.data.Node * @extends Ext.util.Observable * @cfg {Boolean} leaf true if this node is a leaf and does not have children * @cfg {String} id The id for this node. If one is not specified, one is generated. * @constructor * @param {Object} attributes The attributes/config for the node */ Ext.data.Nod...
JavaScript
/** * @class Ext.data.Tree * @extends Ext.util.Observable * Represents a tree data structure and bubbles all the events for its nodes. The nodes * in the tree have most standard DOM functionality. * @constructor * @param {Node} root (optional) The root node */ Ext.data.Tree = Ext.extend(Ext.util.Observable, { ...
JavaScript
Ext.data.TreeReader = Ext.extend(Ext.data.JsonReader, { extractData : function(root, returnRecords) { var records = Ext.data.TreeReader.superclass.extractData.call(this, root, returnRecords), ln = records.length, i = 0, record; if (returnRecords) { f...
JavaScript
/** * @author Ed Spencer * @class Ext.data.ArrayReader * @extends Ext.data.JsonReader * * <p>Data reader class to create an Array of {@link Ext.data.Record} objects from an Array. * Each element of that Array represents a row of data fields. The * fields are pulled into a Record object using as a subscript, the...
JavaScript
/** * @author Ed Spencer * @class Ext.data.JsonReader * @extends Ext.data.Reader * * <p>Data reader class to create an Array of {@link Ext.data.Model} objects from a * JSON packet based on mappings in a provided Ext.data.Model constructor.</p> * * <p>Example code:</p> * <pre><code> var myReader = new Ext.da...
JavaScript
/** * @author Ed Spencer * @class Ext.data.XmlReader * @extends Ext.data.Reader * * <p>Xml Reader</p> */ Ext.data.XmlReader = Ext.extend(Ext.data.Reader, { /** * @private * Creates a function to return some particular key of data from a response. The totalProperty and * successProperty are tre...
JavaScript
/** * @author Ed Spencer * @class Ext.data.Reader * @extends Object * * <p>Readers are used to interpret data to be loaded into a {@link Ext.data.Model Model} instance or a {@link Ext.data.Store Store} * - usually in response to an AJAX request. This is normally handled transparently by passing some configuratio...
JavaScript
/** * @author Ed Spencer * @class Ext.data.WriterMgr * @extends Ext.AbstractManager * @ignore * * <p>Keeps track of all of the registered {@link Ext.data.Writer Writers}</p> */ Ext.data.WriterMgr = new Ext.AbstractManager({ });
JavaScript
/** * @author Ed Spencer * @class Ext.data.ReaderMgr * @extends Ext.AbstractManager * @singleton * @ignore * * <p>Maintains the set of all registered {@link Ext.data.Reader Reader} types.</p> */ Ext.data.ReaderMgr = new Ext.AbstractManager({ typeName: 'rtype' });
JavaScript
/** * @author Ed Spencer * @class Ext.data.Proxy * @extends Ext.util.Observable * * <p>Proxies are used by {@link Ext.data.Store Stores} to handle the loading and saving of {@link Ext.data.Model Model} data. * Usually developers will not need to create or interact with proxies directly.</p> * <p><u>Types of Pro...
JavaScript
/** * @author Ed Spencer * @class Ext.data.RestProxy * @extends Ext.data.AjaxProxy * * <p>Specialization of the {@link Ext.data.AjaxProxy AjaxProxy} which simply maps the four actions (create, read, * update and destroy) to RESTful HTTP verbs</p> */ Ext.data.RestProxy = Ext.extend(Ext.data.AjaxProxy, { /**...
JavaScript
/** * @author Ed Spencer * @class Ext.data.SessionStorageProxy * @extends Ext.data.WebStorageProxy * * <p>Proxy which uses HTML5 session storage as its data storage/retrieval mechanism. * If this proxy is used in a browser where session storage is not supported, the constructor will throw an error. * A session ...
JavaScript
/** * @author Ed Spencer * @class Ext.data.MemoryProxy * @extends Ext.data.ClientProxy * * <p>In-memory proxy. This proxy simply uses a local variable for data storage/retrieval, so its contents are * lost on every page refresh. Usually this Proxy isn't used directly, serving instead as a helper to a * {@link ...
JavaScript
/** * @author Ed Spencer * @class Ext.data.LocalStorageProxy * @extends Ext.data.WebStorageProxy * * <p>Proxy which uses HTML5 local storage as its data storage/retrieval mechanism. * If this proxy is used in a browser where local storage is not supported, the constructor will throw an error. * A local storage ...
JavaScript
/** * @author Ed Spencer * @class Ext.data.WebStorageProxy * @extends Ext.data.ClientProxy * * <p>WebStorageProxy is simply a superclass for the {@link Ext.data.LocalStorageProxy localStorage} and * {@link Ext.data.SessionStorageProxy sessionStorage} proxies. It uses the new HTML5 key/value client-side storage ...
JavaScript
/** * @author Ed Spencer * @class Ext.data.ClientProxy * @extends Ext.data.Proxy * * <p>Base class for any client-side storage. Used as a superclass for {@link Ext.data.MemoryProxy Memory} and * {@link Ext.data.WebStorageProxy Web Storage} proxies. Do not use directly, use one of the subclasses instead.</p> */...
JavaScript
Ext.apply(Ext, { /** * Returns the current document body as an {@link Ext.Element}. * @ignore * @memberOf Ext * @return Ext.Element The document body */ getHead : function() { var head; return function() { if (head == undefined) { hea...
JavaScript
/** * @author Ed Spencer * @class Ext.data.ServerProxy * @extends Ext.data.Proxy * * <p>ServerProxy is a superclass of {@link Ext.data.ScriptTagProxy ScriptTagProxy} and {@link Ext.data.AjaxProxy AjaxProxy}, * and would not usually be used directly.</p> * * <p>ServerProxy should ideally be named HttpProxy as ...
JavaScript
/** * @author Ed Spencer * @class Ext.data.AjaxProxy * @extends Ext.data.ServerProxy * * <p>An implementation of {@link Ext.data.Proxy} that processes data requests within the same * domain of the originating page.</p> * * <p><b>Note</b>: this class cannot be used to retrieve data from a domain other * than ...
JavaScript
/** * @class Ext.DomQuery * Provides functionality to select elements on the page based on a CSS selector. * <p> All selectors, attribute filters and pseudos below can be combined infinitely in any order. For example "div.foo:nth-child(odd)[@foo=bar].bar:first" would be a perfectly valid selector. </p> <h4>Element S...
JavaScript
/** * @author Ed Spencer * @class Ext.data.HasManyAssociation * @extends Ext.data.Association * * <p>Represents a one-to-many relationship between two models. Usually created indirectly via a model definition:</p> * <pre><code> Ext.regModel('Product', { fields: [ {name: 'id', type: 'int'}, ...
JavaScript
/** * @author Ed Spencer * @class Ext.data.Operation * @extends Object * * <p>Represents a single read or write operation performed by a {@link Ext.data.Proxy Proxy}. * Operation objects are used to enable communication between Stores and Proxies. Application * developers should rarely need to interact with Ope...
JavaScript
/** * @author Ed Spencer * @class Ext.data.Batch * @extends Ext.util.Observable * * <p>Provides a mechanism to run one or more {@link Ext.data.Operation operations} in a given order. Fires the 'operationcomplete' event * after the completion of each Operation, and the 'complete' event when all Operations have be...
JavaScript
/** * @class Ext.StoreMgr * @extends Ext.util.MixedCollection * The default global group of stores. * @singleton * TODO: Make this an AbstractMgr */ Ext.StoreMgr = Ext.apply(new Ext.util.MixedCollection(), { /** * @cfg {Object} listeners @hide */ /** * Registers one or more Stores with the...
JavaScript
/** * @class Ext * Ext core utilities and functions. * @singleton */ if (typeof Ext === "undefined") { Ext = {}; } /** * Copies all the properties of config to obj. * @param {Object} object The receiver of the properties * @param {Object} config The source of the properties * @param {Object} defaults A dif...
JavaScript
/** * @class Ext.ComponentQuery * @extends Object * * Provides searching of Components within Ext.ComponentMgr (globally) or a specific * Ext.Container on the page with a similar syntax to a CSS selector. * * Xtypes can be retrieved by their name with an optional . prefix <ul> <li>component or .component</li...
JavaScript
/** * @class Ext.PluginMgr * <p>Provides a registry of available Plugin <i>classes</i> indexed by a mnemonic code known as the Plugin's ptype. * The <code>{@link Ext.Component#xtype xtype}</code> provides a way to avoid instantiating child Components * when creating a full, nested config object for a complete Ext p...
JavaScript
/** * @class Ext.EventManager * Registers event handlers that want to receive a normalized EventObject instead of the standard browser event and provides * several useful events directly. * See {@link Ext.EventObject} for more details on normalized event objects. * @singleton */ Ext.EventManager = { optionsRe...
JavaScript
/** * @class Ext.util.MixedCollection * @extends Ext.util.Observable * A Collection class that maintains both numeric indexes and keys and exposes events. * @constructor * @param {Boolean} allowFunctions Specify <tt>true</tt> if the {@link #addAll} * function should add function references to the collection. Defa...
JavaScript
/** * @class Ext.util.Format * Reusable data formatting functions * @singleton */ Ext.util.Format = { defaultDateFormat: 'm/d/Y', escapeRe: /('|\\)/g, trimRe: /^[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000]+|[\x...
JavaScript
/** * @class Ext.util.Numbers * @singleton */ Ext.util.Numbers = { // detect toFixed implementation bug in IE toFixedBroken: (0.9).toFixed() != 1, /** * Checks whether or not the current number is within a desired range. If the number is already within the * range it is returned, ot...
JavaScript
/** * @class Ext.util.Sorter * @extends Object * Represents a single sorter that can be applied to a Store */ Ext.util.Sorter = Ext.extend(Object, { /** * @cfg {String} property The property to sort by. Required unless {@link #sorter} is provided */ /** * @cfg {Function} sorterFn A speci...
JavaScript
/** * @class Ext.util.Region * @extends Object * * Represents a rectangular region and provides a number of utility methods * to compare regions. */ Ext.util.Region = Ext.extend(Object, { /** * @constructor * @param {Number} top Top * @param {Number} right Right * @param {Number} bottom Bo...
JavaScript
/** * @class Ext.util.DelayedTask * <p> The DelayedTask class provides a convenient way to "buffer" the execution of a method, * performing setTimeout where a new timeout cancels the old timeout. When called, the * task will wait the specified time period before executing. If durng that time period, * the task is ...
JavaScript
/** * @class Ext.util.GeoLocation * @extends Ext.util.Observable * * Provides a cross browser class for retrieving location information.<br/> * <br/> * Based on the <a href="http://dev.w3.org/geo/api/spec-source.html">Geolocation API Specification</a>.<br/> * If the browser does not implement that specification ...
JavaScript
/** * @class Ext.util.Date * @singleton */ Ext.util.Date = { /** * Returns the number of milliseconds between two dates * @param {Date} dateA * @param {Date} dateB (optional) Defaults to now * @return {Number} The diff in milliseconds */ getElapsed: function(dateA, dateB) { ...
JavaScript
/** * @class Ext.Template * <p>Represents an HTML fragment template. Templates may be {@link #compile precompiled} * for greater performance.</p> * An instance of this class may be created by passing to the constructor either * a single argument, or multiple arguments: * <div class="mdetail-params"><ul> * <li><b...
JavaScript
/** * @class Ext.util.Stateful * @extends Ext.util.Observable * Represents any object whose data can be saved by a {@link Ext.data.Proxy Proxy}. Ext.Model * and Ext.View both inherit from this class as both can save state (Models save field state, * Views save configuration) */ Ext.util.Stateful = Ext.extend(Ext...
JavaScript
Ext.util.Point = Ext.extend(Object, { constructor: function(x, y) { this.x = (x != null && !isNaN(x)) ? x : 0; this.y = (y != null && !isNaN(y)) ? y : 0; return this; }, copy: function() { return new Ext.util.Point(this.x, this.y); }, copyFrom: function(p) { ...
JavaScript
/** * @class Ext.LoadMask * A simple utility class for generically masking elements while loading data. If the {@link #store} * config option is specified, the masking will be automatically synchronized with the store's loading * process and the mask element will be cached for reuse. * <p>Example usage:</p> *<pr...
JavaScript
Ext.util.Offset = Ext.extend(Object, { constructor: function(x, y) { this.x = (x != null && !isNaN(x)) ? x : 0; this.y = (y != null && !isNaN(y)) ? y : 0; return this; }, copy: function() { return new Ext.util.Offset(this.x, this.y); }, copyFrom: function(p) { ...
JavaScript
/** * @class Ext.AbstractManager * @extends Object * @ignore * Base Manager class - extended by ComponentMgr and PluginMgr */ Ext.AbstractManager = Ext.extend(Object, { typeName: 'type', constructor: function(config) { Ext.apply(this, config || {}); /** * Contains all of the item...
JavaScript
/** * @class Ext.XTemplate * @extends Ext.Template * <p>A template class that supports advanced functionality like:<div class="mdetail-params"><ul> * <li>Autofilling arrays using templates and sub-templates</li> * <li>Conditional processing with basic comparison operators</li> * <li>Basic math function support</l...
JavaScript
/** * @class Ext.util.Functions * @singleton */ Ext.util.Functions = { /** * Creates an interceptor function. The passed function is called before the original one. If it returns false, * the original one is not called. The resulting function returns the results of the original function. * The pas...
JavaScript
/** * @class Ext.util.Filter * @extends Object * <p>Represents a filter that can be applied to a {@link Ext.data.MixedCollection MixedCollection}. Can either simply * filter on a property/value pair or pass in a filter function with custom logic. Filters are always used in the context * of MixedCollections, though...
JavaScript
/** * @class Ext.util.Observable * Base class that provides a common interface for publishing events. Subclasses are expected to * to have a property "events" with all the events defined, and, optionally, a property "listeners" * with configured listeners defined.<br> * For example: * <pre><code> Employee = Ext.e...
JavaScript