egroupware_official/jdots/js/egw_fw_classes.js
2010-06-16 14:57:04 +00:00

55 lines
1.1 KiB
JavaScript

/**
* eGroupware JavaScript Framework - Non UI classes
*
* @link http://www.egroupware.org
* @author Andreas Stoeckel <as@stylite.de>
* @version $Id$
*/
/*----------------------------
Class egw_fw_class_application
----------------------------*/
function egw_fw_class_application(_parentFw, _appName, _displayName, _icon,
_execName, _sideboxWidth)
{
//Copy the application properties
this.appName = _appName;
this.displayName = _displayName;
this.icon = _icon;
this.execName = _execName;
this.sidebox_md5 = '';
this.sideboxWidth = _sideboxWidth;
//Setup a link to the parent framework class
this.parentFw = _parentFw;
//Preset some variables
this.hasSideboxMenuContent = false;
this.sidemenuEntry = null;
this.tab = null;
this.iframe = null;
}
/*----------------------------
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(_sender)
{
this.proc.call(this.context, _sender);
}
Array.prototype.remove = function(index)
{
this.splice(index, 1);
}