egroupware_official/jdots/js/egw_fw_classes.js

60 lines
1.2 KiB
JavaScript
Raw Normal View History

2010-06-09 20:36:14 +02:00
/**
* eGroupware JavaScript Framework - Non UI classes
*
* @link http://www.egroupware.org
* @author Andreas Stoeckel <as@stylite.de>
* @version $Id$
*/
/*----------------------------
Class egw_fw_class_application
----------------------------*/
2010-06-16 16:57:04 +02:00
function egw_fw_class_application(_parentFw, _appName, _displayName, _icon,
_indexUrl, _sideboxWidth, _legacyApp)
2010-06-09 20:36:14 +02:00
{
//Copy the application properties
this.appName = _appName;
this.displayName = _displayName;
this.icon = _icon;
this.indexUrl = _indexUrl;
2010-06-09 20:36:14 +02:00
this.sidebox_md5 = '';
this.legacyApp = _legacyApp;
this.hasPrerequisites;
2010-06-09 20:36:14 +02:00
this.website_title = '';
this.app_header = '';
2010-06-16 16:57:04 +02:00
this.sideboxWidth = _sideboxWidth;
2010-06-09 20:36:14 +02:00
//Setup a link to the parent framework class
this.parentFw = _parentFw;
//Preset some variables
this.hasSideboxMenuContent = false;
this.sidemenuEntry = null;
this.tab = null;
this.browser = null;
2010-06-09 20:36:14 +02:00
}
/*----------------------------
Class egw_fw_class_callback
----------------------------*/
function egw_fw_class_callback(_context, _proc)
{
this.context = _context;
this.proc = _proc;
}
egw_fw_class_callback.prototype.call = function()
2010-06-09 20:36:14 +02:00
{
return this.proc.apply(this.context, arguments);
2010-06-09 20:36:14 +02:00
}
Array.prototype.remove = function(index)
{
this.splice(index, 1);
}