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
Notification.js
Package: qWikiOffice-Version-1.0.zip [view]
Upload User: snow1005
Upload Date: 2015-11-10
Package Size: 3151k
Code Size: 2k
Category:
Ajax
Development Platform:
JavaScript
- /*
- * qWikiOffice Desktop 0.8.1
- * Copyright(c) 2007-2008, Integrated Technologies, Inc.
- * licensing@qwikioffice.com
- *
- * http://www.qwikioffice.com/license
- *
- * Ext.ux.Notification is based on code from the Ext JS forum.
- * I have made some minor modifications.
- */
- Ext.ux.NotificationMgr = {
- positions: []
- };
- Ext.ux.Notification = Ext.extend(Ext.Window, {
- initComponent : function(){
- Ext.apply(this, {
- iconCls: this.iconCls || 'x-icon-information'
- , width: 200
- , autoHeight: true
- , closable: true
- , plain: false
- , draggable: false
- , bodyStyle: 'text-align:left;padding:10px;'
- , resizable: false
- });
- if(this.autoDestroy){
- this.task = new Ext.util.DelayedTask(this.close, this);
- }else{
- this.closable = true;
- }
- Ext.ux.Notification.superclass.initComponent.call(this);
- }
- , setMessage : function(msg){
- this.body.update(msg);
- }
- , setTitle : function(title, iconCls){
- Ext.ux.Notification.superclass.setTitle.call(this, title, iconCls||this.iconCls);
- }
- , onRender : function(ct, position) {
- Ext.ux.Notification.superclass.onRender.call(this, ct, position);
- }
- , onDestroy : function(){
- Ext.ux.NotificationMgr.positions.remove(this.pos);
- Ext.ux.Notification.superclass.onDestroy.call(this);
- }
- , afterShow : function(){
- Ext.ux.Notification.superclass.afterShow.call(this);
- this.on('move', function(){
- Ext.ux.NotificationMgr.positions.remove(this.pos);
- if(this.autoDestroy){
- this.task.cancel();
- }
- }, this);
- if(this.autoDestroy){
- this.task.delay(this.hideDelay || 5000);
- }
- }
- , animShow : function(){
- this.pos = 0;
- while(Ext.ux.NotificationMgr.positions.indexOf(this.pos)>-1){
- this.pos++;
- }
- Ext.ux.NotificationMgr.positions.push(this.pos);
- this.setSize(200,100);
- this.el.alignTo(this.animateTarget || document, "br-tr", [ -1, -1-((this.getSize().height+10)*this.pos) ]);
- this.el.slideIn('b', {
- duration: .7
- , callback: this.afterShow
- , scope: this
- });
- }
- , animHide : function(){
- Ext.ux.NotificationMgr.positions.remove(this.pos);
- this.el.ghost("b", {
- duration: 1
- , remove: true
- });
- }
- });