2 * DEPRICATED : use Roo.XComponents now..
5 modKey : '00-admin-xxxx',
6 module : Pman.Tab.projectMgr, << really a components..
7 part : [ 'Admin', 'ProjectManager' ]
14 Pman.register = function (obj)
17 //this.xregister(obj);
20 // old style calls go in here..
21 // we need to convert the object so that it looks a bit like an XCompoenent..
23 obj.render = function ()
26 Roo.log("Skip module, as parent does not exist");
30 //if (typeof(mod) == 'function') {
33 if (typeof (this.region) == 'undefined') {
34 Roo.log("Module does not have region defined, skipping");
38 if (this.module.disabled) {
39 Roo.log("Module disabled, should not rendering");
44 if (!this.parent.layout) {
45 Roo.log("Module parent does not have property layout.");
50 // honour DEPRICATED permname setings..
51 // new code should use PART name, and matching permissions.
52 if (this.permname && this.permname.length) {
53 if (!Pman.hasPerm(this.permname, 'S')) {
58 this.add(this.parent.layout, this.region);
59 this.el = this.layout;
64 // map some of the standard properties..
65 obj.order = obj.modKey;
71 // the other issue we have is that
74 // Roo.log("CALLING XComponent register with : " + obj.name);
76 // this will call xregister as it's the on.register handler..
77 Roo.XComponent.register(obj.isTop ? obj : Roo.apply(obj.module, obj));