Module.js
上传用户:snow1005
上传日期:2015-11-10
资源大小:3151k
文件大小:2k
- /*
- * qWikiOffice Desktop 0.8.1
- * Copyright(c) 2007-2008, Integrated Technologies, Inc.
- * licensing@qwikioffice.com
- *
- * http://www.qwikioffice.com/license
- *
- * NOTE:
- * This code is based on code from the original Ext JS desktop demo.
- * I have made many modifications/additions.
- *
- * The Ext JS licensing can be viewed here:
- *
- * Ext JS Library 2.0 Beta 2
- * Copyright(c) 2006-2007, Ext JS, LLC.
- * licensing@extjs.com
- *
- * http://extjs.com/license
- */
- Ext.app.Module = function(config){
- Ext.apply(this, config);
- Ext.app.Module.superclass.constructor.call(this);
- //this.init();
- }
- Ext.extend(Ext.app.Module, Ext.util.Observable, {
- /**
- * Read only. {object}
- * Override this with the launcher for your module.
- *
- * Example:
- *
- * {
- * iconCls: 'pref-icon',
- * handler: this.createWindow,
- * scope: this,
- * shortcutIconCls: 'pref-shortcut-icon',
- * text: 'Preferences',
- * tooltip: '<b>Preferences</b><br />Allows you to modify your desktop'
- * }
- */
- launcher : null,
- /**
- * Read only. {boolean}
- * Ext.app.App uses this property to determine if the module has been loaded.
- */
- loaded : false,
- /**
- * Read only. {string}
- * Override this with the menu path for your module.
- * Ext.app.App uses this property to add this module to the Start Menu.
- *
- * Case sensitive options are:
- *
- * 1. StartMenu
- * 2. ToolMenu
- *
- * Example:
- *
- * menuPath: 'StartMenu/Bogus Menu'
- */
- menuPath : 'StartMenu',
- /**
- * Read only. {string}
- * Override this with the type of your module.
- * Example: 'system/preferences'
- */
- moduleType : null,
- /**
- * Read only. {string}
- * Override this with the unique id of your module.
- */
- moduleId : null,
- /**
- * Override this to initialize your module.
- */
- init : Ext.emptyFn,
- /**
- * Override this function to create your module's window.
- */
- createWindow : Ext.emptyFn,
- /**
- * @param {array} An array of request objects
- *
- * Override this function to handle requests from other modules.
- * Expect the passed in param to look like the following.
- *
- * {
- * requests: [
- * {
- * action: 'createWindow',
- * params: '',
- * callback: this.myCallbackFunction,
- * scope: this
- * },
- * { ... }
- * ]
- * }
- *
- * View makeRequest() in App.js for more details.
- */
- handleRequest : Ext.emptyFn
- });