Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
App.js
Package: a.rar [view]
Upload User: aa118c
Upload Date: 2021-05-13
Package Size: 4785k
Code Size: 2k
Category:
WEB(ASP,PHP,...)
Development Platform:
HTML/CSS
- /*
- * Ext JS Library 2.2.1
- * Copyright(c) 2006-2009, Ext JS, LLC.
- * licensing@extjs.com
- *
- * http://extjs.com/license
- */
- Ext.app.App = function(cfg){
- Ext.apply(this, cfg);
- this.addEvents({
- 'ready' : true,
- 'beforeunload' : true
- });
- Ext.onReady(this.initApp, this);
- };
- Ext.extend(Ext.app.App, Ext.util.Observable, {
- isReady: false,
- startMenu: null,
- modules: null,
- getStartConfig : function(){
- },
- initApp : function(){
- this.startConfig = this.startConfig || this.getStartConfig();
- this.desktop = new Ext.Desktop(this);
- this.launcher = this.desktop.taskbar.startMenu;
- this.modules = this.getModules();
- if(this.modules){
- this.initModules(this.modules);
- }
- this.init();
- Ext.EventManager.on(window, 'beforeunload', this.onUnload, this);
- this.fireEvent('ready', this);
- this.isReady = true;
- },
- getModules : Ext.emptyFn,
- init : Ext.emptyFn,
- initModules : function(ms){
- for(var i = 0, len = ms.length; i < len; i++){
- var m = ms[i];
- this.launcher.add(m.launcher);
- m.app = this;
- }
- },
- getModule : function(name){
- var ms = this.modules;
- for(var i = 0, len = ms.length; i < len; i++){
- if(ms[i].id == name || ms[i].appType == name){
- return ms[i];
- }
- }
- return '';
- },
- onReady : function(fn, scope){
- if(!this.isReady){
- this.on('ready', fn, scope);
- }else{
- fn.call(scope, this);
- }
- },
- getDesktop : function(){
- return this.desktop;
- },
- onUnload : function(e){
- if(this.fireEvent('beforeunload', this) === false){
- e.stopEvent();
- }
- }
- });